Pluggable postcode lookup endpoint
Project description
This Django app providers a pluggable postcode django restframework endpoint. It currently only works for postcodes in The Netherlands.
- Currently supports the following services:
ApiWise
Webservices.nl
Status
Installation
pip install django_postcode_lookup
Usage
Add the following to your urls.py:
url(r'^postcode-lookup/', include('django_postcode_lookup.urls')),
Add a setting with the required backend
POSTCODE_LOOKUP = {
'default': {
'backend': 'django_postcode_lookup.backends.Webservices',
'OPTIONS': {
'username': 'someuser',
'password': 'somepassword',
}
}
}
To offer some form of protection to the api endpoint for usage by others a valid csrf token is required.
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
Close
Hashes for django-postcode-lookup-0.3.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2537de8fb9a15dd030671bf656d9fcbb77c1f411b0e81fa26e5d476fabcf132 |
|
MD5 | 16db0431cdf45ae05bb1a9c8a5487c3a |
|
BLAKE2b-256 | ac192df4b646940efce7f1f4bc71ea072b0eb79e63f433c57b942f97089b5e97 |
Close
Hashes for django_postcode_lookup-0.3.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b9376589a1955893acb2e226c5a03c4ece608849f1425c2460dd901d0d285c53 |
|
MD5 | dae762a602fb5e50f5b366e33e5cacb2 |
|
BLAKE2b-256 | 47fdc42350c4da05d93e22562295246c9a501d523a3dca4d354f486b5e9d4d51 |