TPy is a Python wrapper for the TargetProcess API.
It is designed to make interfacing with the REST API easier.
import tpy
# Authenticate with an API key...
tp = tpy.TargetProcess('http://demo.tpondemand.com/',api_key=BLAH)
# or Basic auth...
tp = tpy.TargetProcess('http://demo.tpondemand.com/',username=admin,password=supersecret)
# loop through our stories
for story in tp.UserStories.all:
print story.IdYou can install via pip
pip install tpy
Or via easy-install
easy_install tpy
Or via setup.py
python setup.py install
View the documentation at http://tpy.readthedocs.org
All of the code contained here is licensed by the GNU GPLv3.
