Teelaunch API for Python 0.0.1
Installation
Install from PyPi using pip, a package manager for Python.
pip install teelaunch
Don't have pip installed? Try installing it, by running this from the command line:
curl https://raw.github.com/pypa/pip/master/contrib/get-pip.py | python
Or, you can download the source code (ZIP) for teelaunch-python
, and then run:
python setup.py install
You may need to run the above commands with sudo
.
Getting Started
Getting started with the Teelaunch API couldn't be easier. Create a TeelaunchRestClient
and you're ready to go.
API Credentials
The TeelaunchRestClient
needs your Teelaunch credentials. You can either pass these directly to the constructor (see the code below) or via environment variables.
from teelaunch.rest import TeelaunchRestClient
key = "AAAAAAAAAAAAAAAA"
secret = "BBBBBBBBBBBBBBBB"
client = TeelaunchRestClient(key, secret)
Alternately, a TeelaunchRestClient
constructor without these parameters will look for TEELAUNCH_KEY
and TEELAUNCH_SECRET
variables inside the current environment.
We suggest storing your credentials as environment variables. Why? You'll never have to worry about committing your credentials and accidentally posting them somewhere public.
from teelaunch.rest import TeelaunchRestClient
client = TeelaunchRestClient()
Create a project
from teelaunch.rest import TeelaunchRestClient
key = "AAAAAAAAAAAAAAAA"
secret = "BBBBBBBBBBBBBBBB"
client = TeelaunchRestClient(key, secret)
project = client.project.create(args="todo")
print project.sid
Documentation
The full power of the Teelaunch API is at your fingertips. The full documentation explains all the awesome features available to use.