A simple library for ISO 639 language codes.
Project description
A simple library for ISO 639-1 and ISO 639-3 language codes.
Installation
This library requires Python 3.6.
pip3 install iso639-lang
Usage
>>> from iso639 import Lang
>>> language = Lang("fr")
>>> language.pt1
'fr'
>>> language.pt3
'fra'
>>> language.name
'French'
>>> language.pt3 = 'eng'
>>> language.pt1
'en'
>>> language.name
'English'
>>> language.name = 'German'
>>> language.pt1
'de'
>>> language.pt3
'deu'
>>> other_language = Lang("de")
>>> 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.7.tar.gz
(68.3 kB
view hashes)
Built Distribution
Close
Hashes for iso639_lang-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 066d06c526d04beba5669a3ba4ea4c905afc68db65bec4c51d39483078dbfeb9 |
|
MD5 | dfb0904202ded35d7c0c59e471c74bbd |
|
BLAKE2b-256 | febc24d5b075fb88516c35a09a648027d47ad916d27088a6a3982f52380525ee |