skillfed

python-iso639

ISO 639 language codes, names, and other associated information

python-iso639 v2026.7.23 4.2M downloads/30d#2,370 on PyPI53
Permissive license Apache-2.0 Active released

What it is and what it does

python-iso639 is a reference library for ISO 639 language codes and their associated metadata. It provides a Language class that maps across the three ISO 639 standard code sets (639-1 two-letter codes like 'fr', 639-2 three-letter codes in bibliographic and terminological variants like 'fre' and 'fra', and 639-3 codes like 'fra') to standardized language names and additional attributes. The package is optimized for fast lookups and includes a flexible matching method that can identify a language from any code or name format without requiring you to know which standard the input belongs to.

The library handles macrolanguages, alternative names, retired codes with retirement metadata, and language scope/type classification. It is designed for developers building multilingual applications, language processing pipelines, or data systems that need reliable language identification and normalization across different code standards.

Use it for:

  • Normalize user-supplied language codes or names to a canonical ISO 639-3 code for storage or API calls.
  • Build a language selector UI that accepts input in any ISO 639 format and returns consistent language metadata.
  • Validate language codes in data pipelines and flag retired or unknown language identifiers.
  • Resolve macrolanguage relationships (e.g., identifying that Yue Chinese belongs to the Chinese macrolanguage).
  • Support multilingual search or filtering by accepting language input in any standard format.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Maps ISO 639 language codes (639-1, 639-2, 639-3) to language names and metadata, with methods to look up or guess a language from any code or name format.

Yes. The package is actively maintained, has no dependencies, installs with low friction, carries a permissive license, and solves a real problem for any project that needs reliable language code normalization. It is well-suited for production use in multilingual applications, data pipelines, and language-aware systems.

Install

python-iso639 on PyPI

pip

pip install python-iso639

uv

uv add python-iso639

poetry

poetry add python-iso639

Installing python-iso639

Before you install

Low install friction; pure Python wheel with no runtime dependencies. Active maintenance with a release 22 days ago; supports Python 3.10 through 3.14.

License in practice

Apache-2.0 permissive license allows use in commercial and proprietary projects with minimal restrictions.

Quickstart

pip install python-iso639

import iso639
lang = iso639.Language.from_part3('fra')
print(lang.name)  # 'French'

# Or guess from unknown input
lang = iso639.Language.match('fr')
print(lang.part3)  # 'fra'

Requires Python 3.10 or later.

Verify before relying

  • Whether the package includes all current ISO 639-3 codes or a specific snapshot version.
  • Performance characteristics for bulk lookups or large-scale matching operations.
  • Whether macrolanguage and retired code handling covers all edge cases in production use.

Package facts

License Apache-2.0 (permissive)
Python support supports the current Python release (>=3.10)
Install friction low — pure-Python wheel
Runtime dependencies none
Maintenance actively maintained — 22 days since the last release
Last repo commit
First released
Downloads 4,155,530/month — #2,370 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: python_iso639-2026.7.23-py3-none-any.whl

Keywords: ISO 639, language codes, languages, linguistics

Development Status :: 5 - Production/StableIntended Audience :: DevelopersIntended Audience :: EducationIntended Audience :: Information TechnologyIntended Audience :: Science/ResearchOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Text ProcessingTopic :: Text Processing :: GeneralTopic :: Text Processing :: IndexingTopic :: Text Processing :: Linguistic

Tags

ISO 639 language codeslanguage code lookuplanguage name resolverISO 639-1 639-2 639-3language metadatalanguage code matchingmultilingual language codes
language-codesiso-639multilingual

More Text Processing packages