iso 639 codes 0.0.1
This package may be used for translation between ISO 639-1 and ISO 639-2.
>>> from iso_639_codes import translate
>>> translate("cs")
'cze'
>>> translate("cze")
'cs'
Or alternative value in case that the code was not found:
>>> translate("xe", alt="alt")
'alt'
There are two dicts which you may use for translation yourself:
iso_639_codes.iso_639_2_to_1
iso_639_codes.iso_639_1_to_2
Installation
Module is hosted at PYPI, and
can be installed using PIP:
pip install iso_639_codes
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.