{ "info": { "author": "Tony Narlock", "author_email": "cihai@git-pull.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Web Environment", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Software Development :: Internationalization", "Topic :: Utilities" ], "description": "*unihan-tabular* - tool to build `UNIHAN`_ into tabular-friendly formats\nlike python, JSON, CSV and YAML. Part of the `cihai`_ project.\n\n|pypi| |docs| |build-status| |coverage| |license|\n\n`UNIHAN`_'s data is dispersed across multiple files in the format of::\n\n U+3400\tkCantonese\tjau1\n U+3400\tkDefinition\t(same as U+4E18 \u4e18) hillock or mound\n U+3400\tkMandarin\tqi\u016b\n U+3401\tkCantonese\ttim2\n U+3401\tkDefinition\tto lick; to taste, a mat, bamboo bark\n U+3401\tkHanyuPinyin\t10019.020:ti\u00e0n\n U+3401\tkMandarin\tti\u00e0n\n\n``$ unihan-tabular`` will download Unihan.zip and build all files into a\nsingle tabular friendly format.\n\nCSV (default), ``$ unihan-tabular``::\n\n char,ucn,kCantonese,kDefinition,kHanyuPinyin,kMandarin\n \u3400,U+3400,jau1,(same as U+4E18 \u4e18) hillock or mound,,qi\u016b\n \u3401,U+3401,tim2,\"to lick; to taste, a mat, bamboo bark\",10019.020:ti\u00e0n,ti\u00e0n\n\nJSON, ``$ unihan-tabular -F json``:\n\n.. code-block:: json\n\n [\n {\n \"char\": \"\u3400\",\n \"ucn\": \"U+3400\",\n \"kCantonese\": \"jau1\",\n \"kDefinition\": \"(same as U+4E18 \u4e18) hillock or mound\",\n \"kHanyuPinyin\": null,\n \"kMandarin\": \"qi\u016b\"\n },\n {\n \"char\": \"\u3401\",\n \"ucn\": \"U+3401\",\n \"kCantonese\": \"tim2\",\n \"kDefinition\": \"to lick; to taste, a mat, bamboo bark\",\n \"kHanyuPinyin\": \"10019.020:ti\u00e0n\",\n \"kMandarin\": \"ti\u00e0n\"\n }\n ]\n\nYAML ``$ unihan-tabular -F yaml``:\n\n.. code-block:: yaml\n\n - char: \u3400\n kCantonese: jau1\n kDefinition: (same as U+4E18 \u4e18) hillock or mound\n kHanyuPinyin: null\n kMandarin: qi\u016b\n ucn: U+3400\n - char: \u3401\n kCantonese: tim2\n kDefinition: to lick; to taste, a mat, bamboo bark\n kHanyuPinyin: 10019.020:ti\u00e0n\n kMandarin: ti\u00e0n\n ucn: U+3401\n\nFeatures\n--------\n\n* automatically downloads UNIHAN from the internet\n* export to JSON, CSV and YAML (requires `pyyaml`_) via ``-F``\n* configurable to export specific fields via ``-f``\n* accounts for encoding conflicts due to the Unicode-heavy content\n* designed as a technical proof for future CJK (Chinese, Japanese,\n Korean) datasets\n* core component and dependency of `cihai`_, a CJK library\n* `data package`_ support\n* supports python 2.7, >= 3.5 and pypy\n\nIf you encounter a problem or have a question, please `create an\nissue`_.\n\n.. _cihai: https://cihai.git-pull.com\n.. _cihai-handbook: https://github.com/cihai/cihai-handbook\n.. _cihai team: https://github.com/cihai?tab=members\n.. _cihai-python: https://github.com/cihai/cihai-python\n.. _unihan-tabular on github: https://github.com/cihai/unihan-tabular\n\nUsage\n-----\n\n``unihan-tabular`` supports command line arguments. See `unihan-tabular CLI\narguments`_ for information on how you can specify custom columns, files,\ndownload URL's and output destinations.\n\nTo download and build your own UNIHAN export:\n\n.. code-block:: bash\n\n $ pip install unihan-tabular\n\nTo output CSV, the default format:\n\n.. code-block:: bash\n\n $ unihan-tabular\n\nTo output JSON::\n\n $ unihan-tabular -F json\n\nTo output YAML::\n\n $ pip install pyyaml\n $ unihan-tabular -F yaml\n\nTo only output the kDefinition field in a csv::\n\n $ unihan-tabular -f kDefinition\n\nTo output multiple fields, separate with spaces::\n\n $ unihan-tabular -f kCantonese kDefinition\n\nTo output to a custom file::\n\n $ unihan-tabular --destination ./exported.csv\n\nTo output to a custom file (templated file extension)::\n\n $ unihan-tabular --destination ./exported.{ext}\n\nSee `unihan-tabular CLI arguments`_ for advanced usage examples.\n\n.. _unihan-tabular CLI arguments: http://unihan-tabular.readthedocs.org/en/latest/cli.html\n\nStructure\n---------\n\n.. code-block:: bash\n\n # output w/ JSON\n {XDG data dir}/unihan_tabular/unihan.json\n\n # output w/ CSV\n {XDG data dir}/unihan_tabular/unihan.csv\n\n # output w/ yaml (requires pyyaml)\n {XDG data dir}/unihan_tabular/unihan.yaml\n\n # script to download + build a SDF csv of unihan.\n unihan_tabular/process.py\n\n # unit tests to verify behavior / consistency of builder\n tests/*\n\n # python 2/3 compatibility module\n unihan_tabular/_compat.py\n\n # utility / helper functions\n unihan_tabular/util.py\n\n.. _MIT: http://opensource.org/licenses/MIT\n.. _API: http://cihai.readthedocs.org/en/latest/api.html\n.. _UNIHAN: http://www.unicode.org/charts/unihan.html\n.. _create an issue: https://github.com/cihai/unihan-tabular/issues/new\n.. _Data Package: http://frictionlessdata.io/data-packages/\n.. _pyyaml: http://pyyaml.org/\n\n.. |pypi| image:: https://img.shields.io/pypi/v/unihan-tabular.svg\n :alt: Python Package\n :target: http://badge.fury.io/py/unihan-tabular\n\n.. |build-status| image:: https://img.shields.io/travis/cihai/unihan-tabular.svg\n :alt: Build Status\n :target: https://travis-ci.org/cihai/unihan-tabular\n\n.. |coverage| image:: https://codecov.io/gh/cihai/unihan-tabular/branch/master/graph/badge.svg\n :alt: Code Coverage\n :target: https://codecov.io/gh/cihai/unihan-tabular\n\n.. |license| image:: https://img.shields.io/github/license/cihai/unihan-tabular.svg\n :alt: License \n\n.. |docs| image:: https://readthedocs.org/projects/unihan-tabular/badge/?version=latest\n :alt: Documentation Status\n :scale: 100%\n :target: https://readthedocs.org/projects/unihan-tabular/", "description_content_type": null, "docs_url": null, "download_url": "https://pypi.python.org/pypi/unihan-tabular", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://unihan-tabular.git-pull.com", "keywords": "unihan-tabular", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "unihan-tabular", "package_url": "https://pypi.org/project/unihan-tabular/", "platform": "", "project_url": "https://pypi.org/project/unihan-tabular/", "project_urls": { "Download": "https://pypi.python.org/pypi/unihan-tabular", "Homepage": "https://unihan-tabular.git-pull.com" }, "release_url": "https://pypi.org/project/unihan-tabular/0.8.1/", "requires_dist": null, "requires_python": "", "summary": "Export UNIHAN to Python, Data Package, CSV, JSON and YAML", "version": "0.8.1" }, "last_serial": 2888009, "releases": { "0.5.0": [ { "comment_text": "", "digests": { "md5": "2861ec40cf9bae5879a69f3292fd7ffa", "sha256": "94ac51c28657aa9e4b699da0067c9306712a80a187c791e7d46f1b5f2d2b12e0" }, "downloads": -1, "filename": "unihan-tabular-0.5.0.tar.gz", "has_sig": false, "md5_digest": "2861ec40cf9bae5879a69f3292fd7ffa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5956, "upload_time": "2017-05-08T22:24:43", "url": "https://files.pythonhosted.org/packages/00/6a/c8f89226d30127ec5761f4df0b5e38bf900a35024765870cb2757eaf29d4/unihan-tabular-0.5.0.tar.gz" } ], "0.5.1": [ { "comment_text": "", "digests": { "md5": "d4e88d5d625a7bfc91558054779685ba", "sha256": "63b8f48d13fc21182927f10f167732d9a068e2960adfe58f7ceab9d14a78bbd6" }, "downloads": -1, "filename": "unihan-tabular-0.5.1.tar.gz", "has_sig": false, "md5_digest": "d4e88d5d625a7bfc91558054779685ba", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5968, "upload_time": "2017-05-08T22:31:01", "url": "https://files.pythonhosted.org/packages/da/1c/0a4fb855037da4a7c5e8bbcfd47ea002390fa01e91cb142fc17e5af15ce4/unihan-tabular-0.5.1.tar.gz" } ], "0.6.0": [ { "comment_text": "", "digests": { "md5": "2e0b4c2e1fdfd476ef67288024e18c59", "sha256": "5355c03b6377974ebfe0484ff028f240e25226d383471f40e234e825b1d86363" }, "downloads": -1, "filename": "unihan-tabular-0.6.0.tar.gz", "has_sig": false, "md5_digest": "2e0b4c2e1fdfd476ef67288024e18c59", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6212, "upload_time": "2017-05-10T23:02:07", "url": "https://files.pythonhosted.org/packages/97/fc/2abbed1ffae9778a9c4fe022702ed59176ccd76be990ba3c19020a747051/unihan-tabular-0.6.0.tar.gz" } ], "0.6.1": [ { "comment_text": "", "digests": { "md5": "dc25db9fde640fdcf4a972c9e9286138", "sha256": "7c562924567f679f0530a82021edfab911ec23f0d54610a8fa08e87d418f91fa" }, "downloads": -1, "filename": "unihan-tabular-0.6.1.tar.gz", "has_sig": false, "md5_digest": "dc25db9fde640fdcf4a972c9e9286138", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6226, "upload_time": "2017-05-10T23:04:50", "url": "https://files.pythonhosted.org/packages/7f/7d/39fa7215ba6a60f71f7ff774748289f33507ca16b6b88bae1eebd8f18800/unihan-tabular-0.6.1.tar.gz" } ], "0.6.1b0": [ { "comment_text": "", "digests": { "md5": "092e74bfefd25bd938eb4515d3952a53", "sha256": "9ce56a1480b9ca887c6b5e21a83ec4e0bb6dc7f1ba84c6917c10d011eff24ee1" }, "downloads": -1, "filename": "unihan-tabular-0.6.1b0.tar.gz", "has_sig": false, "md5_digest": "092e74bfefd25bd938eb4515d3952a53", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6190, "upload_time": "2017-05-10T23:08:13", "url": "https://files.pythonhosted.org/packages/60/5e/e89ab67df91d60297e0b48c7fcb4234d0a7ee44b41a02da95cc410e09422/unihan-tabular-0.6.1b0.tar.gz" } ], "0.6.2": [ { "comment_text": "", "digests": { "md5": "662b7a31cffcd7ffa96bbdeb50032d12", "sha256": "25c9cceb76d1deae9e9fa62988e9072992a2dfef1ade25938e604dedd1dee161" }, "downloads": -1, "filename": "unihan-tabular-0.6.2.tar.gz", "has_sig": false, "md5_digest": "662b7a31cffcd7ffa96bbdeb50032d12", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15593, "upload_time": "2017-05-11T14:27:23", "url": "https://files.pythonhosted.org/packages/aa/b7/2f7338ba29325ee9745fe356912ae81153c87a90c31939577c22bd375929/unihan-tabular-0.6.2.tar.gz" } ], "0.6.3": [ { "comment_text": "", "digests": { "md5": "abf9ab6c790263e1ca54f3ea74226b04", "sha256": "855a7e4fef1cf1ea8f6de7d764f42483069988c9b15188a34ea451217246a32d" }, "downloads": -1, "filename": "unihan-tabular-0.6.3.tar.gz", "has_sig": false, "md5_digest": "abf9ab6c790263e1ca54f3ea74226b04", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15688, "upload_time": "2017-05-11T14:31:15", "url": "https://files.pythonhosted.org/packages/b4/6d/2d9ba67fcdfc8affec32c1074570b9d9f15ff0ff76887f71af9d8c5e18ae/unihan-tabular-0.6.3.tar.gz" } ], "0.7.0": [ { "comment_text": "", "digests": { "md5": "4cd594efc1ea263a49854b5088622eae", "sha256": "466b22c74792b6aac26ad6151ad36828c7359738c3d8742d96d97a3a55a391d2" }, "downloads": -1, "filename": "unihan-tabular-0.7.0.tar.gz", "has_sig": false, "md5_digest": "4cd594efc1ea263a49854b5088622eae", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14177, "upload_time": "2017-05-12T22:32:42", "url": "https://files.pythonhosted.org/packages/0b/13/f1e290654990a6885db3240e54e236ffecdc368caf589b4e164e9b2190d5/unihan-tabular-0.7.0.tar.gz" } ], "0.7.1": [ { "comment_text": "", "digests": { "md5": "b2cd95392a0c197b5f8d539976f9275a", "sha256": "b0c78b86ce6eaaba2dc3e4cbeae13b868c8835993e0765666b8283002ea24cb2" }, "downloads": -1, "filename": "unihan-tabular-0.7.1.tar.gz", "has_sig": false, "md5_digest": "b2cd95392a0c197b5f8d539976f9275a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14250, "upload_time": "2017-05-12T23:23:49", "url": "https://files.pythonhosted.org/packages/eb/28/1b72d87362bd4a1c44274eeb08f755371f298b1f9425d8609e59ebcfdbc0/unihan-tabular-0.7.1.tar.gz" } ], "0.7.2": [ { "comment_text": "", "digests": { "md5": "424b72df897d7a96dca12361f5f88e5a", "sha256": "53451db64e5dbc381b69f2669c74db8b39c9346f1ae6c5777a110a8b44bdf88a" }, "downloads": -1, "filename": "unihan-tabular-0.7.2.tar.gz", "has_sig": false, "md5_digest": "424b72df897d7a96dca12361f5f88e5a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14274, "upload_time": "2017-05-13T00:36:21", "url": "https://files.pythonhosted.org/packages/70/15/96f95a9ba55c60d15571fc5c87a712b00b421cda9da4d9c967dd4faaa4e7/unihan-tabular-0.7.2.tar.gz" } ], "0.7.2b0": [ { "comment_text": "", "digests": { "md5": "a08018fe88404e45445af4acbf510634", "sha256": "dbc0642e93986249b2d3965a9fb9ec99d363c3c989e776b48bd8a81fa2dc6846" }, "downloads": -1, "filename": "unihan-tabular-0.7.2b0.tar.gz", "has_sig": false, "md5_digest": "a08018fe88404e45445af4acbf510634", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14280, "upload_time": "2017-05-13T00:44:53", "url": "https://files.pythonhosted.org/packages/1d/93/08ded7138b33587160a66ee9208f952586d74d026a531952a3f0c2de70a4/unihan-tabular-0.7.2b0.tar.gz" } ], "0.7.3": [ { "comment_text": "", "digests": { "md5": "cb83b7b0b3a7c49bc24296d3e7863b68", "sha256": "aedf9bffb234a2a004beecb7464a5ad8b203ffebe6b739d6d85f2c395886e844" }, "downloads": -1, "filename": "unihan-tabular-0.7.3.tar.gz", "has_sig": false, "md5_digest": "cb83b7b0b3a7c49bc24296d3e7863b68", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14335, "upload_time": "2017-05-13T00:51:28", "url": "https://files.pythonhosted.org/packages/d5/20/44a6eb2a7b59e86ab2035e5cc3c392e0f5e8bfd272310277248dba091f55/unihan-tabular-0.7.3.tar.gz" } ], "0.7.4": [ { "comment_text": "", "digests": { "md5": "64bf31f35853478ea34aa7bb9d42fd41", "sha256": "e4d234b923bacd90a38232acafe86831420f302faa723d4335bfd7e20898af6e" }, "downloads": -1, "filename": "unihan-tabular-0.7.4.tar.gz", "has_sig": false, "md5_digest": "64bf31f35853478ea34aa7bb9d42fd41", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15092, "upload_time": "2017-05-13T23:11:26", "url": "https://files.pythonhosted.org/packages/69/a1/50a49d00cb9dd33eba1d29d340e49e1f1a9cd288f618e1b98c7c8b4094b1/unihan-tabular-0.7.4.tar.gz" } ], "0.8.0": [ { "comment_text": "", "digests": { "md5": "8dedcb9253320d3d31e9d8b51219bccb", "sha256": "276b6a6baa7a2acaf2457c980f5b50c1c7cddba93e57bff31544989118033a3b" }, "downloads": -1, "filename": "unihan-tabular-0.8.0.tar.gz", "has_sig": false, "md5_digest": "8dedcb9253320d3d31e9d8b51219bccb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15397, "upload_time": "2017-05-18T01:02:04", "url": "https://files.pythonhosted.org/packages/70/01/5a5218d274ca357b820a514481cb576f48757b744fe5c4bf08373ef3fe32/unihan-tabular-0.8.0.tar.gz" } ], "0.8.1": [ { "comment_text": "", "digests": { "md5": "c739b77028fa7ea5420681b558339fd6", "sha256": "4d026c1afd9dda99678d0259fa8676acaf741facb78b39d18c3ad84d6dfcdd21" }, "downloads": -1, "filename": "unihan-tabular-0.8.1.tar.gz", "has_sig": false, "md5_digest": "c739b77028fa7ea5420681b558339fd6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15529, "upload_time": "2017-05-21T00:50:27", "url": "https://files.pythonhosted.org/packages/e1/72/58447d411c1de7798aa8275511a979ce6b0affd15cfeab902b49db837fa6/unihan-tabular-0.8.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c739b77028fa7ea5420681b558339fd6", "sha256": "4d026c1afd9dda99678d0259fa8676acaf741facb78b39d18c3ad84d6dfcdd21" }, "downloads": -1, "filename": "unihan-tabular-0.8.1.tar.gz", "has_sig": false, "md5_digest": "c739b77028fa7ea5420681b558339fd6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15529, "upload_time": "2017-05-21T00:50:27", "url": "https://files.pythonhosted.org/packages/e1/72/58447d411c1de7798aa8275511a979ce6b0affd15cfeab902b49db837fa6/unihan-tabular-0.8.1.tar.gz" } ] }