Skip to main content

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

https://travis-ci.org/LabD/django-postcode-lookup.svg?branch=master http://codecov.io/github/LabD/django-postcode-lookup/coverage.svg?branch=master https://img.shields.io/pypi/v/django-postcode-lookup.svg

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.

Files for django-postcode-lookup, version 0.4.0
Filename, size File type Python version Upload date Hashes
Filename, size django_postcode_lookup-0.4.0-py2.py3-none-any.whl (9.2 kB) File type Wheel Python version py2.py3 Upload date Hashes View hashes
Filename, size django-postcode-lookup-0.4.0.tar.gz (5.2 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page