Skip to main content

A simple library for ISO 639 language codes.

Project description

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

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

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

Uploaded Source

Built Distribution

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

Uploaded 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