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. 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

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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

threetaps-0.2.2.macosx-10.9-x86_64.exe (69.0 kB view details)

Uploaded Source

File details

Details for the file threetaps-0.2.2.tar.gz.

File metadata

  • Download URL: threetaps-0.2.2.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for threetaps-0.2.2.tar.gz
Algorithm Hash digest
SHA256 a57286f1c2db4e2874044d273c70fc6036f504625037e70b32684a52f39e0036
MD5 f918a212f3b789b37148316b0733a185
BLAKE2b-256 8ac73a4bf32408b3a83998ed14095f12dfe2f946838ac1dbae83d73cb7ff208f

See more details on using hashes here.

File details

Details for the file threetaps-0.2.2.macosx-10.9-x86_64.exe.

File metadata

File hashes

Hashes for threetaps-0.2.2.macosx-10.9-x86_64.exe
Algorithm Hash digest
SHA256 b3553cc8cfe1dd68033649eab9cbaf1f2c4d7f83def8985cf219ab563cfc3e18
MD5 84b379b59dad21fbdf7f98e3a89b0c88
BLAKE2b-256 530e2895c12b534b20b90ba914584601b632d182624d772440834f5e0f5c413f

See more details on using hashes here.

Supported by

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