Skip to main content

A simple library for ISO 639-1 and ISO 639-3 language codes.

Installation

This library requires Python 3.6.

pip3 install iso639-lang

Usage

>>> from iso639 import Lang

>>> language = Lang("fr")
>>> language.pt1
'fr'
>>> language.pt3
'fra'
>>> language.name
'French'

>>> language.pt3 = 'eng'
>>> language.pt1
'en'
>>> language.name
'English'

>>> language.name = 'German'
>>> language.pt1
'de'
>>> language.pt3
'deu'

>>> other_language = Lang("de")
>>> language == other_language
True

Contains external data

Download files

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

Source Distribution

iso639-lang-0.0.8.tar.gz (69.0 kB view details)

Uploaded Source

Built Distribution

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

iso639_lang-0.0.8-py3-none-any.whl (70.4 kB view details)

Uploaded Python 3

File details

Details for the file iso639-lang-0.0.8.tar.gz.

File metadata

  • Download URL: iso639-lang-0.0.8.tar.gz
  • Upload date:
  • Size: 69.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.2

File hashes

Hashes for iso639-lang-0.0.8.tar.gz
Algorithm Hash digest
SHA256 01c2c3fdc77c44bd9348a2f704d08d45c4e6618bc4f824e329f25822fa285c0a
MD5 40303e6cf6273ee705c6f09a8f356013
BLAKE2b-256 ae0f4fcea8246091933d9838580a5462093224345d79e48fb14b58038a20dff1

See more details on using hashes here.

File details

Details for the file iso639_lang-0.0.8-py3-none-any.whl.

File metadata

  • Download URL: iso639_lang-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 70.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.2

File hashes

Hashes for iso639_lang-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 1d1445087404501da08fef791b2db7c84fc46842b9fd9766e023e751e3fb321d
MD5 7b04002d9f96767581bec0277853ebe7
BLAKE2b-256 808845f75d3250dcce8a31260a593ba98b6fb2d2a89d035ec80a9fee4fc2c127

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