Skip to main content

A simple library for ISO 639 language codes.

Project description

ISO639

A simple library for ISO 639 language codes.

Supports

  • ISO 639-1
  • ISO 639-3

Installation

This library requires Python 3.6.

You can install it by getting it from pip:

.. code:: sh

pip3 install iso639-lang

Usage

.. code-block:: python

>>> 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'    

Contains external data

  • ISO 639-3 Code Set_, dated 2020-01-20

.. _ISO 639-3 Code Set: https://iso639-3.sil.org/sites/iso639-3/files/downloads/iso-639-3.tab

License

MIT License

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.3.tar.gz (68.3 kB view hashes)

Uploaded Source

Built Distribution

iso639_lang-0.0.3-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