Registry / serialization / language-data

language-data

JSON →
library1.4.0pypypi✓ verified 24d ago

language-data is a Python library that provides supplementary data about languages, primarily intended to be consumed by the `langcodes` module. It bundles data from the Unicode Common Locale Data Repository (CLDR). The current version is 1.4.0. Releases are irregular, often coinciding with updates to the CLDR specification, typically one to two times per year.

pip install language-data
INSTALL
IMPORT
SIG · LANGUAGE-DATA
L
language-data
serializationpythonv1.4.0
Install
2.7s avg
Import
Disk
44MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.4.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 46.6MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 2.7s · import 0.000s · 45MB
44MB installed
● package 44MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

language_data
import language_data
import langcodes

This quickstart demonstrates how the `langcodes` library, after `language-data` is installed, automatically leverages its language data. Users typically interact with `language-data` indirectly through `langcodes`, which processes and presents the data.

# language-data is a data dependency for langcodes. # After installing both 'langcodes' and 'language-data', # langcodes will automatically utilize the data provided by language-data. import langcodes # Example: Get a Language object from langcodes english_us = langcodes.Language.get('en-US') print(f"Code: {english_us}") print(f"English Name: {english_us.display_name('en')}") # Example: Work with a less common language code nl_be = langcodes.Language.get('nl-BE') print(f"\nCode: {nl_be}") print(f"French Name: {nl_be.display_name('fr')}") print(f"Dutch Name: {nl_be.display_name('nl')}") # The functionality of langcodes, such as display_name, depends on the data # provided by the language-data package. If language-data were not installed # or was an older version, langcodes might fall back to less detailed data # or an internal, potentially outdated dataset.
Debug
Known issues
breakingStarting with version 1.4.0, support for Python 3.9 has been officially dropped. Users on Python 3.9 or older must remain on language-data < 1.4.0.
fix
Upgrade your Python environment to 3.10 or newer to use language-data >= 1.4.0.
affects: >=1.4.0
gotchaThis library primarily serves as a data package for `langcodes` and does not expose a public API for direct interaction. Most users should interact with language data through `langcodes` rather than attempting to import or process `language-data`'s internal structures directly.
fix
Install `langcodes` alongside `language-data` and use `langcodes` for language-related operations. The data will be automatically utilized.
affects: All versions
gotchaThe data provided by `language-data` is updated based on new CLDR releases. This means that language properties, aliases, and official codes can subtly change between `language-data` versions. Always review the changelog for CLDR updates when upgrading to ensure compatibility with your application's assumptions.
fix
Consult the changelog (e.g., GitHub releases) for specific CLDR version updates and any related data changes before deploying new versions of `language-data` in production.
affects: All versions
Upgrade
Version history
1.4.0latest on PyPI · released Nov 28, 2025
Audit
Dependencies

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
12
Resources
language-data — pip install language-data · libregistry