Skip to main content

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.

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)

Source distribution for iso-language-codes 1.1.0
File Size Uploaded Provenance Actions
iso_language_codes-1.1.0.tar.gz 19.5 kB Without provenance Details for iso_language_codes-1.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for iso-language-codes 1.1.0
File Interpreter ABI Platform Actions
iso_language_codes-1.1.0-py2.py3-none-any.whl Python 3, Python 2 none any Details for iso_language_codes-1.1.0-py2.py3-none-any.whl

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

Security for iso-language-codes 1.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page