Skip to main content

Teleportd API Python Wrapper

Project description

The Teleportd API for Python is a Python wrapper around the Teleportd API that makes it very simple to build Python apps on top of the Teleportd API. For more information on how the API works, a full documentation is available here.

Typical usage looks like this:

#!/usr/bin/env python

from teleportd import Teleportd

teleportd = Teleportd('_YOUR_USER_KEY_')

# Search with filters as a dictionary
search = teleportd.search({'str': 'laduree'})

# Retrieve a picture with the corresponding sha
get = teleportd.get({'sha': '12-07-20-98a3b3fdd9b190ef4484a06a76fc1009c03076c5'})

# Callback for each object fetched from the stream
def callback(data):
        do_something(data)

# Real-time photo stream
stream = teleportd.stream({}, callback)

License

This wrapper is released under the MIT license.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for Teleportd, version 0.3.3
Filename, size File type Python version Upload date Hashes
Filename, size Teleportd-0.3.3.tar.gz (2.1 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page