Skip to content
master
Go to file
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
Jul 4, 2017
Dec 25, 2014

README.md

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

If you are using Fedora 24+, you can install iso639 using dnf:

dnf install python2-iso639   
# or
dnf install python3-iso639

Thanks, unknown Fedora packagers :-)

Alternatives

Example usage

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

You can’t perform that action at this time.