{ "info": { "author": "Petr Viktorin", "author_email": "encukou@gmail.com", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3" ], "description": "Czech Sort\n==========\n\nThis is a pure-Python library for Czech-language albhabetical sorting.\n\n\nQuick Use\n---------\n\nFrom Python::\n\n >>> import czech_sort\n\n >>> czech_sort.sorted(['s\u00eddli\u0161t\u011b', 'shoda', 'schody'])\n ['shoda', 'schody', 's\u00eddli\u0161t\u011b']\n\n >>> sorted(['s\u00eddli\u0161t\u011b', 'shoda', 'schody'], key=czech_sort.key)\n ['shoda', 'schody', 's\u00eddli\u0161t\u011b']\n\nOn the command line::\n\n $ python -m czech_sort < file.txt\n shoda\n schody\n s\u00eddli\u0161t\u011b\n\n\nWhy another sorting library?\n----------------------------\n\nTo sort Python strings in the Czech language, there are three other options:\n\n* Use `PyICU`_. This can sort *really* well, and do all kinds of wonderful,\n standards-compliant Unicode things. Perfect for publication-quality results.\n Unfortunately, ICU can be a major pain to install, making it overkill if you\n just want to sort a list of strings.\n* Set the locale, then use `locale.strxfrm`_.\n (Yes, ``strxfrm``! Try saying that ten times fast!)\n This depends on the Czech POSIX locale being available, so it's hardly\n portable.\n* Just use Python's built-in string sort. This sorts lexicographically by\n Unicode codepoints. It might be good enough for you? Maybe?\n\n.. _PyICU: https://pypi.python.org/pypi/PyICU\n.. _locale.strxfrm: https://docs.python.org/3/library/locale.html#locale.strxfrm\n\nScope\n-----\n\nThe ``czech-sort`` library is a compromise. It should give you good results in\nthe 99% case.\n\nDo not use this if you need proper sorting of symbols, non-Latin scripts,\nor diacritics other than Czech/Slovak.\n\nAny other deviation from the relevant standard, `\u010cSN 97 6030`, should be\nconsidered a bug. However, neither the author nor the community at large\nhave access to the standard, which makes finding such bugs somewhat difficult.\n\n\nFull API\n---------\n\nczech_sort.sorted(iterable)\n\n Takes an iterable of strings, and returns a list of them, sorted.\n\nczech_sort.key(s)\n\n Returns a sort key object for a given string.\n\n This function is suitable as the ``key`` for functions like the built-in\n ``sorted`` or ``list.sort``.\n\n\nCompatibility\n-------------\n\nThe czech-sort library can be used with Python 2.6+ and 3.3+.\n\nUnder Python 2, it only accepts `unicode` strings.\n\n\nInstallation\n------------\n\nInstall this into your `virtualenv`_ by running:\n\n pip install czech-sort\n\n.. _virtualenv: https://docs.python.org/3/library/venv.html\n\n\nContribute\n----------\n\nBug reports and comments are welcome at `Github`__.\n\n__ http://github.com/encukou/czech-sort/issues/new\n\nPatches are also welcome! Source code is hosted at Github::\n\n $ git clone http://github.com/encukou/czech-sort\n\nTo run the included tests::\n\n $ pip install pytest\n $ python -m pytest\n\nIf you would like to contribute, but are confused by the above,\nthen please e-mail encukou ``at`` gmail ``dot`` com.\n\n\nLicense\n-------\n\nThe project is licensed under the MIT license. May it serve you well.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/encukou/czech-sort", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "czech-sort", "package_url": "https://pypi.org/project/czech-sort/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/czech-sort/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/encukou/czech-sort" }, "release_url": "https://pypi.org/project/czech-sort/0.4/", "requires_dist": null, "requires_python": null, "summary": "Text sorting function for the Czech language", "version": "0.4" }, "last_serial": 1709292, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "a80337fc39ae431d1a5ab19ff45734b4", "sha256": "3e9ea230e2074b4d7357b96abd354fb0a69dd9ad102370dbf772ca70f6c0bebd" }, "downloads": -1, "filename": "czech_sort-0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "a80337fc39ae431d1a5ab19ff45734b4", "packagetype": "bdist_wheel", "python_version": "3.4", "requires_python": null, "size": 6554, "upload_time": "2015-09-04T23:07:40", "url": "https://files.pythonhosted.org/packages/35/5f/3ff663bb9ba622e93606228799bd4f1deea66062b6e00bfe235dfc58d9db/czech_sort-0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "fca752d520aab277ed733a0745e0e69a", "sha256": "8d2e5b705b8b4a0304c19a32f4d7504cc68b21fccbf3ba8ab3d0dd81fa3db80f" }, "downloads": -1, "filename": "czech-sort-0.1.tar.gz", "has_sig": false, "md5_digest": "fca752d520aab277ed733a0745e0e69a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4267, "upload_time": "2015-09-04T23:07:36", "url": "https://files.pythonhosted.org/packages/fa/40/2dfa58ba826caa1ae3715063a111528c951599b7282b1cb48dc5813e30ec/czech-sort-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "6b15d2e041b71dd6ccbe7e6d894eac34", "sha256": "e880ce3873914463859147a6d972d9bf74d2550691771602f4044cd07d942b26" }, "downloads": -1, "filename": "czech_sort-0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "6b15d2e041b71dd6ccbe7e6d894eac34", "packagetype": "bdist_wheel", "python_version": "3.4", "requires_python": null, "size": 6556, "upload_time": "2015-09-04T23:33:13", "url": "https://files.pythonhosted.org/packages/c2/69/567cf42b9de89bfc0ba8d873e7de731410ad758194988be00c8def79ca0f/czech_sort-0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "97d2d6b16a09961c4075a446a7bdb894", "sha256": "3247e90b73d09bb5dde172987cf0267f7ea45db60b6d6a6073cf90545523fc88" }, "downloads": -1, "filename": "czech-sort-0.2.tar.gz", "has_sig": false, "md5_digest": "97d2d6b16a09961c4075a446a7bdb894", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4274, "upload_time": "2015-09-04T23:33:09", "url": "https://files.pythonhosted.org/packages/3e/d0/876767b96cf029b61e9165a06ac56b7a3a270fc2bb168f1931a98dfb7f1d/czech-sort-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "f0216022cfe72a25cb031e14440fdb43", "sha256": "8f8335ee3d88c76fa7ac8bcfed577a1ab4ec0f3b7a8872cdd35beeb0ca7ab8cd" }, "downloads": -1, "filename": "czech_sort-0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "f0216022cfe72a25cb031e14440fdb43", "packagetype": "bdist_wheel", "python_version": "3.4", "requires_python": null, "size": 6558, "upload_time": "2015-09-04T23:41:55", "url": "https://files.pythonhosted.org/packages/89/43/048d65c5faca16d42e921a4240d6c821c6af9ab5d18028bb11e501cfbb24/czech_sort-0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "efd304eae7375016b642f2a85d9723a0", "sha256": "48ae25a57aaa73b1e09fd7a12a474c0663ba84a61ae1ee434480c4755ccb8bea" }, "downloads": -1, "filename": "czech-sort-0.3.tar.gz", "has_sig": false, "md5_digest": "efd304eae7375016b642f2a85d9723a0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4274, "upload_time": "2015-09-04T23:41:51", "url": "https://files.pythonhosted.org/packages/39/5c/04003b6ec025ea143c1f6fed6661213f11f70cc41e86e0b787c11a18ab46/czech-sort-0.3.tar.gz" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "919398377201760c2b59a42ff84d0816", "sha256": "1260fcf2a411ae639c19d336f7495064b2833da3d03c6cc403716bb829be7087" }, "downloads": -1, "filename": "czech_sort-0.4-py3-none-any.whl", "has_sig": false, "md5_digest": "919398377201760c2b59a42ff84d0816", "packagetype": "bdist_wheel", "python_version": "3.4", "requires_python": null, "size": 8657, "upload_time": "2015-09-05T14:05:11", "url": "https://files.pythonhosted.org/packages/d8/48/5c92f4afc55c7312a932642b591e72d86d55a553cad421eea617219c9a34/czech_sort-0.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "eca753ac20092b352003c922ced071cd", "sha256": "39d1cf0aa6b7ecb603d962806fd8ba6ba0384ab5694264ba62bf101e3c69640b" }, "downloads": -1, "filename": "czech-sort-0.4.tar.gz", "has_sig": false, "md5_digest": "eca753ac20092b352003c922ced071cd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6313, "upload_time": "2015-09-05T14:04:52", "url": "https://files.pythonhosted.org/packages/61/11/05e4b4e263643366b47051e9f5148ade802eecef415b2eb479850166dae4/czech-sort-0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "919398377201760c2b59a42ff84d0816", "sha256": "1260fcf2a411ae639c19d336f7495064b2833da3d03c6cc403716bb829be7087" }, "downloads": -1, "filename": "czech_sort-0.4-py3-none-any.whl", "has_sig": false, "md5_digest": "919398377201760c2b59a42ff84d0816", "packagetype": "bdist_wheel", "python_version": "3.4", "requires_python": null, "size": 8657, "upload_time": "2015-09-05T14:05:11", "url": "https://files.pythonhosted.org/packages/d8/48/5c92f4afc55c7312a932642b591e72d86d55a553cad421eea617219c9a34/czech_sort-0.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "eca753ac20092b352003c922ced071cd", "sha256": "39d1cf0aa6b7ecb603d962806fd8ba6ba0384ab5694264ba62bf101e3c69640b" }, "downloads": -1, "filename": "czech-sort-0.4.tar.gz", "has_sig": false, "md5_digest": "eca753ac20092b352003c922ced071cd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6313, "upload_time": "2015-09-05T14:04:52", "url": "https://files.pythonhosted.org/packages/61/11/05e4b4e263643366b47051e9f5148ade802eecef415b2eb479850166dae4/czech-sort-0.4.tar.gz" } ] }