Postcodes is a small library for getting information about, postcodes in the UK. At its core, the postcode data is provided by the Ordnance Survey OS OpenData initiative, but this library is actually a wrapper for a web-service provided by Stuart Harrison.
If you use pip then installation is simply:
$ pip install postcodes
or, if you want the latest github version:
$ pip install git+git://github.com/e-dard/postcodes.git
You can also install Postcodes via Easy Install:
$ easy_install postcodes
Postcodes allows you to do the following:
- Lookup the postcode data associated with a specific postcode;
- Get the nearest postcode data associated to a specific geographical point;
- Get all of the postcode data within a specific distance to a geographical point;
- Get all of the postcode data within a specific distance to a known postcode.
As well as being a thin wrapper over the uk-postcodes web-service, Postcodes also provides a simple caching and validation layer, in the form of the PostCoder object, meaning you don't have to worry about keeping track of any previously requested data.
2 years, 7 months ago passed
.. image:: https://readthedocs.org/projects/postcodes/badge/?version=latest :target: https://postcodes.readthedocs.io/en/latest/?badge=latest :alt: Documentation Status
<a href='https://postcodes.readthedocs.io/en/latest/?badge=latest'> <img src='https://readthedocs.org/projects/postcodes/badge/?version=latest' alt='Documentation Status' /> </a>
Project Privacy Level