$npx skillfedfor your agent

countryinfo

A Python module for returning data about countries, ISO info, and states/provinces within them.

Worth itPyPI LibrariesReleased Mar 2026614.7K downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — countryinfo-1.0.1-py3-none-any.whl
v1.0.1 · released 2026-03-07 · Python >=3.11

Yes. Countryinfo is a stable, well-maintained library with zero dependencies, permissive licensing, and no known vulnerabilities. It fills a genuine need for reliable country metadata lookup. Install it if you need to work with country codes, geographic data, or reference information in a Python application.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Low install friction with no runtime dependencies.
  • Active maintenance since 2018, last commit 2026-06-21, and supports current Python versions (3.11–3.14).
  • No known vulnerabilities.

License · maintenance · safety

MIT (permissive) — MIT license is permissive; you may use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.

last release 2026-03-07 (160 days) · last repo commit 2026-06-21 · 161 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 614,728 downloads/mo, #5,746 on PyPI

Verify before relying

pip install countryinfo

from countryinfo import CountryInfo

country = CountryInfo("Singapore")
print(country.capital())      # Singapore
print(country.iso(2))         # SG
print(country.currencies())   # ['SGD']
  • Whether the bundled country dataset is kept current with official ISO and geographic standards
  • Performance characteristics when querying large numbers of countries or calling methods repeatedly
Same gist for agents: .md · .json

What it is and what it does

Countryinfo is a lightweight, zero-dependency library that wraps a curated dataset of country metadata and exposes it through a simple object-oriented API. You instantiate a CountryInfo object with a country name, ISO code (alpha-2, alpha-3, or numeric), or alternate spelling, then call methods to retrieve specific attributes: capital, population, area, currencies, languages, calling codes, borders, timezones, GeoJSON geometry, and more. The library also supports reverse queries (all countries, filtered searches) and optional extras for fuzzy matching and Pydantic model integration.

It is designed for applications that need reliable, structured access to country reference data without external API calls or heavy dependencies. Common use cases include form validation, geographic filtering, localization, and data enrichment pipelines. The API is straightforward and the install footprint is minimal, making it suitable for both CLI tools and embedded library use.

Use it for

  • Validate and normalize country input in web forms or APIs by accepting multiple identifier formats (names, codes, spellings).
  • Build geographic filters or dashboards that need to display country metadata like capital, population, or official languages.
  • Enrich datasets with country-level attributes (currencies, timezones, calling codes) during ETL or data processing workflows.
  • Generate GeoJSON boundaries for mapping applications or spatial analysis without external geospatial libraries.
  • Implement country-aware features such as timezone detection, language selection, or regional grouping in multi-region applications.

Worth the install?

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

Worth it

Yes.

Countryinfo is a stable, well-maintained library with zero dependencies, permissive licensing, and no known vulnerabilities. It fills a genuine need for reliable country metadata lookup. Install it if you need to work with country codes, geographic data, or reference information in a Python application.

Install

countryinfo on PyPI

Before you install

Low install friction with no runtime dependencies. Active maintenance since 2018, last commit 2026-06-21, and supports current Python versions (3.11–3.14). No known vulnerabilities.

License in practice

MIT license is permissive; you may use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.

Quickstart

pip install countryinfo

from countryinfo import CountryInfo

country = CountryInfo("Singapore")
print(country.capital())      # Singapore
print(country.iso(2))         # SG
print(country.currencies())   # ['SGD']

Verify before relying

  • Whether the bundled country dataset is kept current with official ISO and geographic standards
  • Performance characteristics when querying large numbers of countries or calling methods repeatedly

Package facts

LicenseMIT permissive
Python supportSupports the current Python release >=3.11
Install frictionLow. Pure-Python wheel
Runtime dependenciesNone
MaintenanceActively maintained 160 days since the last release
Last repo commit
First released
Downloads614,728 / month, #5,746 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 LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Scientific/Engineering :: GISTopic :: Software Development :: Libraries

Evidence: countryinfo-1.0.1-py3-none-any.whl

Tags

Capabilities
country data lookup libraryISO country codesgeographic country informationcapital cities and currenciescountry borders and neighborscountry language and timezone dataGeoJSON country boundaries
Topics
country-dataiso-codesgeographic-reference
PyPI keywords
countryinfocountryisogeography

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 › “geographic country information”

  • countryinfoCountryinfo provides a Python interface to query comprehensive…
  • geoip2Queries MaxMind's GeoIP web services and databases to look up…
  • geonamescacheProvides Python dictionaries of geographic data including continents,…

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

More Libraries packages

urllib3 Worth it
PyPI · Libraries · released May 2026

urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.

MITpure Python · 3.10+
1.8Bdownloads / mo
requests Worth it
PyPI · Libraries · released May 2026

Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.

Apache-2.0pure Python · 3.10+
1.8Bdownloads / 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
python-dateutil Worth it
PyPI · Libraries · released Mar 2024

Provides parsing, arithmetic, and recurrence rule computation for dates and times, with timezone support and iCalendar RFC compliance.

Install it if you need to parse flexible date strings, compute relative dates, handle timezones, or work with recurrence rules—it's the de facto choice for these tasks.

Apache-2.0pure Python
1.2Bdownloads / 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
pytest Worth it
PyPI · Libraries · released Jun 2026

pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.

MITpure Python · 3.10+
1.1Bdownloads / mo

See also geonamescache · hdx-python-country · pycountry · isocodes · country_list · names-dataset · iso3166 · geotext · django-countries · language-data