{ "info": { "author": "", "author_email": "", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "License :: OSI Approved :: BSD License", "Natural Language :: Chinese (Simplified)", "Operating System :: OS Independent", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy" ], "description": "GB2260-v2\n======\n\nThe Python implementation for looking up the Chinese administrative divisions.\n\n\nInstallation\n------------\n\n::\n\n $ pip install GB2260-v2\n\n\nBasic Usage\n-----------\n\nThe way to look up a administrative division by its GB2260 code is\nthe basic interface:\n\n.. code-block:: python\n\n >>> from gb2260_v2 import GB2260\n >>> gb2260 = GB2260()\n >>>\n >>> division = gb2260.get('360426')\n >>> print(division)\n \n\nThe data of a division is accessible to interfaces as following:\n\n.. code-block:: python\n\n >>> division.code\n u'360426'\n >>> division.name\n u'\u5fb7\u5b89\u53bf'\n >>> division.is_county\n True\n >>> division.is_province\n False\n >>> division.is_prefecture\n False\n >>> print(division.province)\n \n >>> print(division.prefecture)\n \n\nSee `Specification v0.2 `_ for details.\n\nIssues\n------\n\nIf you want to report bugs or request features, please create issues on\n`GitHub Issues `_.\n\n\nExternal Links\n--------------\n\n- `GB/T 2260-2002 in Wikipedia `_\n- `Codes for administrative divisions of PRC `_\n\n.. |GB/T 2260| image:: http://img.shields.io/badge/GB%2FT-2260-blue.svg?style=flat\n :target: https://github.com/cn/GB2260\n :alt: GB/T 2260\n.. |Build Status| image:: https://img.shields.io/travis/cn/GB2260.py.svg?style=flat\n :target: https://travis-ci.org/cn/GB2260.py\n :alt: Build Status\n.. |Coverage Status| image:: https://img.shields.io/coveralls/cn/GB2260.py.svg?style=flat\n :target: https://coveralls.io/r/cn/GB2260.py\n :alt: Coverage Status\n.. |Wheel Status| image:: https://img.shields.io/pypi/wheel/GB2260.svg?style=flat\n :target: https://warehouse.python.org/project/GB2260\n :alt: Wheel Status\n.. |PyPI Version| image:: https://img.shields.io/pypi/v/GB2260.svg?style=flat\n :target: https://pypi.python.org/pypi/GB2260\n :alt: PyPI Version\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/bosndata/GB2260.py", "keywords": "", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "GB2260-v2", "package_url": "https://pypi.org/project/GB2260-v2/", "platform": "", "project_url": "https://pypi.org/project/GB2260-v2/", "project_urls": { "Homepage": "https://github.com/bosndata/GB2260.py" }, "release_url": "https://pypi.org/project/GB2260-v2/0.2.0/", "requires_dist": null, "requires_python": "", "summary": "The Python implementation for looking up the Chinese administrative divisions.", "version": "0.2.0" }, "last_serial": 5154160, "releases": { "0.2.0": [ { "comment_text": "", "digests": { "md5": "d091814a2c743b454ea3ed305a1c7d98", "sha256": "684cf7a12002d5bde45bf51b687238d48bcdecc7db14a58334254db1e75a9ce5" }, "downloads": -1, "filename": "GB2260_v2-0.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "d091814a2c743b454ea3ed305a1c7d98", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 2025699, "upload_time": "2019-04-17T09:13:17", "url": "https://files.pythonhosted.org/packages/3a/d2/8ad3e4502305ee5f4948eb6b862cce321275155d8d87f32d4450042d9c6e/GB2260_v2-0.2.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "818385b53714a2742c255d78370723bb", "sha256": "32b914723b2bc279a3655a6bfe49703a76e522792fb44320f20a56885d04eda2" }, "downloads": -1, "filename": "GB2260-v2-0.2.0.tar.gz", "has_sig": false, "md5_digest": "818385b53714a2742c255d78370723bb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1980412, "upload_time": "2019-04-17T09:13:21", "url": "https://files.pythonhosted.org/packages/53/89/28c3d066b80fca4372639332c80b0b775a0a9236c22e9230787f86b4370e/GB2260-v2-0.2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d091814a2c743b454ea3ed305a1c7d98", "sha256": "684cf7a12002d5bde45bf51b687238d48bcdecc7db14a58334254db1e75a9ce5" }, "downloads": -1, "filename": "GB2260_v2-0.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "d091814a2c743b454ea3ed305a1c7d98", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 2025699, "upload_time": "2019-04-17T09:13:17", "url": "https://files.pythonhosted.org/packages/3a/d2/8ad3e4502305ee5f4948eb6b862cce321275155d8d87f32d4450042d9c6e/GB2260_v2-0.2.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "818385b53714a2742c255d78370723bb", "sha256": "32b914723b2bc279a3655a6bfe49703a76e522792fb44320f20a56885d04eda2" }, "downloads": -1, "filename": "GB2260-v2-0.2.0.tar.gz", "has_sig": false, "md5_digest": "818385b53714a2742c255d78370723bb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1980412, "upload_time": "2019-04-17T09:13:21", "url": "https://files.pythonhosted.org/packages/53/89/28c3d066b80fca4372639332c80b0b775a0a9236c22e9230787f86b4370e/GB2260-v2-0.2.0.tar.gz" } ] }