$npx skillfedfor your agent

hdx-python-country

HDX Python country code and exchange rate (fx) utilities

Worth itPyPI Python ModulesReleased Aug 2026295.5K downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — hdx_python_country-4.1.4-py3-none-any.whl
v4.1.4 · released 2026-08-05 · Python >=3.10 · 2 runtime deps: hdx-python-utilities, tenacity

Yes. The package is actively maintained, has low install friction, carries a permissive MIT license, and solves a real problem for data integration and humanitarian workflows. No known vulnerabilities. Use it if you need reliable country/region code mapping, multilingual name matching, or FX rate conversion backed by official data sources.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.10 or later.
  • FX rate features depend on external data sources (Yahoo Finance, currency-api, IMF); network access required.
  • Low install friction with only two runtime dependencies (hdx-python-utilities and tenacity).

License · maintenance · safety

MIT (permissive) — MIT license permits commercial and private use with minimal restrictions; you must include a copy of the license and copyright notice.

last release 2026-08-05 (9 days) · last repo commit 2026-08-05 · 28 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 295,467 downloads/mo, #7,922 on PyPI

Verify before relying

pip install hdx-python-country

from hdx.location.country import Country

country = Country.get_by_iso2('US')
print(country.name)  # 'United States'
  • Whether fuzzy matching accuracy and performance are suitable for your data volume and language mix
  • Whether the fallback chain for FX rates (Yahoo Finance → currency-api → IMF) meets your SLA for rate freshness
Same gist for agents: .md · .json

What it is and what it does

The HDX Python Country Library is a utility package for working with country and region identifiers, administrative boundaries, and foreign exchange data. It maps between country names and ISO 2/3 letter codes (ISO 3166) using live official data from the UN OCHA feed with fallback to internal static files, and supports exact matching in English, French, Spanish, Russian, Chinese, and Arabic, plus fuzzy matching with abbreviation handling for English. It also handles mapping administrative level names across different sources with phonetic fuzzy matching.

Beyond geography, the package provides foreign exchange rate lookup and currency conversion, pulling current rates from Yahoo Finance with fallback to currency-api, and historic daily rates from Yahoo Finance with fallback to IMF data via IATI (with interpolation). It is part of the Humanitarian Data Exchange (HDX) project and is actively maintained with support for Python 3.10 through 3.14.

Use it for

  • Normalize country names and codes from multiple data sources into a consistent ISO 3166 format for data integration pipelines
  • Perform fuzzy matching on country names with abbreviation handling to reconcile messy or informal country references in datasets
  • Convert monetary amounts between local currencies and USD using current or historical exchange rates for financial analysis
  • Map administrative region names from different reporting systems to a canonical base set for geographic data harmonization
  • Build humanitarian data workflows that require standardized country and region identifiers aligned with UN OCHA vocabulary

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

The package is actively maintained, has low install friction, carries a permissive MIT license, and solves a real problem for data integration and humanitarian workflows. No known vulnerabilities. Use it if you need reliable country/region code mapping, multilingual name matching, or FX rate conversion backed by official data sources.

Install

hdx-python-country on PyPI

Before you install

Low install friction with only two runtime dependencies (hdx-python-utilities and tenacity). Active maintenance with a release 9 days ago and commits through 2026-08-05.

Requires Python 3.10 or later. FX rate features depend on external data sources (Yahoo Finance, currency-api, IMF); network access required.

License in practice

MIT license permits commercial and private use with minimal restrictions; you must include a copy of the license and copyright notice.

Quickstart

pip install hdx-python-country

from hdx.location.country import Country

country = Country.get_by_iso2('US')
print(country.name)  # 'United States'

Verify before relying

  • Whether fuzzy matching accuracy and performance are suitable for your data volume and language mix
  • Whether the fallback chain for FX rates (Yahoo Finance → currency-api → IMF) meets your SLA for rate freshness

Package facts

LicenseMIT permissive
Python supportSupports the current Python release >=3.10
Install frictionLow. Pure-Python wheel
Runtime dependencies
2 packages
hdx-python-utilitiestenacity
MaintenanceActively maintained 9 days since the last release
Last repo commit
First released
Downloads295,467 / month, #7,922 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 :: MacOSOperating System :: Microsoft :: WindowsOperating System :: POSIX :: LinuxOperating System :: UnixProgramming Language :: PythonProgramming 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 :: Software Development :: Libraries :: Python Modules

Evidence: hdx_python_country-4.1.4-py3-none-any.whl

Tags

Capabilities
country code lookup iso 3166currency exchange rates conversionadministrative region name matchingfx rates historical datacountry name fuzzy matching
Topics
geospatial-datacurrency-conversiondata-integration
PyPI keywords
HDXcountrycountry codecurrenciescurrencyexchange rateforeign exchangefxiso 3166iso2iso3locationregion

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 › “administrative region name matching”

  • hdx-python-countryMaps country and region codes and names, matches administrative level…
  • reverse_geocoderReverse Geocoder converts latitude/longitude coordinates into the…
  • pgeocodepgeocode queries postal codes to retrieve GPS coordinates, place…

Give your agent the search over MCP, or paste the wish link into any chat.

More Python Modules 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
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
PyYAML Worth it
PyPI · Python Modules · released Sep 2025

PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.

MITcompiled wheel · 3.8+
1.2Bdownloads / mo
pydantic Worth it
PyPI · Python Modules · released May 2026

Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.

MITpure Python · 3.9+
1.1Bdownloads / mo
annotated-types Worth it
PyPI · Python Modules · released Jul 2026

Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.

Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…

MITpure Python · 3.10+
871.3Mdownloads / mo
typing-inspection Worth it
PyPI · Python Modules · released Aug 2026

Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.

MITpure Python · 3.10+
783.0Mdownloads / mo

See also countryinfo · hdx-python-utilities · libhxl · forex-python · pycountry · country-converter · isocodes · pycountry-convert · CurrencyConverter · iso4217