
Security News
Another Round of TEA Protocol Spam Floods npm, But It’s Not a Worm
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.
|master_status| |dev_status| |pypi_month| |pypi_version| |gh_forks| |gh_stars|
GNU Affero General Public License version 3 (AGPLv3)
retired has been changed to { 'code': (datetime, [_Language, ...], 'description') }.alpha3 has been renamed to part3. languages.alpha3 might be used as an aggregation of all 'three letter codes' in the future.This 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.
It provides the following attribute abstractions:
terminology -> part2tbibliographic -> part2balpha2 -> part1If you have no intentions on using pycountry.languages or want/need to keep compatibility then please use the partX attributes for brevity and clarity.
As taken from pycountry.languages v1.11 documentation, with modifications and further additions.
.. code-block:: python
>>> from iso639 import languages
>>> from pprint import pprint
>>> len(languages)
7981
>>> type(list(languages)[0])
<class 'iso639.iso639._Language'>
# Compatibility
>>> aragonese = languages.get(alpha2='an')
>>> aragonese.alpha2
'an'
>>> aragonese.bibliographic
'arg'
>>> aragonese.terminology
'arg'
>>> aragonese.name
'Aragonese'
>>> bengali = languages.get(alpha2='bn')
>>> bengali.name
'Bengali'
# We *do not* deviate from the standard
>>> try:
... bengali.common_name
... except AttributeError as e:
... print(e)
'_Language' object has no attribute 'common_name'
# New API
>>> aragonese = languages.get(part1='an')
>>> aragonese.part1
'an'
>>> aragonese.part2b
'arg'
>>> aragonese.part2t
'arg'
>>> aragonese.part3
'arg'
>>> aragonese.name
'Aragonese'
>>> aragonese.inverted
'Aragonese'
>>> pprint(vars(aragonese))
{'inverted': 'Aragonese',
'macro': '',
'name': 'Aragonese',
'names': [],
'part1': 'an',
'part2b': 'arg',
'part2t': 'arg',
'part3': 'arg',
'part5': ''}
>>> sanapana = languages.get(retired='sap')
>>> [type(elem).__name__ for elem in sanapana]
['datetime', 'list', 'str']
>>> [lang.part3 for lang in sanapana[1]]
['spn', 'aqt']
ISO 639-1_, on 2014-11-28ISO 639-2_, on 2014-11-28ISO 639-3 Code Set_, dated 2015-05-05ISO 639-3 Language Names Index_, dated 2015-05-05ISO 639-3 Macrolanguage Mappings_, dated 2015-05-05ISO 639-3 Retired Code Element Mappings_, dated 2015-05-05ISO 639-5_, dated 2011-05-12.. _ISO 639-1: http://id.loc.gov/vocabulary/iso639-1.tsv .. _ISO 639-2: http://id.loc.gov/vocabulary/iso639-2.tsv .. _ISO 639-3 Code Set: http://www-01.sil.org/iso639-3/iso-639-3.tab .. _ISO 639-3 Language Names Index: http://www-01.sil.org/iso639-3/iso-639-3_Name_Index.tab .. _ISO 639-3 Macrolanguage Mappings: http://www-01.sil.org/iso639-3/iso-639-3-macrolanguages.tab .. _ISO 639-3 Retired Code Element Mappings: http://www-01.sil.org/iso639-3/iso-639-3_Retirements.tab .. _ISO 639-5: http://id.loc.gov/vocabulary/iso639-5.tsv
.. |master_status| image:: https://travis-ci.org/noumar/iso639.svg?branch=master :target: https://travis-ci.org/noumar/iso639/branches :alt: master .. |dev_status| image:: https://travis-ci.org/noumar/iso639.svg?branch=development :target: https://travis-ci.org/noumar/iso639/branches :alt: development .. |pypi_month| image:: https://img.shields.io/pypi/dm/iso-639.svg :target: https://pypi.python.org/pypi/iso-639 :alt: downloads/month .. |pypi_version| image:: https://img.shields.io/pypi/v/iso-639.svg :target: https://pypi.python.org/pypi/iso-639 :alt: latest version .. |gh_forks| image:: https://img.shields.io/github/forks/noumar/iso639.svg :target: https://github.com/noumar/iso639/network :alt: gh forks .. |gh_stars| image:: https://img.shields.io/github/stars/noumar/iso639.svg :target: https://github.com/noumar/iso639/stargazers :alt: gh stars
FAQs
Python library for ISO 639 standard
We found that iso-639 demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.

Security News
PyPI adds Trusted Publishing support for GitLab Self-Managed as adoption reaches 25% of uploads

Research
/Security News
A malicious Chrome extension posing as an Ethereum wallet steals seed phrases by encoding them into Sui transactions, enabling full wallet takeover.