{ "info": { "author": "Bernard Yue", "author_email": "hanzi.converter@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Console", "Environment :: Web Environment", "Intended Audience :: Developers", "Intended Audience :: End Users/Desktop", "Intended Audience :: System Administrators", "License :: OSI Approved :: Apache Software License", "Natural Language :: Chinese (Simplified)", "Natural Language :: Chinese (Traditional)", "Operating System :: MacOS", "Operating System :: Microsoft :: Windows", "Operating System :: OS Independent", "Operating System :: POSIX", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "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 :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: System", "Topic :: Text Processing", "Topic :: Utilities" ], "description": "Hanzi Converter \u7e41\u7c21\u8f49\u63db\u5668 | \u7e41\u7b80\u8f6c\u6362\u5668\n=======================================\n\nThis tool converts between simplified and traditional Chinese Characters.\nIt consists of two parts:\n\n - a command line tool: ``hanzi-convert``\n - a python library: ``hanziconv``\n\nThis module supports both Python 2 and 3\n\n.. image:: https://travis-ci.org/berniey/hanziconv.png?branch=master\n :target: https://travis-ci.org/berniey/hanziconv\n :alt: Build Status\n\n.. image:: https://img.shields.io/badge/version-0.3.2-brightgreen.svg?style=plastic\n :target: https://pypi.python.org/pypi/hanziconv/\n :alt: Latest Version\n\n.. image:: https://img.shields.io/badge/doc-0.3.2-brightgreen.svg?style=plastic\n :target: https://pythonhosted.org/hanziconv/\n :alt: Documentation\n\n.. image:: https://img.shields.io/badge/source-latest-blue.svg?style=plastic\n :target: https://github.com/berniey/hanziconv\n :alt: Source Code\n\n.. image:: https://img.shields.io/badge/license-Apache%202.0-blue.svg?style=plastic\n :target: https://raw.githubusercontent.com/berniey/hanziconv/master/LICENSE\n :alt: License\n\n\nInstallation\n------------\n\n.. code-block:: sh\n\n $ pip install hanziconv\n\n\nUninstallation\n--------------\n\n.. code-block:: sh\n\n $ [sudo] pip uninstall hanziconv\n\n\nCommand Line Tool\n-----------------\n\nSynopsis\n********\n\n.. code-block:: sh\n\n $ ./hanzi-convert --help\n usage: hanzi-convert [-h] [-o OUTFILE] [-s] [-v] infile\n\n Simplified and Traditional Chinese Character Conversion\n Version 0.3.2 (By Bernard Yue)\n\n Converting to Traditional Hanzi by default with no -s flag\n\n positional arguments:\n infile filename | \"-\", corresponds to stdin\n\n optional arguments:\n -h, --help show this help message and exit\n -o OUTFILE, --output OUTFILE\n filename to save output, stdout if omitted\n -s, --simplified convert to simplified characters\n -v, --version show program's version number and exit\n\n\nExample\n*******\n\nConversion from stdin\n\n.. code-block:: sh\n\n $ ./hanzi-convert -\n Press Crtl-D when finished\n Typing away\n Now write some chinese characters\n \u7e41\u7b80\u8f6c\u6362\u5668\n ^D\n Typing away\n Now write some chinese characters\n \u7e41\u7c21\u8f49\u63db\u5668\n $\n\n\nPython API\n----------\n\nExample\n*******\n\n.. code-block:: pycon\n\n >>> from hanziconv import HanziConv\n >>> print(HanziConv.toSimplified('\u7e41\u7c21\u8f49\u63db\u5668'))\n \u7e41\u7b80\u8f6c\u6362\u5668\n >>> print(HanziConv.toTraditional('\u7e41\u7b80\u8f6c\u6362\u5668'))\n \u7e41\u7c21\u8f49\u63db\u5668\n >>> HanziConv.same('\u7e41\u7c21\u8f49\u63db\u5668', '\u7e41\u7b80\u8f6c\u6362\u5668')\n True\n\n\nTesting\n-------\nThe module uses `pytest `_. Use pip to install `pytest`.\n\n.. code-block:: sh\n\n $ [sudo] pip install pytest\n\nThen checkout source code and run test as normal.\n\n.. code-block:: sh\n\n $ git clone https://github.com/berniey/hanziconv\n $ cd hanziconv\n $ python setup.py test\n\n\nYou are encouraged to use `virtualenv `_\nand `virtualenvwrapper `_\nfor to avoid changing your currently operating environment.\n\n\nLicense\n-------\n\n| This module is distributed under Apache License Version 2.0.\n\nThe character map used in this module is based on the Multi-function\nChinese Character Database developed by Chinese University of Hong Kong.", "description_content_type": null, "docs_url": "https://pythonhosted.org/hanziconv/", "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/berniey/hanziconv", "keywords": null, "license": "Apache 2.0", "maintainer": null, "maintainer_email": null, "name": "hanziconv", "package_url": "https://pypi.org/project/hanziconv/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/hanziconv/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/berniey/hanziconv" }, "release_url": "https://pypi.org/project/hanziconv/0.3.2/", "requires_dist": null, "requires_python": null, "summary": "Hanzi Converter for Traditional and Simplified Chinese", "version": "0.3.2" }, "last_serial": 2317669, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "6e5971a5f3bcb184539e814bad24b9ec", "sha256": "cc941c38dea64ad88143c9b225ea27b81f41979428c01badbd7350ec8f3e61e6" }, "downloads": -1, "filename": "hanziconv-0.1.tar.gz", "has_sig": false, "md5_digest": "6e5971a5f3bcb184539e814bad24b9ec", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17162, "upload_time": "2014-08-13T06:48:20", "url": "https://files.pythonhosted.org/packages/0f/2b/156744ae52ddc61c4d5df8fde91f679601f631864e62fe21fa56a35eba91/hanziconv-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "587ee0196970f73849a5e8957ac27440", "sha256": "c5f1517003ec528a817abe0fa3b2a5864b2d6cd8fa462e8af16728abda55b8e2" }, "downloads": -1, "filename": "hanziconv-0.2.tar.gz", "has_sig": false, "md5_digest": "587ee0196970f73849a5e8957ac27440", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17272, "upload_time": "2014-08-13T09:20:25", "url": "https://files.pythonhosted.org/packages/b4/46/03f5cf815cd92d7e18428dce0e3f50b8f422d52bc54ac809872c2ee1f356/hanziconv-0.2.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "89f595c1ce4217243f4d0c1d0ce0711c", "sha256": "56e4776cb88b1bf48466cd0a7d0ee73ae14762a74babb4dcc5e85799e8660ef8" }, "downloads": -1, "filename": "hanziconv-0.2.1.tar.gz", "has_sig": false, "md5_digest": "89f595c1ce4217243f4d0c1d0ce0711c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17544, "upload_time": "2014-08-13T10:38:10", "url": "https://files.pythonhosted.org/packages/c5/9e/69e51df581993d41addc41845a6b2b030e0ca3338b5c17d462d968b7aefb/hanziconv-0.2.1.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "db74b130655e6666835b6a6fdf10b1fb", "sha256": "d2a0fb6135fe79ccbfd35fa2ef03d184ac9f4e9ae5f36449886b446794a3a469" }, "downloads": -1, "filename": "hanziconv-0.2.2.tar.gz", "has_sig": false, "md5_digest": "db74b130655e6666835b6a6fdf10b1fb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 193590, "upload_time": "2014-08-29T09:25:50", "url": "https://files.pythonhosted.org/packages/2a/4f/eefaac0115ed275b5909044ea66f5d972a35daa84a6709d88cf45446b14c/hanziconv-0.2.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "fb95bd60e08d3b5a7d5104178ea746bd", "sha256": "c4998094a4194db0355b395d94edf53908bcabcd374d7bbf7c7bdec242e5679c" }, "downloads": -1, "filename": "hanziconv-0.3.tar.gz", "has_sig": false, "md5_digest": "fb95bd60e08d3b5a7d5104178ea746bd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 273728, "upload_time": "2016-08-22T03:01:44", "url": "https://files.pythonhosted.org/packages/aa/78/aa953b61c3b4a311728f22ae94ddbcb611b14a174603efd33511927a2ba7/hanziconv-0.3.tar.gz" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "27dba73658dcf79aae8f44ad7c827488", "sha256": "7052b5a4026ba534b54eca520e09e49991241e480a77d1dcaf28f90e4924fba2" }, "downloads": -1, "filename": "hanziconv-0.3.1.tar.gz", "has_sig": false, "md5_digest": "27dba73658dcf79aae8f44ad7c827488", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 196198, "upload_time": "2016-09-01T05:12:06", "url": "https://files.pythonhosted.org/packages/57/93/8b6d231d8f67b0491faf40e38f968222de64f61ded30caa8d1b694aff8cb/hanziconv-0.3.1.tar.gz" } ], "0.3.2": [ { "comment_text": "", "digests": { "md5": "7520ac493f4e1d16e6192e715330d3be", "sha256": "208866da6ae305bca19eb98702b65c93bb3a803b496e4287ca740d68892fc4c4" }, "downloads": -1, "filename": "hanziconv-0.3.2.tar.gz", "has_sig": false, "md5_digest": "7520ac493f4e1d16e6192e715330d3be", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 276775, "upload_time": "2016-09-01T05:41:15", "url": "https://files.pythonhosted.org/packages/63/71/b89cb63077fd807fe31cf7c016a06e7e579a289d8a37aa24a30282d02dd2/hanziconv-0.3.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "7520ac493f4e1d16e6192e715330d3be", "sha256": "208866da6ae305bca19eb98702b65c93bb3a803b496e4287ca740d68892fc4c4" }, "downloads": -1, "filename": "hanziconv-0.3.2.tar.gz", "has_sig": false, "md5_digest": "7520ac493f4e1d16e6192e715330d3be", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 276775, "upload_time": "2016-09-01T05:41:15", "url": "https://files.pythonhosted.org/packages/63/71/b89cb63077fd807fe31cf7c016a06e7e579a289d8a37aa24a30282d02dd2/hanziconv-0.3.2.tar.gz" } ] }