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.7.tar.gz (68.3 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.7-py3-none-any.whl (70.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: iso639-lang-0.0.7.tar.gz
  • Upload date:
  • Size: 68.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.9

File hashes

Hashes for iso639-lang-0.0.7.tar.gz
Algorithm Hash digest
SHA256 60c2d93b82746506389716dcd1ef02515ed56d89760103c845760758b674be4b
MD5 a21357f92167aac923ceed6886a92b46
BLAKE2b-256 bcef0e1ab5acf4e66239724a0816cb975158a47dfbc2a50fd48642732f9e7128

See more details on using hashes here.

File details

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

File metadata

  • Download URL: iso639_lang-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 70.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.9

File hashes

Hashes for iso639_lang-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 066d06c526d04beba5669a3ba4ea4c905afc68db65bec4c51d39483078dbfeb9
MD5 dfb0904202ded35d7c0c59e471c74bbd
BLAKE2b-256 febc24d5b075fb88516c35a09a648027d47ad916d27088a6a3982f52380525ee

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 Sentry Error logging StatusPage Status page