{ "info": { "author": "houbb", "author_email": "houbinbin.echo@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# Openccpy\n\n```\n ___ _____ __ ___ ___ ___ _____ __ __\n / __`\\/\\ '__`\\ /'__`\\/' _ `\\ /'___\\ /'___\\/\\ '__`\\/\\ \\/\\ \\\n/\\ \\L\\ \\ \\ \\L\\ \\/\\ __//\\ \\/\\ \\/\\ \\__//\\ \\__/\\ \\ \\L\\ \\ \\ \\_\\ \\\n\\ \\____/\\ \\ ,__/\\ \\____\\ \\_\\ \\_\\ \\____\\ \\____\\\\ \\ ,__/\\/`____ \\\n \\/___/ \\ \\ \\/ \\/____/\\/_/\\/_/\\/____/\\/____/ \\ \\ \\/ `/___/> \\\n \\ \\_\\ \\ \\_\\ /\\___/\n \\/_/ \\/_/ \\/__/\n```\n\n[![PYPI](https://img.shields.io/pypi/v/openccpy.svg)](https://pypi.org/project/openccpy/)\n[![Build Status](https://www.travis-ci.org/houbb/openccpy.svg?branch=master)](https://www.travis-ci.org/houbb/openccpy)\n[![Coverage Status](https://coveralls.io/repos/github/houbb/openccpy/badge.svg?branch=master)](https://coveralls.io/github/houbb/openccpy?branch=master)\n\nOpen Chinese Convert is an opensource project for conversion between Traditional Chinese and Simplified Chinese for python.\n\n(python \u4e2d\u6587\u7e41\u7b80\u4f53\u8f6c\u6362\u5de5\u5177)\n\n# \u7279\u6027\n\n- \u652f\u6301\u4e2d\u6587\u7e41\u7b80\u4f53\u8f6c\u6362(v0.0.2)\n\n# Quick Start\n\n## install\n\n```\npip install openccpy\n```\n\n## \u4f7f\u7528\u6848\u4f8b\n\n```py\n# coding=utf-8\nfrom openccpy.opencc import *\n\nclass TestOpencc(object):\n \"\"\"\n \u6838\u5fc3\u8f6c\u6362\u6d4b\u8bd5\u7c7b\n \"\"\"\n\n def test_to_simple(self):\n \"\"\"\n \u6d4b\u8bd5\u8f6c\u6362\u4e3a\u7b80\u4f53\n \"\"\"\n assert \"\u4e1d\" == Opencc.to_simple(\"\u7d72\")\n assert \"\u4e00\u76ee\u4e86\u7136\" == Opencc.to_simple(\"\u4e00\u76ee\u77ad\u7136\")\n\n def test_to_traditional(self):\n \"\"\"\n \u6d4b\u8bd5\u8f6c\u5316\u4e3a\u7e41\u4f53\n \"\"\"\n assert \"\u7d72\" == Opencc.to_traditional(\"\u4e1d\")\n assert \"\u4e00\u76ee\u77ad\u7136\" == Opencc.to_traditional(\"\u4e00\u76ee\u4e86\u7136\")\n```\n\n## \u65b9\u6cd5\u7b80\u4ecb\n\n### \u8f6c\u4e3a\u7b80\u4f53\n\n```py\ndef to_simple(traditional):\n \"\"\"\n \u7e41\u4f53\u8f6c\u5316\u4e3a\u7b80\u4f53\n 1. \u5982\u679c\u5b57\u7b26\u4e3a\u7a7a\uff0c\u76f4\u63a5\u8fd4\u56de\n 2. \u5b57\u7b26\u957f\u5ea6\u4e3a1\uff0c\u8fd4\u56de\u5bf9\u5e94\u7b80\u4f53\u5b57\u7b26\n 3. \u5bf9\u5e94\u957f\u5ea6\u5927\u4e8e1\uff0c\u8fd4\u56de\u5bf9\u5e94\u7b80\u4f53\u8bcd\u7ec4\n :param traditional: \u7e41\u4f53\u5355\u8bcd/\u5355\u4e2a\u8bcd\u7ec4\n :return: \u5bf9\u5e94\u7684\u7b80\u4f53\u4fe1\u606f\n \"\"\"\n```\n\n### \u8f6c\u4e3a\u7e41\u4f53\n\n```py\ndef to_traditional(simple):\n\n \"\"\"\n \u7b80\u4f53\u8f6c\u5316\u4e3a\u7e41\u4f53\n 1. \u5982\u679c\u5b57\u7b26\u4e3a\u7a7a\uff0c\u76f4\u63a5\u8fd4\u56de\n 2. \u5b57\u7b26\u957f\u5ea6\u4e3a1\uff0c\u8fd4\u56de\u5bf9\u5e94\u7e41\u4f53\u5b57\u7b26\n 3. \u5bf9\u5e94\u957f\u5ea6\u5927\u4e8e1\uff0c\u8fd4\u56de\u5bf9\u5e94\u7e41\u4f53\u8bcd\u7ec4\n :param simple: \u7b80\u4f53\u5355\u8bcd/\u5355\u4e2a\u8bcd\u7ec4\n :return: \u5bf9\u5e94\u7684\u7e41\u4f53\u4fe1\u606f\n \"\"\"\n```\n\n# \u76f8\u5173\u6846\u67b6\n\n[\u4e2d\u6587\u7e41\u7b80\u4f53\u8f6c\u6362-java \u7248\u672c](https://github.com/houbb/opencc4j)\n\n# \u4e0b\u671f\u8ba1\u5212\n\n1. \u6dfb\u52a0\u5206\u8bcd\u529f\u80fd\n\n", "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/houbb/pycc", "keywords": "tool,opencc,opencc-py,opencc-python,Chinese Convert,\u4e2d\u6587\u7e41\u7b80\u4f53\u8f6c\u6362", "license": "", "maintainer": "", "maintainer_email": "", "name": "openccpy", "package_url": "https://pypi.org/project/openccpy/", "platform": "", "project_url": "https://pypi.org/project/openccpy/", "project_urls": { "Homepage": "https://github.com/houbb/pycc" }, "release_url": "https://pypi.org/project/openccpy/0.0.4.3/", "requires_dist": null, "requires_python": "", "summary": "Open Chinese Convert is an opensource project for conversion between Traditional Chinese and Simplified Chinese for python.", "version": "0.0.4.3" }, "last_serial": 5124668, "releases": { "0.0.4": [ { "comment_text": "", "digests": { "md5": "7b2c47a455b39773620e5fe3369187f5", "sha256": "853d5387c5104f7d38033a9295b6181850345eb4d4c954ef873fd9adabefc667" }, "downloads": -1, "filename": "openccpy-0.0.4-py3-none-any.whl", "has_sig": false, "md5_digest": "7b2c47a455b39773620e5fe3369187f5", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 11937, "upload_time": "2019-04-10T14:18:32", "url": "https://files.pythonhosted.org/packages/1e/93/430364e100d0cf9b37d14cafb84b06fcb02b81b46cd1257bbc7fdbbac1cb/openccpy-0.0.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e5aa698f08cdba6a727e17c2823dd2c5", "sha256": "50b93569dbe71e6f8ced95dcc3c381efd4daf3a0dcb616602d90990bd178b1bb" }, "downloads": -1, "filename": "openccpy-0.0.4.tar.gz", "has_sig": false, "md5_digest": "e5aa698f08cdba6a727e17c2823dd2c5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4800, "upload_time": "2019-04-10T14:18:34", "url": "https://files.pythonhosted.org/packages/cb/d4/6c86c0ffc1812e271f5012b7c81602b297a7171d0e8dbf7672d62d771fe5/openccpy-0.0.4.tar.gz" } ], "0.0.4.1": [ { "comment_text": "", "digests": { "md5": "bc3b908b3546c09d2a408c805a96730c", "sha256": "9e0d50ea79a1c70fd3f2d8f3760a72f4e3dcae60a4c2fde3ad568bfd9950944e" }, "downloads": -1, "filename": "openccpy-0.0.4.1-py3-none-any.whl", "has_sig": false, "md5_digest": "bc3b908b3546c09d2a408c805a96730c", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 11959, "upload_time": "2019-04-10T14:38:57", "url": "https://files.pythonhosted.org/packages/82/6f/d25789ece4e5199552b329e5e035e0cd2b485fe7e68013220bd4da78be93/openccpy-0.0.4.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "750c5ca6494e44e1e4f01613e1dd59a0", "sha256": "f12ebcbc36e3fa0cd7467741ad656e5fb648af3c5328f070286308996da8e835" }, "downloads": -1, "filename": "openccpy-0.0.4.1.tar.gz", "has_sig": false, "md5_digest": "750c5ca6494e44e1e4f01613e1dd59a0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4861, "upload_time": "2019-04-10T14:39:00", "url": "https://files.pythonhosted.org/packages/94/9a/33c2f44806cb72f840b79de26220fcebb24716f75921bb58a713e8ef91bd/openccpy-0.0.4.1.tar.gz" } ], "0.0.4.2": [ { "comment_text": "", "digests": { "md5": "61f7fc8869e6a0cdac6cf03fce3c6fca", "sha256": "74cd7edef8abf3cfead023788e97bcd7de531d8f993985cee58b2c70f98d697f" }, "downloads": -1, "filename": "openccpy-0.0.4.2-py3-none-any.whl", "has_sig": false, "md5_digest": "61f7fc8869e6a0cdac6cf03fce3c6fca", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 458976, "upload_time": "2019-04-10T14:53:32", "url": "https://files.pythonhosted.org/packages/58/a9/ecab38027fa224c661ced7419d8b29a45d60b6065303bd8745b6d93d931a/openccpy-0.0.4.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0cacbea22a3f144cff43cbcceffccdb3", "sha256": "55933e27f650204f334a9a2b53c0c81f5e06ec8477ca5521c0f2bf975d170862" }, "downloads": -1, "filename": "openccpy-0.0.4.2.tar.gz", "has_sig": false, "md5_digest": "0cacbea22a3f144cff43cbcceffccdb3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 459565, "upload_time": "2019-04-10T14:53:34", "url": "https://files.pythonhosted.org/packages/40/a3/4451d7e5303b16ffc4d24f84980844597802716537d966eddf4817f8df37/openccpy-0.0.4.2.tar.gz" } ], "0.0.4.3": [ { "comment_text": "", "digests": { "md5": "88ff8b751d6e92df1ee2f0a3b9107d8b", "sha256": "fd13c7c4e4b0dc08225feb201abdd14b1fc919fdafa29ad30de5ae4bd297f0dd" }, "downloads": -1, "filename": "openccpy-0.0.4.3-py3-none-any.whl", "has_sig": false, "md5_digest": "88ff8b751d6e92df1ee2f0a3b9107d8b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 458984, "upload_time": "2019-04-10T15:29:34", "url": "https://files.pythonhosted.org/packages/ab/e8/7e3071828731ebbfdda0a03c179ae43a31131f0c7e4203b75d5230396685/openccpy-0.0.4.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "15852c91567e9fc1e69583a6706d447d", "sha256": "0ae4d7c31adb2630944437b324002bb8b0f4009891c3ff060d2005ed41172741" }, "downloads": -1, "filename": "openccpy-0.0.4.3.tar.gz", "has_sig": false, "md5_digest": "15852c91567e9fc1e69583a6706d447d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 459576, "upload_time": "2019-04-10T15:29:37", "url": "https://files.pythonhosted.org/packages/e6/b9/d7e7bd7d5c9b12e55e6489082c5f6908d603933b106cb80df2e805e9acd7/openccpy-0.0.4.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "88ff8b751d6e92df1ee2f0a3b9107d8b", "sha256": "fd13c7c4e4b0dc08225feb201abdd14b1fc919fdafa29ad30de5ae4bd297f0dd" }, "downloads": -1, "filename": "openccpy-0.0.4.3-py3-none-any.whl", "has_sig": false, "md5_digest": "88ff8b751d6e92df1ee2f0a3b9107d8b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 458984, "upload_time": "2019-04-10T15:29:34", "url": "https://files.pythonhosted.org/packages/ab/e8/7e3071828731ebbfdda0a03c179ae43a31131f0c7e4203b75d5230396685/openccpy-0.0.4.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "15852c91567e9fc1e69583a6706d447d", "sha256": "0ae4d7c31adb2630944437b324002bb8b0f4009891c3ff060d2005ed41172741" }, "downloads": -1, "filename": "openccpy-0.0.4.3.tar.gz", "has_sig": false, "md5_digest": "15852c91567e9fc1e69583a6706d447d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 459576, "upload_time": "2019-04-10T15:29:37", "url": "https://files.pythonhosted.org/packages/e6/b9/d7e7bd7d5c9b12e55e6489082c5f6908d603933b106cb80df2e805e9acd7/openccpy-0.0.4.3.tar.gz" } ] }