$npx skillfedfor your agent

geonamescache

Geonames data for continents, cities and US states.

Worth itPyPI Python ModulesReleased Jul 2026931.9K downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — geonamescache-3.0.2-py3-none-any.whl
v3.0.2 · released 2026-07-28 · Python >=3.10 · 1 runtime deps: typing-extensions

Yes. It's a lightweight, actively maintained reference library with no security vulnerabilities, permissive licensing, and a narrow, well-defined purpose. Install it if you need reliable geographic codes and names; skip it if you need real-time geocoding or mapping services.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.10 or later.
  • Low friction install with a single lightweight dependency (typing-extensions).
  • Actively maintained with a recent release 17 days ago and continuous repository activity.

License · maintenance · safety

MIT (permissive) — MIT license permits commercial and private use with minimal restrictions, making it safe for most projects.

last release 2026-07-28 (17 days) · last repo commit 2026-07-28 · 126 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 931,913 downloads/mo, #4,700 on PyPI

Verify before relying

pip install geonamescache

import geonamescache

gc = geonamescache.GeonamesCache()
countries = gc.get_countries()
print(countries)
  • Whether the bundled GeoNames dataset is updated regularly or requires manual refresh.
  • Performance characteristics when searching across large city datasets.
  • Memory footprint when loading all cities at minimum population threshold.
  • Specific ISO and FIPS code standards covered by the dataset.
Same gist for agents: .md · .json

What it is and what it does

GeonamesCache wraps geographic reference data from GeoNames into a Python library, letting you query continents, countries, US states, counties, and cities as dictionaries. It includes country codes, state and county codes, population figures, and geographic coordinates. The library loads data into memory on initialization, then provides lookup and search methods to retrieve records by code, name, or partial match.

You'd use it when you need reliable geographic identifiers and metadata in your application—mapping user input to country codes, validating state abbreviations, finding cities by name, or building reference data for location-based features. It's a reference library rather than a mapping or geocoding service; it doesn't convert addresses to coordinates or vice versa, but it does provide the canonical codes and names you'd use alongside such services.

Use it for

  • Validate and normalize country or state codes in user input or data imports.
  • Build dropdown menus or autocomplete for location selection in web forms.
  • Map city names to population and geographic coordinates for analytics or filtering.
  • Create reference lookups for codes in data pipelines.
  • Search for cities by partial name match across the dataset.

Worth the install?

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

Worth it

Yes.

It's a lightweight, actively maintained reference library with no security vulnerabilities, permissive licensing, and a narrow, well-defined purpose. Install it if you need reliable geographic codes and names; skip it if you need real-time geocoding or mapping services.

Install

geonamescache on PyPI

Before you install

Low friction install with a single lightweight dependency (typing-extensions). Actively maintained with a recent release 17 days ago and continuous repository activity.

Requires Python 3.10 or later.

License in practice

MIT license permits commercial and private use with minimal restrictions, making it safe for most projects.

Quickstart

pip install geonamescache

import geonamescache

gc = geonamescache.GeonamesCache()
countries = gc.get_countries()
print(countries)

Verify before relying

  • Whether the bundled GeoNames dataset is updated regularly or requires manual refresh.
  • Performance characteristics when searching across large city datasets.
  • Memory footprint when loading all cities at minimum population threshold.
  • Specific ISO and FIPS code standards covered by the dataset.

Package facts

LicenseMIT permissive
Python supportSupports the current Python release >=3.10
Install frictionLow. Pure-Python wheel
Runtime dependencies
1 package
typing-extensions
MaintenanceActively maintained 17 days since the last release
Last repo commit
First released
Downloads931,913 / month, #4,700 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 :: EnglishProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: Implementation :: CPythonTopic :: Software Development :: Libraries :: Python Modules

Evidence: geonamescache-3.0.2-py3-none-any.whl

Tags

Capabilities
geographic data lookupcountry iso codescity population datageonames data pythonus states countiescontinent country codesgeodata reference
Topics
geodatareference-datalookup-tables
PyPI keywords
countiescountriesfipsgeogeodatageonamesiso-codesstates

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 data lookup”

  • geonamescacheProvides Python dictionaries of geographic data including continents,…
  • pypostalcodeLooks up Canadian postal codes to retrieve city, province, geographic…
  • censusProvides a Python wrapper for the United States Census Bureau's API,…

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 · geotext · us · reverse-geocode · country_list · isocodes · pycountry · names-dataset · pgeocode · census