Skip to main content

ISO 639-1 ↔ ISO 639-2 code translation.

Project description

https://badge.fury.io/py/iso_639_codes.png https://img.shields.io/pypi/dm/iso_639_codes.svg https://img.shields.io/github/issues/Bystroushaak/iso_639_codes.svg

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

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_639_codes-0.0.1.tar.gz (3.2 kB view details)

Uploaded Source

File details

Details for the file iso_639_codes-0.0.1.tar.gz.

File metadata

File hashes

Hashes for iso_639_codes-0.0.1.tar.gz
Algorithm Hash digest
SHA256 38845243bfa45a32eef890392def6e83d3ca66b0d2f58e9ae70b3dcb5a84f9b2
MD5 653607a4739e465167338198025576fc
BLAKE2b-256 a2f3ec793ab8719d329f4116fadc470fe943246c9feb384a165f1d345e30c898

See more details on using hashes here.

Supported by

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