Install & Compatibility
Where this runs
tested against v0.4.5 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 19.7MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 2.5s · import 0.000s · 20MB
17MB installed
● package 17MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
Language
✓ from iso639 import Language
✗ from iso639 import Lang
Lang is not the main class; Language is the correct class.
iso639
✓ import iso639
Importing the module directly gives access to custom exceptions like InvalidLanguageValue.
Instantiate a Language object with a name or code to access properties.
from iso639 import Language
# Search by name (case-insensitive)
lang = Language('English')
print(lang.name) # 'English'
print(lang.pt1) # 'en'
print(lang.pt2b) # 'eng'
print(lang.pt3) # 'eng'
# Search by ISO 639-1 code
lang2 = Language('fr')
print(lang2.name) # 'French'
# Iterate all languages
for l in Language:
print(l.name, l.pt1)
break
Upgrade
Version history
0.4.5latest on PyPI · released Apr 29, 2016
Audit
Dependencies
No dependency data recorded yet.