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
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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file iso639-lang-0.0.9.tar.gz.
File metadata
- Download URL: iso639-lang-0.0.9.tar.gz
- Upload date:
- Size: 69.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b5e1fba4ceac7afa6849f3f1f7350351b1420852674391ce18c208b2427f04c3
|
|
| MD5 |
3e01a2198f5f49e464c2627db853f7a7
|
|
| BLAKE2b-256 |
ca9d36dd248b44bfcebbd63760a0ae262bf0ed15588b6238e3ef58b843dc533c
|
File details
Details for the file iso639_lang-0.0.9-py3-none-any.whl.
File metadata
- Download URL: iso639_lang-0.0.9-py3-none-any.whl
- Upload date:
- Size: 70.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e0cb3468aab9ef5584309c790fdf71153a04cd502c0ae775f7b41e5465f47616
|
|
| MD5 |
a108628801f0e850a7518302002323ad
|
|
| BLAKE2b-256 |
22b7fff1881cc188f072d3d7ef3c131042720d9d464a2865aba43aedd4585fc6
|