pycountry-convert
Extension of Python package pycountry providing conversion functions.
Decision gist · record as of 2026-08-14
No. The package is abandoned (last release 2018-02-18) and has not been tested against modern Python versions. While the MIT license is permissive and installation is frictionless, the lack of maintenance means country data may be stale and bugs will not be fixed. Consider using an actively maintained alternative or integrating pycountry directly with your own conversion logic.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Installation is straightforward with no compiled dependencies.
- However, the package has been abandoned since its latest release on 2018-02-18, so maintenance and security patches are not expected.
License · maintenance · safety
MIT License (permissive) — Licensed under MIT (permissive), so you may use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.
last release 2018-02-18 (3099 days)
0 known vulnerabilities (OSV.dev, 2026-08-14) · 484,175 downloads/mo, #6,405 on PyPI
Alternatives
Verify before relying
pip install pycountry-convert
from pycountry_convert import country_alpha2_to_continent_code
continent = country_alpha2_to_continent_code('US')- Whether the package's Wikipedia-derived country data is kept current or reflects the state as of the last 2018 release.
- Compatibility with modern Python versions beyond 3.6, given the abandonment status and lack of recent testing.
- Whether country data changes since 2018 affect the accuracy of conversions for current use.
What it is and what it does
pycountry-convert is an extension of the pycountry library that adds bidirectional conversion functions between country names, ISO country codes (alpha-2, alpha-3, and numeric formats), and continent codes. It uses country data derived from Wikipedia combined with pycountry's data source.
The package provides functions to map countries with customizable name formatting (default, lowercase, or uppercase), convert between any pair of country identifiers, and look up continent codes from country codes. It has no runtime dependencies beyond pycountry and pprintpp, making it lightweight to install.
Use it for
- Convert user-submitted country names to standardized ISO codes for database storage or API calls.
- Determine a continent from a country code in geographic or regional analysis workflows.
- Build lookup tables mapping country names to their ISO 3166-1 identifiers for data validation.
- Normalize country data from multiple sources by converting between alpha-2, alpha-3, and numeric codes.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
No.
The package is abandoned (last release 2018-02-18) and has not been tested against modern Python versions. While the MIT license is permissive and installation is frictionless, the lack of maintenance means country data may be stale and bugs will not be fixed. Consider using an actively maintained alternative or integrating pycountry directly with your own conversion logic.
Install
pycountry-convert on PyPI
Before you install
Installation is straightforward with no compiled dependencies. However, the package has been abandoned since its latest release on 2018-02-18, so maintenance and security patches are not expected.
License in practice
Licensed under MIT (permissive), so you may use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.
Quickstart
pip install pycountry-convert
from pycountry_convert import country_alpha2_to_continent_code
continent = country_alpha2_to_continent_code('US')
Verify before relying
- Whether the package's Wikipedia-derived country data is kept current or reflects the state as of the last 2018 release.
- Compatibility with modern Python versions beyond 3.6, given the abandonment status and lack of recent testing.
- Whether country data changes since 2018 affect the accuracy of conversions for current use.
Package facts
| License | MIT License permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Abandoned 3,099 days since the last release |
| First released | |
| Downloads | 484,175 / month, #6,405 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseNatural Language :: EnglishOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 2.7Programming Language :: Python :: 3.0Programming Language :: Python :: 3.1Programming Language :: Python :: 3.2Programming Language :: Python :: 3.3Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: Implementation :: PyPy |
Evidence: pycountry_convert-0.7.2-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “country code conversion”
- pycountry-convertConverts between ISO country codes (alpha-2, alpha-3, numeric),…
- iso3166Converts between ISO 3166-1 country codes (two-letter, three-letter,…
- country-converterConverts and matches country names across different classification…
Give your agent the search over MCP, or paste the wish link into any chat.
More Utilities packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Pygments is a syntax highlighter that colorizes source code and text in over 500 languages and formats, outputting to HTML, LaTeX, RTF, SVG, images, or ANSI terminal sequences.
Install it if you need to display or transform source code.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
See also iso3166 · pycountry · country-converter · phone-iso3166 · ip3country · django-countries · country_list · geonamescache · countryinfo · hdx-python-country