{ "info": { "author": "Thomas Roten", "author_email": "thomas@roten.us", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Text Processing :: Linguistic" ], "description": "====\nZhon\n====\n\n.. image:: https://badge.fury.io/py/zhon.png\n :target: http://badge.fury.io/py/zhon\n\n.. image:: https://travis-ci.org/tsroten/zhon.png?branch=develop\n :target: https://travis-ci.org/tsroten/zhon\n\nZhon is a Python library that provides constants commonly used in Chinese text\nprocessing.\n\n* Documentation: http://zhon.rtfd.org\n* GitHub: https://github.com/tsroten/zhon\n* Support: https://github.com/tsroten/zhon/issues\n* Free software: `MIT license `_\n\nAbout\n-----\n\nZhon's constants can be used in Chinese text processing, for example:\n\n* Find CJK characters in a string:\n\n .. code:: python\n\n >>> re.findall('[%s]' % zhon.hanzi.characters, 'I broke a plate: \u6211\u6253\u7834\u4e86\u4e00\u4e2a\u76d8\u5b50.')\n ['\u6211', '\u6253', '\u7834', '\u4e86', '\u4e00', '\u4e2a', '\u76d8', '\u5b50']\n\n* Validate Pinyin syllables, words, or sentences:\n\n .. code:: python\n\n >>> re.findall(zhon.pinyin.syllable, 'Yu\u00e0nzi l\u01d0 t\u00edngzhe y\u00ed li\u00e0ng ch\u0113.', re.I)\n ['Yu\u00e0n', 'zi', 'l\u01d0', 't\u00edng', 'zhe', 'y\u00ed', 'li\u00e0ng', 'ch\u0113']\n\n >>> re.findall(zhon.pinyin.word, 'Yu\u00e0nzi l\u01d0 t\u00edngzhe y\u00ed li\u00e0ng ch\u0113.', re.I)\n ['Yu\u00e0nzi', 'l\u01d0', 't\u00edngzhe', 'y\u00ed', 'li\u00e0ng', 'ch\u0113']\n\n >>> re.findall(zhon.pinyin.sentence, 'Yu\u00e0nzi l\u01d0 t\u00edngzhe y\u00ed li\u00e0ng ch\u0113.', re.I)\n ['Yu\u00e0nzi l\u01d0 t\u00edngzhe y\u00ed li\u00e0ng ch\u0113.']\n\nFeatures\n--------\n\n+ Includes commonly-used constants:\n - CJK characters and radicals\n - Chinese punctuation marks\n - Chinese sentence regular expression pattern\n - Pinyin vowels, consonants, lowercase, uppercase, and punctuation\n - Pinyin syllable, word, and sentence regular expression patterns\n - Zhuyin characters and marks\n - Zhuyin syllable regular expression pattern\n - CC-CEDICT characters\n+ Runs on Python 2.7 and 3\n\nGetting Started\n---------------\n\n* `Install Zhon `_\n* Read `Zhon's introduction `_\n* Learn from the `API documentation `_\n* `Contribute `_ documentation, code, or feedback", "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/tsroten/zhon", "keywords": "chinese mandarin segmentation tokenization punctuation hanzi unicode radicals han cjk cedict cc-cedict traditional simplified characters pinyin zhuyin", "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "zhon", "package_url": "https://pypi.org/project/zhon/", "platform": "Any", "project_url": "https://pypi.org/project/zhon/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/tsroten/zhon" }, "release_url": "https://pypi.org/project/zhon/1.1.5/", "requires_dist": null, "requires_python": null, "summary": "Zhon provides constants used in Chinese text processing.", "version": "1.1.5" }, "last_serial": 2129127, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "cab023e4ba0c6da32765e9899aab0089", "sha256": "a66eb3f3505aa2c1cc794024784064dd57d17b9b2934a6680873fec435ace7ce" }, "downloads": -1, "filename": "zhon-0.1.0.tar.gz", "has_sig": true, "md5_digest": "cab023e4ba0c6da32765e9899aab0089", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6103, "upload_time": "2013-05-06T01:27:26", "url": "https://files.pythonhosted.org/packages/b3/e4/8356284aded266a5dcf67af60b9297c4afa8878c97e0d0238878c44b7c6f/zhon-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "0be3b7c0c033a6aec0e21e72245f10e3", "sha256": "b47da55cad44d96bb4cd88db048fe39b35957f1abd9a5de4ffa015035dd6aba8" }, "downloads": -1, "filename": "zhon-0.1.1.tar.gz", "has_sig": true, "md5_digest": "0be3b7c0c033a6aec0e21e72245f10e3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 47456, "upload_time": "2013-05-06T01:39:51", "url": "https://files.pythonhosted.org/packages/05/b0/a200a5f1fe51847d7c6c8e6ec9406c2589614e3cb57d93ce27aa740dff98/zhon-0.1.1.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "56d291b41798b5761d041edbe3352a3f", "sha256": "356ecedcdc1809770a73ae37fa36f8ea332df0859a70f0d658b51447686ef584" }, "downloads": -1, "filename": "zhon-0.2.0.tar.gz", "has_sig": true, "md5_digest": "56d291b41798b5761d041edbe3352a3f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 59922, "upload_time": "2013-05-07T22:05:19", "url": "https://files.pythonhosted.org/packages/6e/59/ed004b393f6096ca28a68646a8c6114096542dd93aad0f978938c524aaec/zhon-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "b617609cc0a6f3161e96794d4e94011e", "sha256": "f97a2c4ce64ba48a3f9a8b625946b49ada8bc9cbfcf378f16e75a12889bde1c3" }, "downloads": -1, "filename": "zhon-0.2.1.tar.gz", "has_sig": true, "md5_digest": "b617609cc0a6f3161e96794d4e94011e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 59811, "upload_time": "2013-05-07T22:27:19", "url": "https://files.pythonhosted.org/packages/4c/d8/e64c4833ccba1821795b753653ae6e6f857460368a4740a0118912b22d33/zhon-0.2.1.tar.gz" } ], "1.0": [ { "comment_text": "", "digests": { "md5": "b6f1ae17a46c00b8e9b40c27bc40a3fd", "sha256": "fd8772501b3b565b88155ef351b8ff4005568e94790912cda63baca20e9b2aed" }, "downloads": -1, "filename": "zhon-1.0.tar.gz", "has_sig": true, "md5_digest": "b6f1ae17a46c00b8e9b40c27bc40a3fd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 60521, "upload_time": "2014-01-26T00:37:56", "url": "https://files.pythonhosted.org/packages/e7/c4/9e0e69bbc87091cd231437d98a666d9a2e9236a496b17ccd98436d58ba28/zhon-1.0.tar.gz" } ], "1.1": [ { "comment_text": "", "digests": { "md5": "70dcfec144fd175377b31fb088cc8700", "sha256": "928b1503f9d128623429e781d08c8c7a28b2613701dba7e1167d598f2f534bd4" }, "downloads": -1, "filename": "zhon-1.1.tar.gz", "has_sig": true, "md5_digest": "70dcfec144fd175377b31fb088cc8700", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 61779, "upload_time": "2014-01-28T06:59:22", "url": "https://files.pythonhosted.org/packages/35/4e/801ae46bbf4a6e06c81e24b265b7e41c790e579fbcc8bd10eee721c92a08/zhon-1.1.tar.gz" } ], "1.1.1": [ { "comment_text": "", "digests": { "md5": "ddebee2768ce252b9b484d79649d10d8", "sha256": "cb7b046125a20f9d65756047e59a9afaef5d09fbf11b7356afee04de217bcfa0" }, "downloads": -1, "filename": "zhon-1.1.1.tar.gz", "has_sig": true, "md5_digest": "ddebee2768ce252b9b484d79649d10d8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 97841, "upload_time": "2014-01-29T12:18:48", "url": "https://files.pythonhosted.org/packages/73/4b/e395166c342e4d82385be70da7000b1a2e74d05d2c600e918489ab665380/zhon-1.1.1.tar.gz" } ], "1.1.2": [ { "comment_text": "", "digests": { "md5": "ed432c51d90e9289d407df8e1bcae9f6", "sha256": "04268eccd02f283f128c6a6da6ab3d0107df042ba2a96040e7150a2729590161" }, "downloads": -1, "filename": "zhon-1.1.2.tar.gz", "has_sig": true, "md5_digest": "ed432c51d90e9289d407df8e1bcae9f6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 97887, "upload_time": "2014-01-30T23:33:42", "url": "https://files.pythonhosted.org/packages/f0/0c/2d63c1f71050706883b41f8eeb4394191b2a2abe4efbf1fa5021db73ad3e/zhon-1.1.2.tar.gz" } ], "1.1.3": [ { "comment_text": "", "digests": { "md5": "947eb06795a883751a158729d1d21149", "sha256": "bfd9964352fc3753d60d0b8185b514aa8c9b9f431afae0b08181496f30633878" }, "downloads": -1, "filename": "zhon-1.1.3.tar.gz", "has_sig": true, "md5_digest": "947eb06795a883751a158729d1d21149", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 97995, "upload_time": "2014-02-12T11:43:24", "url": "https://files.pythonhosted.org/packages/dd/40/753cc1b050149ee52ceefa7098bf1e947eb06b496aceaa1be959bfc1b07d/zhon-1.1.3.tar.gz" } ], "1.1.4": [ { "comment_text": "", "digests": { "md5": "1a9145e0d95f92289c9a0c34870cb9df", "sha256": "40abb082e8573fc1fda04fbb64b75e140fb2bbb35a34ffa07feb23b69c56f7c7" }, "downloads": -1, "filename": "zhon-1.1.4.tar.gz", "has_sig": false, "md5_digest": "1a9145e0d95f92289c9a0c34870cb9df", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 100069, "upload_time": "2015-01-25T18:24:41", "url": "https://files.pythonhosted.org/packages/64/dd/3b6184c4a3e5d2972b4bed74757e49b59548eefd794251126b2342dd7161/zhon-1.1.4.tar.gz" } ], "1.1.5": [ { "comment_text": "", "digests": { "md5": "6955ba5a3b28ee2945247c5ed5ba0509", "sha256": "793723575c46f10ace8846c579ce740b04c73e2aa583e04e000aedbd4a47f87f" }, "downloads": -1, "filename": "zhon-1.1.5.tar.gz", "has_sig": false, "md5_digest": "6955ba5a3b28ee2945247c5ed5ba0509", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 99811, "upload_time": "2016-05-23T13:11:39", "url": "https://files.pythonhosted.org/packages/9f/b0/c56c6079ad47c35a2341440818b6620de8c46a265ed690a51b1a4e5591bc/zhon-1.1.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6955ba5a3b28ee2945247c5ed5ba0509", "sha256": "793723575c46f10ace8846c579ce740b04c73e2aa583e04e000aedbd4a47f87f" }, "downloads": -1, "filename": "zhon-1.1.5.tar.gz", "has_sig": false, "md5_digest": "6955ba5a3b28ee2945247c5ed5ba0509", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 99811, "upload_time": "2016-05-23T13:11:39", "url": "https://files.pythonhosted.org/packages/9f/b0/c56c6079ad47c35a2341440818b6620de8c46a265ed690a51b1a4e5591bc/zhon-1.1.5.tar.gz" } ] }