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.1.tar.gz (157.4 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: languagecodes-1.1.1.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.3 CPython/3.9.7

File hashes

Hashes for languagecodes-1.1.1.tar.gz
Algorithm Hash digest
SHA256 20b2240518071a69903cd45c59c96f177981e5c8f7be0bd0ed339b3d14e2e117
MD5 8c0083d6f4be3050da677077dad05738
BLAKE2b-256 2a118ba1cf59805486fd471d4d65e9071d08ca98b830a4f7f2f5388d60728692

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: languagecodes-1.1.1-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.3 CPython/3.9.7

File hashes

Hashes for languagecodes-1.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 5fd9f5825636cec4d704a735bfd4c8a9b6a3d082ca41571bf511c203e596dad1
MD5 8661ec45ef8e76b2a94ee1841ee57a20
BLAKE2b-256 748e48fa2e160624432e2f816d5e38496f1d6989094afc6bf785d35df9d4d32b

See more details on using hashes here.

Provenance

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