Postal code management.
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
.. 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
.. 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
Built Distribution
File details
Details for the file django-postalcodes-0.4.0.tar.gz
.
File metadata
- Download URL: django-postalcodes-0.4.0.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a7465a55ef6d9dcac4dc4694c5f7369fe730835c78eaa59323ca8d7c2b0c116 |
|
MD5 | 41f3b8e8ad7ed25f3895c3b84a726558 |
|
BLAKE2b-256 | 6ba70dcd4e01b47ab1a8e28931818c5d721285ba272fa83521f1f23a7d12ec08 |
File details
Details for the file django_postalcodes-0.4.0-py2-none-any.whl
.
File metadata
- Download URL: django_postalcodes-0.4.0-py2-none-any.whl
- Upload date:
- Size: 7.6 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 50bd66865ce0db135a71dd875fbad20620e7c59c541c54618e907621ce25c600 |
|
MD5 | 7193207a255b3693c0c217b0fb7fc4bb |
|
BLAKE2b-256 | 92f0e3df47ff5786c82615cdfcf68ab9972bb3cf3dd00f7bc4ba78ea28d0edff |