{ "info": { "author": "Mikael Karlsson", "author_email": "i8myshoes@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: GNU Affero General Public License v3", "Operating System :: OS Independent", "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 :: 3.5", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Text Processing :: Linguistic" ], "description": "Status\n------\n\n|master_status| |dev_status| |pypi_month| |pypi_version| |gh_forks| |gh_stars|\n\nLicense\n-------\n\nGNU Affero General Public License version 3 (AGPLv3)\n\nSupports\n--------\n\n- ISO 639-1\n- ISO 639-2\n- ISO 639-3\n- ISO 639-5\n\nBreaking changes\n----------------\n\n- 0.4.4: ``retired`` has been changed to { 'code': (``datetime``, [``_Language``, ...], 'description') }.\n- 0.4.0: ``alpha3`` has been renamed to ``part3``. ``languages.alpha3`` might be used as an aggregation of all 'three letter codes' in the future.\n\nCompatibility\n-------------\n\nThis library is aimed to be **fully compatible** with ``pycountry.languages`` v1.11 and before. In v1.12 they broke their own API and this library will **not support** the new API.\n\nIt provides the following attribute abstractions:\n\n- ``terminology`` -> ``part2t``\n- ``bibliographic`` -> ``part2b``\n- ``alpha2`` -> ``part1``\n\nIf you have no intentions on using ``pycountry.languages`` or want/need to keep compatibility then please use the ``partX`` attributes for brevity and clarity.\n\nUsage\n-----\n\nAs taken from ``pycountry.languages`` v1.11 documentation, with modifications and further additions.\n\n.. code-block:: python\n\n >>> from iso639 import languages\n >>> from pprint import pprint\n\n >>> len(languages)\n 7981\n\n >>> type(list(languages)[0])\n \n\n # Compatibility\n >>> aragonese = languages.get(alpha2='an')\n >>> aragonese.alpha2\n 'an'\n >>> aragonese.bibliographic\n 'arg'\n >>> aragonese.terminology\n 'arg'\n >>> aragonese.name\n 'Aragonese'\n\n >>> bengali = languages.get(alpha2='bn')\n >>> bengali.name\n 'Bengali'\n\n # We *do not* deviate from the standard\n >>> try:\n ... bengali.common_name\n ... except AttributeError as e:\n ... print(e)\n '_Language' object has no attribute 'common_name'\n\n # New API\n >>> aragonese = languages.get(part1='an')\n >>> aragonese.part1\n 'an'\n >>> aragonese.part2b\n 'arg'\n >>> aragonese.part2t\n 'arg'\n >>> aragonese.part3\n 'arg'\n >>> aragonese.name\n 'Aragonese'\n >>> aragonese.inverted\n 'Aragonese'\n >>> pprint(vars(aragonese))\n {'inverted': 'Aragonese',\n 'macro': '',\n 'name': 'Aragonese',\n 'names': [],\n 'part1': 'an',\n 'part2b': 'arg',\n 'part2t': 'arg',\n 'part3': 'arg',\n 'part5': ''}\n >>> sanapana = languages.get(retired='sap')\n >>> [type(elem).__name__ for elem in sanapana]\n ['datetime', 'list', 'str']\n >>> [lang.part3 for lang in sanapana[1]]\n ['spn', 'aqt']\n\nContains external data\n----------------------\n\n- `ISO 639-1`_, on 2014-11-28\n- `ISO 639-2`_, on 2014-11-28\n- `ISO 639-3 Code Set`_, dated 2015-05-05\n- `ISO 639-3 Language Names Index`_, dated 2015-05-05\n- `ISO 639-3 Macrolanguage Mappings`_, dated 2015-05-05\n- `ISO 639-3 Retired Code Element Mappings`_, dated 2015-05-05\n- `ISO 639-5`_, dated 2011-05-12\n\n.. _ISO 639-1: http://id.loc.gov/vocabulary/iso639-1.tsv\n.. _ISO 639-2: http://id.loc.gov/vocabulary/iso639-2.tsv\n.. _ISO 639-3 Code Set: http://www-01.sil.org/iso639-3/iso-639-3.tab\n.. _ISO 639-3 Language Names Index: http://www-01.sil.org/iso639-3/iso-639-3_Name_Index.tab\n.. _ISO 639-3 Macrolanguage Mappings: http://www-01.sil.org/iso639-3/iso-639-3-macrolanguages.tab\n.. _ISO 639-3 Retired Code Element Mappings: http://www-01.sil.org/iso639-3/iso-639-3_Retirements.tab\n.. _ISO 639-5: http://id.loc.gov/vocabulary/iso639-5.tsv\n\n.. |master_status| image:: https://travis-ci.org/noumar/iso639.svg?branch=master\n :target: https://travis-ci.org/noumar/iso639/branches\n :alt: master\n.. |dev_status| image:: https://travis-ci.org/noumar/iso639.svg?branch=development\n :target: https://travis-ci.org/noumar/iso639/branches\n :alt: development\n.. |pypi_month| image:: https://img.shields.io/pypi/dm/iso-639.svg\n :target: https://pypi.python.org/pypi/iso-639\n :alt: downloads/month\n.. |pypi_version| image:: https://img.shields.io/pypi/v/iso-639.svg\n :target: https://pypi.python.org/pypi/iso-639\n :alt: latest version\n.. |gh_forks| image:: https://img.shields.io/github/forks/noumar/iso639.svg\n :target: https://github.com/noumar/iso639/network\n :alt: gh forks\n.. |gh_stars| image:: https://img.shields.io/github/stars/noumar/iso639.svg\n :target: https://github.com/noumar/iso639/stargazers\n :alt: gh stars", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/noumar/iso639", "keywords": "pycountry languages iso-639 iso 639 639-1 639-2 639-3 639-5", "license": "AGPLv3", "maintainer": "", "maintainer_email": "", "name": "iso-639", "package_url": "https://pypi.org/project/iso-639/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/iso-639/", "project_urls": { "Homepage": "https://github.com/noumar/iso639" }, "release_url": "https://pypi.org/project/iso-639/0.4.5/", "requires_dist": null, "requires_python": "", "summary": "Python library for ISO 639 standard", "version": "0.4.5" }, "last_serial": 2091080, "releases": { "0.4.2": [ { "comment_text": "", "digests": { "md5": "4d47e19a5c44f65fae65c7b1bf86c66c", "sha256": "d686af62e17be2c7c2e99afcdc362e911be6dac3e613d6727443a8a8d2dc1d0a" }, "downloads": -1, "filename": "iso-639-0.4.2.tar.gz", "has_sig": false, "md5_digest": "4d47e19a5c44f65fae65c7b1bf86c66c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 165087, "upload_time": "2015-07-03T17:00:07", "url": "https://files.pythonhosted.org/packages/10/e9/7e5b1474ad1b35193edf802807b2440b9ea4d89e69b8fea7b6f6ac1ba293/iso-639-0.4.2.tar.gz" } ], "0.4.3": [ { "comment_text": "", "digests": { "md5": "b4167c2b35a7fedc46e16c0cd2c1bc9d", "sha256": "fac7ce65d30879a6ebe7c33b5439ae3ee17bacf38de68857b50b7dc4891c2bab" }, "downloads": -1, "filename": "iso-639-0.4.3.tar.gz", "has_sig": false, "md5_digest": "b4167c2b35a7fedc46e16c0cd2c1bc9d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 165234, "upload_time": "2015-07-07T09:17:03", "url": "https://files.pythonhosted.org/packages/2c/db/43444e5f54ca043ce6f257b4023337c891b126fffc70a8ea287bd66e8e0f/iso-639-0.4.3.tar.gz" } ], "0.4.4": [ { "comment_text": "", "digests": { "md5": "4204942916344eefee28a7e415e9e5c1", "sha256": "bf066d3facf1dff092ae6b9774c04dad4bef62eb651d69020ac3e3fdac1a91c2" }, "downloads": -1, "filename": "iso-639-0.4.4.tar.gz", "has_sig": false, "md5_digest": "4204942916344eefee28a7e415e9e5c1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 165541, "upload_time": "2015-07-09T12:14:20", "url": "https://files.pythonhosted.org/packages/5a/29/f324bce91c03e1896b09e0630f6cfbaac31647c9631083e87ed0ff946f83/iso-639-0.4.4.tar.gz" } ], "0.4.5": [ { "comment_text": "", "digests": { "md5": "cc282daf57f57061a9309f2567bff052", "sha256": "dc9cd4b880b898d774c47fe9775167404af8a85dd889d58f9008035109acce49" }, "downloads": -1, "filename": "iso-639-0.4.5.tar.gz", "has_sig": false, "md5_digest": "cc282daf57f57061a9309f2567bff052", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 167421, "upload_time": "2016-04-29T14:57:29", "url": "https://files.pythonhosted.org/packages/5a/8d/27969852f4e664525c3d070e44b2b719bc195f4d18c311c52e57bb93614e/iso-639-0.4.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "cc282daf57f57061a9309f2567bff052", "sha256": "dc9cd4b880b898d774c47fe9775167404af8a85dd889d58f9008035109acce49" }, "downloads": -1, "filename": "iso-639-0.4.5.tar.gz", "has_sig": false, "md5_digest": "cc282daf57f57061a9309f2567bff052", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 167421, "upload_time": "2016-04-29T14:57:29", "url": "https://files.pythonhosted.org/packages/5a/8d/27969852f4e664525c3d070e44b2b719bc195f4d18c311c52e57bb93614e/iso-639-0.4.5.tar.gz" } ] }