Skip to main content
Warning: You are using the test version of PyPI. This is a pre-production deployment of Warehouse. Changes made here affect the production instance of TestPyPI (testpypi.python.org).
Help us improve Python packaging - Donate today!

API client for https://github.com/ministryofjustice/postcodeinfo

Project Description

Python package providing an API client for https://github.com/ministryofjustice/postcodeinfo

Installation

pip install postcodeinfo

Usage

import postcodeinfo

client = postcodeinfo.Client("<postcodeinfo-api-url>", "<access-token>")
postcode = client.lookup_postcode("sw1a 1aa")
if postcode.valid:
    for address in postcode.addresses:
        print address['formatted_address']
Release History

Release History

This version
History Node

0.0.1

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting