Skip to main content

A simple data model for storing postal codes with placenames and location.

Installing

You can clone the repository and install from source:

python setup.py install

or use pip to install from PyPI:

pip install django-postalcodes

If you are using South you must use South >= 1.0 to ensure compatability with the new south_migrations migrations module name.

Getting data

Postal code data is available from a number of sources, typically on a country by country basis. The United States Census Bureau maintains the Gazetteer database, including detailed zip code data. The GeoNames geographical database also provides postal code data for international postal codes (and other places).

The following data file can be used to prepopulate a PostGIS database with US postalcodes complete with location.

These files pertain to the 0.1 release but may still be useful. They are based on location via decimal fields, rather than a GIS point field.

The data is licensed under the Database Contents License.

Metadata

Release files for django-postalcodes 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-postalcodes 0.4.0
File Size Uploaded Provenance
django-postalcodes-0.4.0.tar.gz 3.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for django-postalcodes 0.4.0
File Interpreter ABI Platform
django_postalcodes-0.4.0-py2-none-any.whl Python 2 none any Details

Total release size: 11.5 kB

Release files / django-postalcodes-0.4.0.tar.gz

Download URL django-postalcodes-0.4.0.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
4a7465a55ef6d9dcac4dc4694c5f7369fe730835c78eaa59323ca8d7c2b0c116
BLAKE2b-256 checksum
How to use checksums
6ba70dcd4e01b47ab1a8e28931818c5d721285ba272fa83521f1f23a7d12ec08
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / django_postalcodes-0.4.0-py2-none-any.whl

Download URL django_postalcodes-0.4.0-py2-none-any.whl
Size 7.6 kB
Tags Python 2
SHA-256 checksum
How to use checksums
50bd66865ce0db135a71dd875fbad20620e7c59c541c54618e907621ce25c600
BLAKE2b-256 checksum
How to use checksums
92f0e3df47ff5786c82615cdfcf68ab9972bb3cf3dd00f7bc4ba78ea28d0edff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for django-postalcodes 0.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page