$npx skillfedfor your agent

pycountry-convert

Extension of Python package pycountry providing conversion functions.

SkipPyPI UtilitiesReleased Feb 2018484.2K downloads / moMIT LicensePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — pycountry_convert-0.7.2-py3-none-any.whl
v0.7.2 · released 2018-02-18

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

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.
Same gist for agents: .md · .json

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.

Skip

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

LicenseMIT License permissive
Python supportNot specified
Install frictionLow. Pure-Python wheel
Runtime dependenciesNone
MaintenanceAbandoned 3,099 days since the last release
First released
Downloads484,175 / month, #6,405 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone 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

Capabilities
country code conversionISO 3166 country lookupcountry name to alpha-2 codecontinent from country codepycountry extension
Topics
country-dataiso-standards
PyPI keywords
pycountryconversiontune

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

idna Worth it
PyPI · Python Modules · released Jun 2026

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.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
charset-normalizer Worth it
PyPI · Utilities · released Aug 2026

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.

permissive licensepure Python · 3.7+
1.7Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

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.

MITpure Python · 3.10+
1.6Bdownloads / mo
pluggy Worth it
PyPI · Libraries · released May 2025

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.

MITpure Python · 3.9+aging
1.3Bdownloads / mo
Pygments Worth it
PyPI · Utilities · released Mar 2026

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.

BSD-2-Clausepure Python · 3.9+
1.3Bdownloads / mo
six With conditions
PyPI · Libraries · released Dec 2024

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.

MITpure Python
1.2Bdownloads / mo

See also iso3166 · pycountry · country-converter · phone-iso3166 · ip3country · django-countries · country_list · geonamescache · countryinfo · hdx-python-country