pypostalcode
Radius searches on Canadian postal codes, location data
Decision gist · record as of 2026-08-14
Yes, if you need Canadian postal code lookups and can accept that the data is frozen as of June 2021. The package is stable, has no dependencies, and installs easily. However, if you require current postal code data or active maintenance, you should verify the database currency against Canada Post's current FSA assignments before relying on it in production.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Installation is straightforward with no runtime dependencies.
- The package is abandoned as of June 2021 with no recent maintenance, so expect no updates or bug fixes.
License · maintenance · safety
MIT (permissive) — MIT license is permissive and places no restrictions on use, modification, or distribution in commercial or private projects.
last release 2021-06-19 (1882 days) · last repo commit 2021-06-19 · 44 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 196,048 downloads/mo, #9,799 on PyPI
Alternatives
Verify before relying
pip install pypostalcode
from pypostalcode import PostalCodeDatabase
pcdb = PostalCodeDatabase()
location = pcdb['V5K']
print(location.city, location.province, location.latitude, location.longitude)- Whether the postal code database is current or reflects changes to Canadian postal codes since the last 2021 release.
- Compatibility with modern Python versions, as the package specifies no explicit Python version requirement.
What it is and what it does
pypostalcode is a Canadian postal code database and lookup tool. It provides fast lookups of Forward Sortation Area (FSA) codes to retrieve associated city, province, geographic coordinates, and timezone data. The package also supports radius-based searches to find all postal codes within a specified distance in kilometers from a given FSA code.
The package has no runtime dependencies and installs cleanly as a pure Python wheel. It was last updated in June 2021 and is no longer actively maintained, so the underlying postal code data may not reflect recent changes to Canadian postal code assignments or geographic boundaries.
Use it for
- Look up city and province information for a Canadian postal code in an application or data pipeline.
- Find all postal codes within a radius to support location-based filtering or geographic queries.
- Retrieve geographic coordinates and timezone for a postal code to support mapping or scheduling features.
- Validate or enrich Canadian address data with postal code lookups in batch processing.
- Support geolocation features in a web or mobile application serving Canadian users.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need Canadian postal code lookups and can accept that the data is frozen as of June 2021.
The package is stable, has no dependencies, and installs easily. However, if you require current postal code data or active maintenance, you should verify the database currency against Canada Post's current FSA assignments before relying on it in production.
Install
pypostalcode on PyPI
Before you install
Installation is straightforward with no runtime dependencies. The package is abandoned as of June 2021 with no recent maintenance, so expect no updates or bug fixes.
License in practice
MIT license is permissive and places no restrictions on use, modification, or distribution in commercial or private projects.
Quickstart
pip install pypostalcode
from pypostalcode import PostalCodeDatabase
pcdb = PostalCodeDatabase()
location = pcdb['V5K']
print(location.city, location.province, location.latitude, location.longitude)
Verify before relying
- Whether the postal code database is current or reflects changes to Canadian postal codes since the last 2021 release.
- Compatibility with modern Python versions, as the package specifies no explicit Python version requirement.
Package facts
| License | MIT permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Abandoned 1,882 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 196,048 / month, #9,799 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
Evidence: pypostalcode-0.4.1-py3-none-any.whl
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 › “canadian postal code lookup”
- pypostalcodeLooks up Canadian postal codes to retrieve city, province, geographic…
- pyapPyap detects and parses postal addresses from unstructured text,…
- 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 Database packages
psycopg2-binary is a PostgreSQL database adapter for Python that implements the DB API 2.0 specification, enabling Python applications to connect to and query PostgreSQL databases with thread-safe concurrent operations.
Python client library for connecting to and executing commands against Redis key-value stores, supporting both synchronous and asynchronous operations.
Install it if your application needs to interact with Redis; the only prerequisite is a running Redis server instance.
YDB Python SDK is the official client library for connecting to and querying YDB databases from Python applications.
Install it if you need to connect Python applications to YDB databases.
Connects Python applications to Snowflake data warehouses using the DB API 2.0 specification, enabling SQL queries, data transfers, and warehouse operations.
sqlparse tokenizes SQL text into a tree of statements, clauses, and expressions, and provides functions to split scripts, format queries, and inspect parsed tokens without validating dialect or syntax.
Install it if you need to manipulate, format, or analyze SQL text programmatically.
Provides base adapter protocols and shared functionality that database adapters use to integrate with dbt-core, handling connections, dialect translation, relation caching, and core interface management.
See also pgeocode · pyzipcode · reverse-geocode · pyap2 · stats-can · uszipcode · pyap · pygeohash · zipcodes · postal