{ "info": { "author": "Russell Warren", "author_email": "russ@perspexis.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.0", "Programming Language :: Python :: 3.1", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Software Development", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Software Development :: User Interfaces" ], "description": "``py2casefold``\n===============\n\n.. image:: https://travis-ci.org/rwarren/py2casefold.svg?branch=master\n :target: https://travis-ci.org/rwarren/py2casefold\n\nPython 3 has ``str.casefold()``. Python 2 doesn't. ``py2casefold``\nbrings casefolding support to Python 2.\n\nInstallation\n============\n\n``pip install py2casefold``\n\nUsage\n=====\n\n >>> from py2casefold import casefold\n >>> print casefold(u\"tsch\u00fc\u00df\")\n tsch\u00fcss\n >>> casefold(u\"\u03a3\u03af\u03c3\u03c5\u03c6\u03bf\u03c2\ufb01\u00c6\") == casefold(u\"\u03a3\u038a\u03a3\u03a5\u03a6\u039f\u03c3FI\u00e6\") == u\"\u03c3\u03af\u03c3\u03c5\u03c6\u03bf\u03c3fi\u00e6\"\n True\n\nNote that ``casefold`` does *not* normalize the string. Casefolding and\nnormalization are different operations. For more info see\nhttp://www.w3.org/International/wiki/Case_folding, and\nhttp://www.w3.org/TR/charmod-norm/.\n\nIf you are looking for string similarity you will also probably want to\nconsider one of the unicode normalization options (NFC, NFKC, NFD, NFKD)\nthat are available with Python's built in ``unicodedata.normalize()``.\n\nSpeed\n=====\n\nAt the moment, this pure Python ``casefold`` implementation is\nsignificantly (> 20x) slower than the optimized py3 C implementation.\nThis can be improved later, but it is currently more than sufficient\nfor basic case folding. As a rough estimate, case folding 100\ncharacters clocks in at ~25\u03bcs on an old developer laptop.\n\nTests\n=====\n\nTo run the tests on all supported Python version simple use tox.\n\n``tox``\n\nYou will need to have Python 2.7, Python 3.4, Python 3.5 and Python 3.6 installed.\n\n\nLicense\n=======\nBSD and the Unicode license agreement. This module includes data from\nthe Unicode consortium which should include the appropriate notice (see\nhttp://unicode.org/copyright.html).\n\nSee ``LICENSE`` file for details.\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/rwarren/py2casefold", "keywords": "unicode casefold", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "py2casefold", "package_url": "https://pypi.org/project/py2casefold/", "platform": "", "project_url": "https://pypi.org/project/py2casefold/", "project_urls": { "Homepage": "https://github.com/rwarren/py2casefold" }, "release_url": "https://pypi.org/project/py2casefold/1.0.1/", "requires_dist": null, "requires_python": "", "summary": "Unicode casefold support for python 2.", "version": "1.0.1" }, "last_serial": 3282021, "releases": { "0.1.3": [ { "comment_text": "", "digests": { "md5": "19e116dccdbe72e9141fa86c308dfd1e", "sha256": "69d26c6a77a6769408463feba7412e66b0daaae13cc362089cfda0aae530d0b9" }, "downloads": -1, "filename": "py2casefold-0.1.3.tar.gz", "has_sig": false, "md5_digest": "19e116dccdbe72e9141fa86c308dfd1e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17479, "upload_time": "2015-09-28T19:28:07", "url": "https://files.pythonhosted.org/packages/e1/5c/f2fa9344389d158332d8ffff059a37dd9f98f3854e9842c31618f1f05c79/py2casefold-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "74dbd78407d06f657cb1bb4fee6aac50", "sha256": "275d3acb90504b041c0fc423a14db688bba319f5da54748c1cc4ef6b040d3c5d" }, "downloads": -1, "filename": "py2casefold-0.1.4-py2-none-any.whl", "has_sig": false, "md5_digest": "74dbd78407d06f657cb1bb4fee6aac50", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 19188, "upload_time": "2015-09-29T05:06:38", "url": "https://files.pythonhosted.org/packages/90/c6/a79306a140f3ad1bd3f7fae4c3bfbfb914eb1f276dcde994bfb1458d000b/py2casefold-0.1.4-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2ba64c1dc5aa5e29c683016f54066afe", "sha256": "496e844a74c1a716f9b65f5468f648f9939aae77b3fcb63ac33b2601c5af556e" }, "downloads": -1, "filename": "py2casefold-0.1.4.tar.gz", "has_sig": false, "md5_digest": "2ba64c1dc5aa5e29c683016f54066afe", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18022, "upload_time": "2015-09-29T05:06:42", "url": "https://files.pythonhosted.org/packages/f5/1b/4abf599a56eb7186b5b4da68a946a475849eda42c5fbdb63b86d1466c4ee/py2casefold-0.1.4.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "533375ea0a44c2eda1dcdc67b5eae716", "sha256": "ebef5b8a6b849ba793cad01aae2d110d6083005a3f3d0b7819d0b75d36162ed8" }, "downloads": -1, "filename": "py2casefold-0.2.0-py2-none-any.whl", "has_sig": false, "md5_digest": "533375ea0a44c2eda1dcdc67b5eae716", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 19240, "upload_time": "2015-10-13T17:52:41", "url": "https://files.pythonhosted.org/packages/80/d6/2a213e17b3e53af1c813ed4b57e5cf87b8251aa4f93f3aa6d9ef717027a7/py2casefold-0.2.0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6670b0dc1b49b6958d1c5236dfa3d350", "sha256": "eccb3f2adf3499124d0bef9bd0dc44687d96775a240a34f3260ba9d989dccdcd" }, "downloads": -1, "filename": "py2casefold-0.2.0.tar.gz", "has_sig": false, "md5_digest": "6670b0dc1b49b6958d1c5236dfa3d350", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18159, "upload_time": "2015-10-13T17:52:45", "url": "https://files.pythonhosted.org/packages/43/82/6b422af9b8ea27339e23e5c5ac879428428a5783606641e975ff3880f493/py2casefold-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "aed7900ae212061b6028a9b500949631", "sha256": "1752ff89c8770cceffa0f65be6818ceb215504f1b633fa64e571781df8f1624d" }, "downloads": -1, "filename": "py2casefold-0.2.1-py2-none-any.whl", "has_sig": false, "md5_digest": "aed7900ae212061b6028a9b500949631", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 19508, "upload_time": "2015-10-13T22:20:15", "url": "https://files.pythonhosted.org/packages/a7/68/0c53d0d42136d83a353bfe4e523c21fdf55c10b2c647ab9ab1a319ea587d/py2casefold-0.2.1-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "37cad9a40f40c8326fee92a0aee99b77", "sha256": "0fb895f1f38a73b3c25c74868418380a609114f8beafa8672d034095a88fea99" }, "downloads": -1, "filename": "py2casefold-0.2.1.tar.gz", "has_sig": false, "md5_digest": "37cad9a40f40c8326fee92a0aee99b77", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18431, "upload_time": "2015-10-13T22:20:32", "url": "https://files.pythonhosted.org/packages/1a/72/d79e3a8de214e54db7bd82feddc9c7f6f991352e17e897e60adcc49a12cd/py2casefold-0.2.1.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "5db43fc36a42430b48b245c6e5c5759f", "sha256": "bb370bc530cca1f8b8bb3640f61717f47b525a82d35c470ccf2760b843e26ccf" }, "downloads": -1, "filename": "py2casefold-1.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "5db43fc36a42430b48b245c6e5c5759f", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 20729, "upload_time": "2017-10-26T20:45:32", "url": "https://files.pythonhosted.org/packages/7e/56/9c100afcfbf57ccd39c6b3dca42ce2470131784ac560fbd4f4e29c576c66/py2casefold-1.0.1-py2.py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5db43fc36a42430b48b245c6e5c5759f", "sha256": "bb370bc530cca1f8b8bb3640f61717f47b525a82d35c470ccf2760b843e26ccf" }, "downloads": -1, "filename": "py2casefold-1.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "5db43fc36a42430b48b245c6e5c5759f", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 20729, "upload_time": "2017-10-26T20:45:32", "url": "https://files.pythonhosted.org/packages/7e/56/9c100afcfbf57ccd39c6b3dca42ce2470131784ac560fbd4f4e29c576c66/py2casefold-1.0.1-py2.py3-none-any.whl" } ] }