Py0870

Basic client for 0870 Converter API


License
Other
Install
pip install Py0870==1.1

Documentation

Py0870

Py0870 provides a basic Python module for interacting with the 0870 Converter API available at www.0870converter.co.uk.

Prerequisites

  • Python 2.x
  • setuptools, for installation
  • Internet connection to install dependencies
  • API key from www.0870converter.co.uk

Installation

Using PIP:

pip install Py0870

Without using PIP:

git clone https://github.com/robputt796/0870Py.git
cd 0870Py/src/
python setup.py install

Usage

python
Python 2.7.3 (default, Mar 18 2014, 05:13:23) 
>>>
>>> from Py0870.APIClient import APIClient
>>> myclient = APIClient('50459199754aa5488676bb4232692e62')
>>> print myclient.lookup("08445616161")
{'number': u'08445616161', 'name': u'Debenhams', 'altnumber': u'02074084444'}
>>>