Postal code management (without the PostGIS requirement).
Project description
Django Postal Codes
===================
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-light
.. 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.
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 <http://www.census.gov/geo/www/gazetteer/gazette.html>`_, including
detailed zip code data. The `GeoNames geographical database
<http://www.geonames.org/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://dl.dropbox.com/u/6515401/postalcodes/postalcodes_gis_us.sql.zip>`_ (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://dl.dropbox.com/u/6515401/postalcodes/postalcodes_international.sql.zip>`_ (9 MB)
* `US zip codes using state abbreviations <http://dl.dropbox.com/u/6515401/postalcodes/postalcodes_us.sql.zip>`_ (623 KB)
The data is licensed under the `Database Contents License <http://opendatacommons.org/licenses/dbcl/1.0/>`_.
===================
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-light
.. 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.
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 <http://www.census.gov/geo/www/gazetteer/gazette.html>`_, including
detailed zip code data. The `GeoNames geographical database
<http://www.geonames.org/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://dl.dropbox.com/u/6515401/postalcodes/postalcodes_gis_us.sql.zip>`_ (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://dl.dropbox.com/u/6515401/postalcodes/postalcodes_international.sql.zip>`_ (9 MB)
* `US zip codes using state abbreviations <http://dl.dropbox.com/u/6515401/postalcodes/postalcodes_us.sql.zip>`_ (623 KB)
The data is licensed under the `Database Contents License <http://opendatacommons.org/licenses/dbcl/1.0/>`_.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for django-postalcodes-light-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37515ce62a8b9775aa14f4fb1790c7180e6dcc1acb6b24c638b8de95856f220f |
|
MD5 | 07914e01d0a652ace98af1b7c621f15c |
|
BLAKE2b-256 | 1e2c2893ba1e4c1e77739aae5f449c0bcc3022d7fe4a908ac9570b4ce1162cb5 |