Get ISO code for a given language
Project description
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
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
Built Distribution
Hashes for iso_language_codes-1.0.6-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1decfd09b8a86833db2ea47c2e619ef2f007c5e0e42938a3fd97cb6277e0da41 |
|
MD5 | 79d3593af91ad354ce973fa309777aa2 |
|
BLAKE2b-256 | d7befce862670193c98a28e1e47c31480869ecc9cf2d571dba832fb9f7b73875 |