{ "info": { "author": "Yichen Huang (Eugene)", "author_email": "yichen0831@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Software Development :: Libraries" ], "description": "\ufeff# \u958b\u653e\u4e2d\u6587\u8f49\u63db\uff08Pure Python\uff09\n\nOpen Chinese convert (OpenCC) in pure Python.\n\n## Introduction \u7c21\u4ecb\n\n[opencc-python](https://github.com/yichen0831/opencc-python) \u662f\u7528\u7d14 Python \u6240\u5beb\uff0c\u4f7f\u7528\u7531 BYVoid() \u6240\u958b\u767c\u7684 [OpenCC](https://github.com/BYVoid/OpenCC) \u4e2d\u7684\u5b57\u5178\u6a94\u6848\u3002\nopencc-python \u53ef\u4ee5\u652f\u63f4 Python2.7 \u53ca Python3.x\u3002\n\n[opencc-python](https://github.com/yichen0831/opencc-python) is made by pure Python with the dictionary files of [OpenCC](https://github.com/BYVoid/OpenCC) which is developed by BYVoid().\n\nopencc-python can run with Python2.7 and Python3.x.\n\n## Installation \u5b89\u88dd\n\n\u5c07 `opencc` \u9019\u500b\u76ee\u9304\u8907\u88fd\u5230\u4f60\u6b63\u5728\u958b\u767c\u7684\u5c08\u6848\u4e2d\u5373\u53ef\uff0c\u6216\u662f\u57f7\u884c\uff08\u9700\u8981\u7ba1\u7406\u8005\u6b0a\u9650\uff09\uff1a\n\n```sh\npython setup.py install\n```\n\n\u5957\u4ef6\u4e5f\u53ef\u5f9e [PyPI](https://pypi.org/project/opencc-python-reimplemented/) \u5b89\u88dd\uff0c\u4f7f\u7528\u6307\u4ee4\uff1a\n\n```sh\npip install opencc-python-reimplemented\n```\n\nCopy the `opencc` folder to your project, or run (admin required)\n\n```sh\npython setup.py install\n```\n\nThe package can also be installed from [PyPI](https://pypi.org/project/opencc-python-reimplemented/) by issuing:\n\n```sh\npip install opencc-python-reimplemented\n```\n\n## Usage \u4f7f\u7528\u65b9\u5f0f\n### Code\n\n``` python\nfrom opencc import OpenCC\ncc = OpenCC('s2t') # convert from Simplified Chinese to Traditional Chinese\n# can also set conversion by calling set_conversion\n# cc.set_conversion('s2tw')\nto_convert = '\u5f00\u653e\u4e2d\u6587\u8f6c\u6362'\nconverted = cc.convert(to_convert)\n```\n### Command Line\n\n```sh\nusage: python -m opencc [-h] [-i ] [-o ] [-c ]\n [--in-enc ] [--out-enc ]\n\noptional arguments:\n -h, --help show this help message and exit\n -i , --input \n Read original text from . (default: None = STDIN)\n -o , --output \n Write converted text to . (default: None = STDOUT)\n -c , --config \n Conversion (default: None)\n --in-enc Encoding for input (default: UTF-8)\n --out-enc Encoding for output (default: UTF-8)\n\nexample with UTF-8 encoded file:\n\n python -m opencc -c s2t -i my_simplified_input_file.txt -o my_traditional_output_file.txt\n\nSee https://docs.python.org/3/library/codecs.html#standard-encodings for list of encodings.\n```\n\n### Conversions \u8f49\u63db\n\n* `hk2s`: Traditional Chinese (Hong Kong standard) to Simplified Chinese\n\n* `s2hk`: Simplified Chinese to Traditional Chinese (Hong Kong standard)\n\n* `s2t`: Simplified Chinese to Traditional Chinese\n\n* `s2tw`: Simplified Chinese to Traditional Chinese (Taiwan standard)\n\n* `s2twp`: Simplified Chinese to Traditional Chinese (Taiwan standard, with phrases)\n\n* `t2hk`: Traditional Chinese to Traditional Chinese (Hong Kong standard)\n\n* `t2s`: Traditional Chinese to Simplified Chinese\n\n* `t2tw`: Traditional Chinese to Traditional Chinese (Taiwan standard)\n\n* `tw2s`: Traditional Chinese (Taiwan standard) to Simplified Chinese\n\n* `tw2sp`: Traditional Chinese (Taiwan standard) to Simplified Chinese (with phrases)\n\n## Issues \u554f\u984c\n\n\u7576\u8f49\u63db\u6709\u5169\u500b\u4ee5\u4e0a\u7684\u5b57\u8a5e\u53ef\u80fd\u6642\uff0c\u7a0b\u5f0f\u53ea\u6703\u4f7f\u7528\u7b2c\u4e00\u500b\u3002\n\nWhen there is more than one conversion available, only the first one is taken.", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/yichen0831/opencc-python", "keywords": "chinese conversion", "license": "Apache License", "maintainer": "", "maintainer_email": "", "name": "opencc-python-reimplemented", "package_url": "https://pypi.org/project/opencc-python-reimplemented/", "platform": "", "project_url": "https://pypi.org/project/opencc-python-reimplemented/", "project_urls": { "Homepage": "https://github.com/yichen0831/opencc-python" }, "release_url": "https://pypi.org/project/opencc-python-reimplemented/0.1.5/", "requires_dist": null, "requires_python": "", "summary": "OpenCC made with Python", "version": "0.1.5" }, "last_serial": 5803220, "releases": { "0.1.1": [ { "comment_text": "", "digests": { "md5": "8a70e491be21e15ed19dcd38be0485ff", "sha256": "a56c3866c998fc52462c426b5f406b2270c2d9fb1a9930bd61d607ab477173c0" }, "downloads": -1, "filename": "opencc_python_reimplemented-0.1.1-py3.6.egg", "has_sig": false, "md5_digest": "8a70e491be21e15ed19dcd38be0485ff", "packagetype": "bdist_egg", "python_version": "3.6", "requires_python": null, "size": 485688, "upload_time": "2018-03-10T15:58:39", "url": "https://files.pythonhosted.org/packages/98/57/18c204a4c62b49a8660eb36ebc4547e590ac8fe0687a6e1a29a8ec2fc598/opencc_python_reimplemented-0.1.1-py3.6.egg" }, { "comment_text": "", "digests": { "md5": "a4c52fa68b027ef6ad4b33ba610b0bf8", "sha256": "c1101ec5f38687170f7bee829fa915cec630d8ad8eace39fbfba0cd1bc585414" }, "downloads": -1, "filename": "opencc-python-reimplemented-0.1.1.tar.gz", "has_sig": false, "md5_digest": "a4c52fa68b027ef6ad4b33ba610b0bf8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 484166, "upload_time": "2018-03-10T15:58:34", "url": "https://files.pythonhosted.org/packages/fa/a3/c27fb8f1d5a29bcb521b739499a386701df92bde0409e592566a28278976/opencc-python-reimplemented-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "2e9b6a7fa932ce1bef1ab7c59ab72072", "sha256": "10a9366afe37444b9b282bcb52225b2ff67089403c5d29a35693734b6f3ae8f1" }, "downloads": -1, "filename": "opencc_python_reimplemented-0.1.2-py3.6.egg", "has_sig": false, "md5_digest": "2e9b6a7fa932ce1bef1ab7c59ab72072", "packagetype": "bdist_egg", "python_version": "3.6", "requires_python": null, "size": 485692, "upload_time": "2018-03-24T02:40:24", "url": "https://files.pythonhosted.org/packages/84/6f/5cb4575f86dbeb719869e1981828dfded35e481a38542fea2e17f3a4b844/opencc_python_reimplemented-0.1.2-py3.6.egg" }, { "comment_text": "", "digests": { "md5": "a7748acf9a62e7a053bf476b9a5f7d53", "sha256": "219930f9e65f1fde0551c28cdddcbe8c91dcf5d53870d3e02d2c364f284defa0" }, "downloads": -1, "filename": "opencc-python-reimplemented-0.1.2.tar.gz", "has_sig": false, "md5_digest": "a7748acf9a62e7a053bf476b9a5f7d53", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 484274, "upload_time": "2018-03-24T02:40:21", "url": "https://files.pythonhosted.org/packages/5e/c2/07060b5af2ed9e4328553f221f75931f08148a7946cbd509d5eb24ffaed7/opencc-python-reimplemented-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "c6cb84f18272c3b5c7e082a5e7787623", "sha256": "e4721f10bdbc91aabead5c470ff09b09f8ba103f02739ae7f369530be4d33133" }, "downloads": -1, "filename": "opencc_python_reimplemented-0.1.3-py3.6.egg", "has_sig": false, "md5_digest": "c6cb84f18272c3b5c7e082a5e7787623", "packagetype": "bdist_egg", "python_version": "3.6", "requires_python": null, "size": 485700, "upload_time": "2018-04-22T10:08:51", "url": "https://files.pythonhosted.org/packages/fa/d1/bfe4eb50df5f3d540bbb69ba08163cb5e6280d1971b1b447a573b3e28820/opencc_python_reimplemented-0.1.3-py3.6.egg" }, { "comment_text": "", "digests": { "md5": "5ba361c82a4ead094349b3ecc790a3c4", "sha256": "7aa48763225d927c33a9af44359c6bfe71a6ed971cb8340e53de98ee0b2385ff" }, "downloads": -1, "filename": "opencc-python-reimplemented-0.1.3.tar.gz", "has_sig": false, "md5_digest": "5ba361c82a4ead094349b3ecc790a3c4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 484272, "upload_time": "2018-04-22T10:08:47", "url": "https://files.pythonhosted.org/packages/1a/7b/b2699fec414246045255092099220c3bb851f0dab87641c542aecbdc24d7/opencc-python-reimplemented-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "7e49375970ff95d395bd9ce305ce0c2b", "sha256": "9d8e1c231e6b0e18b0c05210d72963e705943d3b57e62f0b682dee0f84534ca6" }, "downloads": -1, "filename": "opencc_python_reimplemented-0.1.4-py3.6.egg", "has_sig": false, "md5_digest": "7e49375970ff95d395bd9ce305ce0c2b", "packagetype": "bdist_egg", "python_version": "3.6", "requires_python": null, "size": 488069, "upload_time": "2018-08-11T02:32:17", "url": "https://files.pythonhosted.org/packages/9d/69/5b3f0cc01701f337998b61e356a38f2d6c87c276eaabc7a99692ce645f3f/opencc_python_reimplemented-0.1.4-py3.6.egg" }, { "comment_text": "", "digests": { "md5": "253d94599b6ab14382724592dff1c7b4", "sha256": "386090f52e8f1cc76bb5e86c2d2f67dc616ed24f8547bc5003f28af7604d2ec7" }, "downloads": -1, "filename": "opencc-python-reimplemented-0.1.4.tar.gz", "has_sig": false, "md5_digest": "253d94599b6ab14382724592dff1c7b4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 484162, "upload_time": "2018-08-11T02:32:13", "url": "https://files.pythonhosted.org/packages/1d/1a/0b99dee887eff942045785e6308c780ae9cfef481519faf1548aa872a5f0/opencc-python-reimplemented-0.1.4.tar.gz" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "f1fdca687abd11779179c17797653297", "sha256": "db9a3eb1cc687dc846f2ff644698210fb74ee643df55504af56ffe5b8c4ffeaf" }, "downloads": -1, "filename": "opencc-python-reimplemented-0.1.5.tar.gz", "has_sig": false, "md5_digest": "f1fdca687abd11779179c17797653297", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 482881, "upload_time": "2019-09-09T11:44:18", "url": "https://files.pythonhosted.org/packages/53/0c/c499c86a719c925a08586085a56f92f3235c03ee8b4db2e59c1e9aab3f55/opencc-python-reimplemented-0.1.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f1fdca687abd11779179c17797653297", "sha256": "db9a3eb1cc687dc846f2ff644698210fb74ee643df55504af56ffe5b8c4ffeaf" }, "downloads": -1, "filename": "opencc-python-reimplemented-0.1.5.tar.gz", "has_sig": false, "md5_digest": "f1fdca687abd11779179c17797653297", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 482881, "upload_time": "2019-09-09T11:44:18", "url": "https://files.pythonhosted.org/packages/53/0c/c499c86a719c925a08586085a56f92f3235c03ee8b4db2e59c1e9aab3f55/opencc-python-reimplemented-0.1.5.tar.gz" } ] }