ISO Language Codes
Get ISO code for a given language
Free software: MIT license
Documentation: https://iso-language-codes.readthedocs.io.
Usage
Import this package in your script:
>>> from iso_language_codes import *
Get info about a language via Two-letter ISO code:
>>> language('ru')
{'Name': 'Russian', 'Autonym': 'Р СѓСЃСЃРєРёР№'}
Or get name and autonym directly with:
>>> language_name('ru') 'Russian'>>> language_autonym('ru') 'Р СѓСЃСЃРєРёР№'
You can also get entire dictionary of languages:
>>> languages = language_dictionary()
>>> languages.keys()
dict_keys(['', 'aa', 'bn', 'ab', ...])
Credits
This package uses edited iso639-autonyms database from bbqsrc/iso639-autonyms
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
History
0.1.0
Base from filled cookiecutter-pypackage template.
0.2.0
Basic functionality of the module.
0.3.0
Added Tests for language, language_name and language_autonym functions.
Added Documentation.
Fixed bug with path to database.
Metadata changes.
1.0.0
Changes to CONTRIBUTING.rst.
Changes to Makefile.
Changes to README.rst.
Added usage examples and credited database source.
Compiled documentation.
1.1.0
Moved module code into __init__ file.
Updated history and tests.
Metadata
Release files for iso-language-codes 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| iso_language_codes-1.1.0.tar.gz | 19.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| iso_language_codes-1.1.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 31.2 kB
Release files / iso_language_codes-1.1.0.tar.gz
| Download URL | iso_language_codes-1.1.0.tar.gz |
|---|---|
| Size | 19.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fb4566791b8dd9a40b59f2e5ac3f2b9f3d13bdcb2bb8918ca25b5fb72116b77c
|
|
BLAKE2b-256 checksum How to use checksums |
76c0bc25d5fac42e6632f5cff514d156728bc8f29a68cb8025722f869b7533a7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.19.1 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.25.0 CPython/3.6.6
|
Release files / iso_language_codes-1.1.0-py2.py3-none-any.whl
| Download URL | iso_language_codes-1.1.0-py2.py3-none-any.whl |
|---|---|
| Size | 11.7 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
203b2cb7bd849cdfd3e821a802f9d89c69d0dba7bbe41a8427c9d3e3292bcaa2
|
|
BLAKE2b-256 checksum How to use checksums |
b08a2e0d1c3981afb5e17bb3026e649318744e5d428ba82e025f50ea933b4166
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.19.1 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.25.0 CPython/3.6.6
|