Skip to main content

Get ISO code for a given language

Project description

ISO Language Codes

https://img.shields.io/pypi/v/iso_language_codes.svg https://img.shields.io/travis/kirinokirino/iso_language_codes.svg Documentation Status

Get ISO code for a given language

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

iso_language_codes-1.0.6.tar.gz (19.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

iso_language_codes-1.0.6-py2.py3-none-any.whl (11.3 kB view details)

Uploaded Python 2Python 3

File details

Details for the file iso_language_codes-1.0.6.tar.gz.

File metadata

  • Download URL: iso_language_codes-1.0.6.tar.gz
  • Upload date:
  • Size: 19.5 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for iso_language_codes-1.0.6.tar.gz
Algorithm Hash digest
SHA256 b44fccecd8aeefb84aa21ac00af684f3e8d03b5db818b16e3d3a3cf31c34745f
MD5 902f8577ab62fb1ecf73590e33866521
BLAKE2b-256 410cc4b34271adfe04878995f811fed4de12b8cac8451aee84c00f454dbf2398

See more details on using hashes here.

File details

Details for the file iso_language_codes-1.0.6-py2.py3-none-any.whl.

File metadata

  • Download URL: iso_language_codes-1.0.6-py2.py3-none-any.whl
  • Upload date:
  • Size: 11.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using 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

File hashes

Hashes for iso_language_codes-1.0.6-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 1decfd09b8a86833db2ea47c2e619ef2f007c5e0e42938a3fd97cb6277e0da41
MD5 79d3593af91ad354ce973fa309777aa2
BLAKE2b-256 d7befce862670193c98a28e1e47c31480869ecc9cf2d571dba832fb9f7b73875

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page