Python library to help getting data from TargetProcess API
Project description
TargetProcess Client
Python library to help getting data from TargetProcess API
Getting the code
The code is hosted at https://github.com/magicjohnson/targetprocess-client
Check out the latest development version with:
$ git clone git://github.com/magicjohnson/targetprocess-client.git
Installing
You can install targetprocess-client using:
$ pip install tragetprocess-client
or get the code and run install:
$ cd targetprocess-client $ python setup.py install
Usage examples
Create client instance:
from targetprocess.api import TargetProcessAPIClient
from targetprocess.serializers import TargetProcessSerializer
tp = TargetProcessAPIClient(api_url='https://md5.tpondemand.com/api/v1/', user='user', password='pass')
Get collection of UserStories:
stories_json = tp.get_stories(take=5, include="[Id,Name,CreateDate]")
stories = TargetProcessSerializer.deserialize(stories_json)
Get UserStory item
story_json = tp.get_story(360, include="[Id,Name,CreateDate]")
story = TargetProcessSerializer.deserialize(story_json)
Update item
data = {'Name': 'New name'}
tp.update_story(360, data)
Request “unregistered” collection (that client doesn’t have predefined methods for)
tp.get_collection(collection="Epics", take=2)
tp.get_resource(collection="Epics", entity_id=427)
tp.update_resource(collection="Epics", entity_id=427, data={'Name': 'New Epic name'})
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for targetprocess-client-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0508df5d9f68784f3eb2b5654adea45ba7f87526c001634b0218211070b3393d |
|
MD5 | 87ad5ad2f428ba42be92ad0f292b9245 |
|
BLAKE2b-256 | a4c7ca7a4058d43382eb53546ac99bde5631c564d2b53c6d68a54a8ea0cf65a4 |
Close
Hashes for targetprocess_client-0.1.1-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 551b5b7e1b1e3fc4a0d51b40a663d1d9790df0e5db47475128b7423fc6f7a13b |
|
MD5 | 50fec1153164b491b5722878ca78157d |
|
BLAKE2b-256 | a89fffda56bb71560b88ea84feed6522e10884de1dc15df43d0a2eacb67d484f |