country_list
List of all countries with names and ISO 3166-1 codes in all languages
What it is and what it does
country_list is a lightweight reference package that bundles ISO 3166-1 country codes alongside country names translated into multiple languages. It exposes a simple API to query countries by language code, returning code-name pairs, and to reverse-lookup country codes from names. The package has no runtime dependencies and supports Python 3.8 through 3.12.
Typical use is in web forms, data validation, or internationalization workflows where you need to populate dropdowns or validate user input against a canonical list of countries. The data comes from umpirsky/country-list and is packaged as a pure Python wheel, making it quick to install and integrate.
Use it for:
- Populate country dropdown menus in web forms with localized country names for different user languages.
- Validate user-entered country names or codes against the ISO 3166-1 standard during data import or form submission.
- Build a reverse lookup table to convert country names (in any supported language) back to ISO codes for storage or API calls.
- Generate multilingual country reference data for documentation, reports, or configuration files.
- Support internationalization by serving country lists in the user's preferred language without maintaining separate data files.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides ISO 3166-1 country codes and names in multiple languages, queryable by language or country code.
Yes. The package is lightweight, has zero dependencies, is actively maintained, carries a permissive MIT license, and solves a common reference-data problem. Install it if you need ISO 3166-1 country codes and names in multiple languages; skip it only if you already have country data embedded elsewhere or need real-time updates beyond what a static package provides.
Install
country-list on PyPI
pip
pip install country-listuv
uv add country-listpoetry
poetry add country-listInstalling country_list
Before you install
Low install friction with no runtime dependencies. Actively maintained with recent commits; last release was 1013 days ago but repo shows activity through 2026-08-07.
License in practice
MIT license permits free use, modification, and distribution with minimal restrictions—suitable for commercial and open-source projects.
Quickstart
pip install country_list
from country_list import countries_for_language
countries = dict(countries_for_language('en'))
print(countries['GB']) # 'United Kingdom'
Verify before relying
- Whether all language codes and country names are current with ISO 3166-1 standard updates
- Performance characteristics when working with the full dataset across all supported languages
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.8,<4.0) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 1,013 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 84,382/month — #14,002 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: country_list-1.1.0-py3-none-any.whl
Tags
More Utilities packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
charset-normalizerDetects and normalizes text encoding from…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
PygmentsPygments is a syntax highlighter that colorizes…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
django-countriesProvides a Django model field for storing…
permissive · top 5,000 on PyPI
pycountryProvides programmatic access to ISO standard…
copyleft · top 1,000 on PyPI
iso3166Converts between ISO 3166-1 country codes…
permissive · top 5,000 on PyPI
babelfishBabelFish provides Python objects for…
permissive · top 15,000 on PyPI
countryinfoCountryinfo provides a Python interface to…
permissive · top 15,000 on PyPI
geonamescacheProvides Python dictionaries of geographic data…
permissive · top 5,000 on PyPI
phone-iso3166Maps international phone numbers and mobile…
permissive · top 15,000 on PyPI
names-datasetLooks up demographic information about first…
permissive · top 15,000 on PyPI
isocodesisocodes provides programmatic access to ISO…
permissive · top 15,000 on PyPI
pycountry-convertConverts between ISO country codes (alpha-2,…
permissive · top 15,000 on PyPI