Skip to main content

A library that normalises language codes

Project description

languagecodes

package

This library helps to normalise the ISO 639 codes used to describe languages from two-letter codes to three letters, and vice versa.

import languagecodes

assert 'eng' == languagecodes.iso_639_alpha3('en')
assert 'eng' == languagecodes.iso_639_alpha3('ENG ')
assert 'en' == languagecodes.iso_639_alpha2('ENG ')

You can install the library from the Python package index:

pip install languagecodes

Uses data from: https://iso639-3.sil.org/ See also: https://www.loc.gov/standards/iso639-2/php/code_list.php

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

languagecodes-1.1.0.tar.gz (157.4 kB view hashes)

Uploaded Source

Built Distribution

languagecodes-1.1.0-py2.py3-none-any.whl (157.7 kB view hashes)

Uploaded Python 2 Python 3

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