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 Python 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.1.tar.gz
(157.4 kB
view hashes)
Built Distribution
Close
Hashes for languagecodes-1.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5fd9f5825636cec4d704a735bfd4c8a9b6a3d082ca41571bf511c203e596dad1 |
|
MD5 | 8661ec45ef8e76b2a94ee1841ee57a20 |
|
BLAKE2b-256 | 748e48fa2e160624432e2f816d5e38496f1d6989094afc6bf785d35df9d4d32b |