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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for iso639_lang-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ea4da5f206053db4444e6c2d20a035768370339df1141e67046224539dcb484 |
|
MD5 | f412bf427ce8f509f5a7c8e8bc603957 |
|
BLAKE2b-256 | 5e8fb864f73f51fe9ba4aebf9cf3681c06986a1d2b7b28afa6bac8b396eee478 |