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


Release history Release notifications

This version
History Node

0.0.1

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
iso_639_codes-0.0.1.tar.gz (3.2 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page