Metadata-Version: 2.4
Name: languagecodes
Version: 1.1.1
Summary: A library that normalises language codes
Home-page: http://github.com/alephdata/languagecodes
Author: Friedrich Lindenberg
Author-email: friedrich@pudo.org
License: MIT
Keywords: names languages iso
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: banal<2.0.0,>=1.0.0
Provides-Extra: dev
Requires-Dist: coverage>=4.1; extra == "dev"
Requires-Dist: flake8>=2.6.0; extra == "dev"
Requires-Dist: mypy; extra == "dev"
Requires-Dist: nose; extra == "dev"
Requires-Dist: twine; extra == "dev"
Requires-Dist: wheel>=0.29.0; extra == "dev"
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: keywords
Dynamic: license
Dynamic: license-file
Dynamic: provides-extra
Dynamic: requires-dist
Dynamic: summary

# languagecodes

![package](https://github.com/alephdata/languagecodes/workflows/package/badge.svg)

This library helps to normalise the ISO 639 codes used to describe languages from
two-letter codes to three letters, and vice versa.

```python
import languagecodes

assert 'eng' == languagecodes.iso_639_alpha3('en')
assert 'eng' == languagecodes.iso_639_alpha3('ENG ')
assert 'en' == languagecodes.iso_639_alpha2('ENG ')
```

You can install the library from the Python package index:

```bash
pip install languagecodes
```

Uses data from: https://iso639-3.sil.org/
See also: https://www.loc.gov/standards/iso639-2/php/code_list.php
