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 details)

Uploaded Source

Built Distribution

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

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

Uploaded Python 2Python 3

File details

Details for the file languagecodes-1.1.0.tar.gz.

File metadata

  • Download URL: languagecodes-1.1.0.tar.gz
  • Upload date:
  • Size: 157.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7

File hashes

Hashes for languagecodes-1.1.0.tar.gz
Algorithm Hash digest
SHA256 448d43485d592d58e4fc505608f7e209a675a82b7db516565bcf6b3c16d558d7
MD5 b430af1b1c25997a3d7021e86548fb42
BLAKE2b-256 248faa5151eb23094125b004a7bda5f042ee1c069d139ec1b45079cac9a7b705

See more details on using hashes here.

File details

Details for the file languagecodes-1.1.0-py2.py3-none-any.whl.

File metadata

  • Download URL: languagecodes-1.1.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 157.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7

File hashes

Hashes for languagecodes-1.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b59484072b68a33b29a38185d64d4ed5f48dbcf4529e137c40ea1c26d7d8df3b
MD5 09ca8176d1a465708ee4f7f8779cafd1
BLAKE2b-256 12335821df185cba3ded4d626c3bc7b0d930ef8b247c1825c8b426b2d4eedde1

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