Skip to main content

Python library to help getting data from TargetProcess API

Project description

TargetProcess Client

Python library to help getting data from TargetProcess API

Pypi Travis CI Codecov Code issues

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 targetprocess-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


Download files

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

Source Distribution

targetprocess-client-0.1.2.tar.gz (5.0 kB view details)

Uploaded Source

Built Distributions

targetprocess_client-0.1.2-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

targetprocess_client-0.1.2-py2-none-any.whl (7.7 kB view details)

Uploaded Python 2

File details

Details for the file targetprocess-client-0.1.2.tar.gz.

File metadata

File hashes

Hashes for targetprocess-client-0.1.2.tar.gz
Algorithm Hash digest
SHA256 e14f3285c900288aaf8bbef96fb4b249188ef235578d4736caa5decf67936ca6
MD5 6f87ecc0c85e79599021b29a250a7ac3
BLAKE2b-256 8896ab7b4384404ae15d1ae0bdb344f8e2b5a3d1bbe79bf6dafa9841a32d7a77

See more details on using hashes here.

File details

Details for the file targetprocess_client-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for targetprocess_client-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4f04a5a266f1e0934c2966f54ea67176acb6141d6cdb3459c862ea6fdf34a786
MD5 cb99cd6a02a128b08b355cf5de42b80a
BLAKE2b-256 dc7e1a2acf0670c4ab1aaeaad7435d87ee155e134d2910dc93d193cb4a136d40

See more details on using hashes here.

File details

Details for the file targetprocess_client-0.1.2-py2-none-any.whl.

File metadata

File hashes

Hashes for targetprocess_client-0.1.2-py2-none-any.whl
Algorithm Hash digest
SHA256 4a0d780c180e756c7154f6900e321c4176e379c63fbfe936ac2dda7ff8f08441
MD5 1e1a5634cf89220ac3134b3703b11553
BLAKE2b-256 813daededbd6bc24f634351b8b2ea9b47dd4073bea372ef8a6fd23286ce2c33e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page