Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Python client to connect to API

Project Description Python Client - alpha

Python client to connect to API


  • Supports python 3.x (not yet python 2.x, sorry!)
  • Response in Python native list and dict types
  • Supports free REST service and self-hosted service (See documentation for installation details)

Quick Start

Install python package:

$ pip install postcodes_io
$ python
from postcodes_io import Postcodes
pio = Postcodes()
postcode = pio.get('SW1A 1AA')

Self-hosted Service using Docker

  1. Pull docker image:

    docker pull randomvariable/
  2. Run docker container as a daemon:

    docker run -p 8000:8000 -d randomvariable/
  3. Execute API using hosts

from postcodes_io import Postcodes
postcode = Postcodes('http://localhost:8000').get('SW1A 1AA')


  • Add more endpoints
  • Documentation
  • Proper isolated unit tests


0.1.0 (2016-07-08)

  • First release on PyPI.

Release History

This version
History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(12.9 kB) Copy SHA256 Hash SHA256
Source None Jul 14, 2016

Supported By

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 Google Google Cloud Servers