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.

Source Distribution

django-postcode-lookup-0.2.0.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

django_postcode_lookup-0.2.0-py2.py3-none-any.whl (9.2 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file django-postcode-lookup-0.2.0.tar.gz.

File metadata

File hashes

Hashes for django-postcode-lookup-0.2.0.tar.gz
Algorithm Hash digest
SHA256 93795eca2bc08b36f938e727b112ad023a074799d7f39e76b0ce26c02430107a
MD5 f1cf9d78004e7d8d14465d4c58831ecf
BLAKE2b-256 ae72a94bbfdf944752941b7473b821dca24cd73677a74000b2c34a4c3474228b

See more details on using hashes here.

File details

Details for the file django_postcode_lookup-0.2.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for django_postcode_lookup-0.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 7afd730a4da5d4100363e6ee15874ebeaac732d59d2b89f559e37426ad315eb3
MD5 a6e9ed3f1b9804b4800a8f71296dbc88
BLAKE2b-256 985157f7a8aa7b31b6c87cbb55f192334bd9f20b60a8df7eeac1a1e6428d3b0a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page