3taps API Client.
Project description
A Python interface for the 3taps API.
The goal of this library is to map 3taps’ endpoints one-to-one. Calls to 3taps are made with clean, Pythonic methods. It only handles raw data, allowing you to define your own models.
Dependencies:
requests
Installation
Install via pip:
$ pip install threetaps
Install from source:
$ git clone https://github.com/mkolodny/3taps.git
$ cd 3taps
$ python setup.py install
Usage
Instantiating a client:
>>> client = threetaps.Threetaps('YOUR_API_KEY')
Examples
Sources:
>>> client.reference.sources()
Category Groups:
>>> client.reference.category_groups()
Categories:
>>> client.reference.categories()
Locations:
>>> client.reference.locations('locality', params={'city': 'USA-NYM-NEY'})
Locations Lookup:
>>> client.reference.location_lookup('CAN-YUL')
Search:
>>> client.search.search(params={'location.city': 'USA-NYM-NEY'})
Count:
>>> client.search.count('category', params={'status': 'for_sale'})
Anchor:
>>> utc_dt = datetime.today()
>>> client.polling.anchor(utc_dt)
Poll:
>>> client.polling.poll(params={'anchor': '306785687'})
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
threetaps-0.2.1.tar.gz
(5.5 kB
view hashes)
Built Distribution
Close
Hashes for threetaps-0.2.1.macosx-10.10-x86_64.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | f41f9ee71c97be9ca9c8620798467e1974497f379b479afc5fbc668f5262b575 |
|
MD5 | 4357a9df766c11e8d17ab6c38ebd3efe |
|
BLAKE2b-256 | 2956a1216ba41ed63bd36662146436cd481c16f9d14436d3dda41d9b33cc4828 |