commondata-languages
Work with ISO 639-1, ISO 639-2B, ISO 639-2T, and ISO 639-3 language data.
List, lookup with fuzzy search.
Installation
pip install commondata-languages
Usage
Iterate over all languages:
from commondata_languages import LanguageData
languages = LanguageData()
for language in languages:
print(language.name)
List all languages:
from commondata_languages import LanguageData
languages = LanguageData()
print(languages.all())
Lookup a language
from commondata_languages import LanguageData
languages = LanguageData()
# Lookup by name (case insensitive, fuzzy search)
language = languages["Hindi"]
# Lookup by ISO 639-1
language = languages["en"]
# Lookup by ISO 639-3
language = languages["eng"]
# Lookup by ISO 639-2B
language = languages["chi"]
# Lookup by ISO 639-2T
language = languages["zho"]
# Look up with fuzzy search
language = languages["Englih"]
print(language)
> Language(name='English', iso1='en', iso2b='eng', iso2t='eng', iso3='eng', scope='Individual', type='Living')
Use CLI to lookup a language
python -m commondata-languages English
Load languages data into pandas dataframe
import pandas as pd
from commondata_languages.data import languages
df = pd.DataFrame(languages)
Other Formats and Datasets
Download CSV, XLSX, JSON and YAML files from commondata.net/library.
commondata.net maintains a collection of essential datasets in a variety of formats, including python bindings. Check out the full library here: commondata.net/library.
Contributing
Contributions are welcome! Please open an issue or submit a pull request here.
License
This project is licensed under GPLv3. See the LICENSE file for details.
Support
For feedback, feature requests, or support, please email support@commondata.net.
Metadata
Release files for commondata-languages 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| commondata_languages-1.1.0.tar.gz | 96.0 kB | Without provenance | Details for commondata_languages-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| commondata_languages-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for commondata_languages-1.1.0-py3-none-any.whl |
Total release size: 199.5 kB
Release files / commondata_languages-1.1.0.tar.gz
| Download URL | commondata_languages-1.1.0.tar.gz |
|---|---|
| Size | 96.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c08f22f6713204ef56a3e9ddad59e343fa0ddce22e21cc25cc37a19d2de3ccba
|
|
BLAKE2b-256 checksum How to use checksums |
a7a400175dcf0c3af8d11774946fe7620a4a74f540d3db5f7bfad5fc207d8250
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.0.1 CPython/3.13.2 Darwin/24.3.0
|
Release files / commondata_languages-1.1.0-py3-none-any.whl
| Download URL | commondata_languages-1.1.0-py3-none-any.whl |
|---|---|
| Size | 103.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e39963d77ab4f563597a450215606e46f25aa944c30dcf117460e6c1cd0825cd
|
|
BLAKE2b-256 checksum How to use checksums |
221bca1bce230cf4157c2ae95249aa86e047718070f19627f925e48610b611dd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.0.1 CPython/3.13.2 Darwin/24.3.0
|
Security for commondata-languages 1.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.