ISO639-3 support for Python.
Project description
iso639
A simple (really simple) library for working with ISO639-3 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 langiso639
If you are using Fedora 24+, you can install iso639 using dnf:
dnf install python2-langiso639
# or
dnf install python3-langiso639
Thanks, unknown Fedora packagers :-)
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
import langiso639
>>> langiso639.to_name('sv')
u'Swedish'
>>> langiso639.to_native('sv')
u'svenska'
``
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
langiso639-0.1.5.tar.gz
(71.3 kB
view details)
File details
Details for the file langiso639-0.1.5.tar.gz.
File metadata
- Download URL: langiso639-0.1.5.tar.gz
- Upload date:
- Size: 71.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9b4db0b00d496ac0bb9b3a0e06dfdc4602f0159387ba551b1ea225be93b31f37
|
|
| MD5 |
7a37fd5964c248183a2dbe5d3441d0ff
|
|
| BLAKE2b-256 |
d09cf966ba7af560077f0adfb2f7430afff577deee2b01696b54a4c55ddf8503
|