Skip to main content

ISO639-2 support for Python.

Project description

iso639
======
A simple (really simple) library for working with ISO639-2 language codes.
Tested for Python 2.7 & 3.4.

Includes data from Congress library: http://www.loc.gov/standards/iso639-2/php/code_list.php (+ updates)

Installation
------------
The easiest way is using `pip`:

pip install iso639

Alternatives
------------
* **pycountry**: https://bitbucket.org/flyingcircus/pycountry - a more-featured package
* **iso639**: https://github.com/noumar/iso639 - another package with the same name

Example usage
-------------

```python
import iso639

>>> iso639.to_name('sv')
u'Swedish'

>>> iso639.to_native('sv')
u'svenska'
```

For more examples, see doctests in the source code.

Acknowledgments
---------------
@hosford42 - adding the native language support

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for iso639, version 0.1.4
Filename, size File type Python version Upload date Hashes
Filename, size iso639-0.1.4.tar.gz (11.0 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page