Skip to main content

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('YOUR_API_KEY')

Examples

Reference

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

Search:

>>> client.search.search(params={'location.city': 'USA-NYM-NEY'})

Count:

>>> client.search.count('category', params={'status': 'for_sale'})

Polling

Anchor:

>>> utc_dt = datetime.today()
>>> client.polling.anchor(utc_dt)

Poll:

>>> client.polling.poll(params={'anchor': '306785687'})

Project details


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.1.6.tar.gz (5.5 kB view hashes)

Uploaded Source

Built Distribution

threetaps-0.1.6.macosx-10.4-x86_64.exe (68.9 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page