skip to navigation
skip to content

Not Logged In

django-postalcodes 0.3.0

Postal code management.

Latest Version: 0.4.0

Django Postal Codes

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


You can clone the repository and install from source::

python install

or use `pip` to install from PyPI::

pip install django-postalcodes

.. note::
Version 0.2+ requires a GIS backend (e.g. PostGIS). Migrating from 0.1 will
not be straightforward if you have existing data decimal data or do not
have a GIS backend.

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 <http:"" geo="" www="" gazetteer="" gazette.html="">`_, including
detailed zip code data. The `GeoNames geographical database
<http:"" export=""/>`_ 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.

* `US zip codes using state abbreviations <https:"" u="" 6515401="" postalcodes="""">`_ (879 KB)

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.

* `International postal codes <http:"" u="" 6515401="" postalcodes="""">`_ (9 MB)
* `US zip codes using state abbreviations <http:"" u="" 6515401="" postalcodes="""">`_ (623 KB)

The data is licensed under the `Database Contents License <http:"" licenses="" dbcl="" 1.0=""/>`_.  
File Type Py Version Uploaded on Size
django-postalcodes-0.3.0.tar.gz (md5) Source 2014-02-20 3KB
  • Downloads (All Versions):
  • 22 downloads in the last day
  • 99 downloads in the last week
  • 523 downloads in the last month