A lightweight library for the ISO 639 standard.
Project description
A lightweight library for ISO 639-1, ISO 639-2 and ISO 639-3 language representation standards.
Installation
This library requires Python 3.6.
pip3 install iso639-lang
Usage
>>> from iso639 import Lang
>>> language = Lang("fr")
>>> language.pt1
'fr'
>>> language.pt2b
'fre'
>>> language.pt2t
'fra'
>>> language.pt3
'fra'
>>> language.name
'French'
>>> language.name = 'German'
>>> language.pt1
'de'
>>> language.pt2b
'ger'
>>> language.pt2t
'deu'
>>> language.pt3
'deu'
>>> language.name
'German'
>>> other_language = Lang("ger")
>>> language == other_language
True
>>> other_language = Lang(language)
>>> language == other_language
True
Contains external data
ISO 639-3 Code Set, dated 2020-01-20
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
iso639-lang-0.0.9.tar.gz
(69.5 kB
view hashes)
Built Distribution
Close
Hashes for iso639_lang-0.0.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e0cb3468aab9ef5584309c790fdf71153a04cd502c0ae775f7b41e5465f47616 |
|
MD5 | a108628801f0e850a7518302002323ad |
|
BLAKE2b-256 | 22b7fff1881cc188f072d3d7ef3c131042720d9d464a2865aba43aedd4585fc6 |