A library that normalises language codes
Project description
languagecodes
This library helps to normalise the ISO 639 codes used to describe languages from two-letter codes to three letters, and vice versa.
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 Supercacher Package Index:
pip install languagecodes
Uses data from: https://iso639-3.sil.org/ See also: https://www.loc.gov/standards/iso639-2/php/code_list.php
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
languagecodes-1.1.0.tar.gz
(157.4 kB
view hashes)
Built Distribution
Close
Hashes for languagecodes-1.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b59484072b68a33b29a38185d64d4ed5f48dbcf4529e137c40ea1c26d7d8df3b |
|
MD5 | 09ca8176d1a465708ee4f7f8779cafd1 |
|
BLAKE2b-256 | 12335821df185cba3ded4d626c3bc7b0d930ef8b247c1825c8b426b2d4eedde1 |