pyzipcode
query zip codes and location data
Decision gist · record as of 2026-08-14
No. The package is abandoned (last update 2021-03-03), has high install friction (source-only distribution), and relies on a ZIP code database from 2004 that is now significantly outdated. For current applications, use a maintained alternative or a live API service that reflects current postal code assignments.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.6+; source distribution may require a C compiler or build tools to install.
- High install friction: the package ships as a source distribution only and requires compilation or build steps.
- Maintenance is abandoned—last release was 2021-03-03, over 1990 days ago, with no recent commits.
License · maintenance · safety
MIT (permissive) — MIT license is permissive and imposes no significant restrictions on use, modification, or redistribution.
last release 2021-03-03 (1990 days) · last repo commit 2021-03-19 · 15 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 289,818 downloads/mo, #7,997 on PyPI
Alternatives
Verify before relying
from pyzipcode import ZipCodeDatabase
zcdb = ZipCodeDatabase()
result = zcdb[54115]
print(result.city, result.state, result.latitude, result.longitude)- Whether the embedded ZIP code database (from 2004) remains accurate for current US postal codes
- Whether the package builds cleanly on modern Python versions despite abandonment
- Performance characteristics when searching or filtering large result sets
What it is and what it does
pyzipcode wraps a local SQLite database of US ZIP codes to provide fast, offline lookups of postal code metadata. It loads city, state, latitude, longitude, timezone, and daylight savings time information for any ZIP code, and supports search by city name and radius-based filtering around a given ZIP code.
The package exposes a dictionary-like ZipCodeDatabase interface: you can look up a ZIP code by integer or string, search for all codes in a city using SQL wildcards, or find codes within a specified radius. It requires no external API calls or network access, making it suitable for applications that need reliable ZIP code data without external dependencies.
Use it for
- Validate and enrich user-submitted ZIP codes with city/state information in web forms or data pipelines
- Find nearby ZIP codes for location-based features like store locators or delivery radius calculations
- Populate timezone and daylight savings time data for scheduling or time-aware applications
- Offline geocoding: convert ZIP codes to approximate latitude/longitude for mapping or distance calculations
- Bulk lookup of ZIP code metadata in batch processing without rate limits or API costs
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
No.
The package is abandoned (last update 2021-03-03), has high install friction (source-only distribution), and relies on a ZIP code database from 2004 that is now significantly outdated. For current applications, use a maintained alternative or a live API service that reflects current postal code assignments.
Install
pyzipcode on PyPI
Before you install
High install friction: the package ships as a source distribution only and requires compilation or build steps. Maintenance is abandoned—last release was 2021-03-03, over 1990 days ago, with no recent commits.
Requires Python 3.6+; source distribution may require a C compiler or build tools to install.
License in practice
MIT license is permissive and imposes no significant restrictions on use, modification, or redistribution.
Quickstart
from pyzipcode import ZipCodeDatabase
zcdb = ZipCodeDatabase()
result = zcdb[54115]
print(result.city, result.state, result.latitude, result.longitude)
Verify before relying
- Whether the embedded ZIP code database (from 2004) remains accurate for current US postal codes
- Whether the package builds cleanly on modern Python versions despite abandonment
- Performance characteristics when searching or filtering large result sets
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.6 |
| Install friction | High. Source build required |
| Runtime dependencies | None |
| Maintenance | Abandoned 1,990 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 289,818 / month, #7,997 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3 |
Evidence: pyzipcode-3.0.1.tar.gz
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 › “zip code lookup”
- pyzipcodeProvides local lookup of US ZIP code information including city,…
- zipcodesQuery and validate U.S. zipcodes with embedded data—no external…
- pyairnowA thin async Python client for the EPA AirNow Air Quality Index API,…
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 uszipcode · zipcodes · pypostalcode · reverse-geocode · IP2Location · pgeocode · us · airportsdata · tzfpy · tzwhere