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 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(auth_token=’YOUR_API_KEY’)
## Examples
### [Reference](http://docs.3taps.com/reference_api.html)
#### 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](http://docs.3taps.com/reference_api.html)
#### Search
client.search.search(params={‘location.city’: ‘USA-NYM-NEY’})
#### Count
client.search.count(‘category’, params={‘status’: ‘for_sale’})
### [Polling](http://docs.3taps.com/polling_api.html)
#### 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
Built Distribution
Hashes for threetaps-0.1.3.macosx-10.4-x86_64.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d350d96b2d609b2a62f63d6f58de88930e2b09608ac98414cd12900443f2e83 |
|
MD5 | 51382023ac941b8f9f16a614e7155323 |
|
BLAKE2b-256 | a0a22356e29a2a623ed065c513cbbeaf7cc8d92e5d7c13fbc0737f0dd952e899 |