Skip to content
Python API wrapper for thunk.us
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
tests
thunkapi
HISTORY.rst
LICENSE
MANIFEST
MANIFEST.in
README.rst
setup.py

README.rst

thunkapi.py

Introduction

thunkapi.py is a python library and command line client for interacting with the thunk.us web service.

Installation

Install via pip:

pip install thunkapi

Or if you must:

easy_install thunkapi

Usage

thunk.py can be imported into any python module:

import thunkapi

thunkapi.create()
thunkapi.poke(UID, state, payload)
thunkapi.check(uid)

There is also a command line client to use:

thunk.py UID
thunk.py -x check UID
thunk.py -x check "UID1,UID2,UID3"
thunk.py -x poke -s state -p payload UID
thunk.py -x create
You can’t perform that action at this time.