Giter Site home page Giter Site logo

tpapi's Introduction

tpapi

A Python client library for the Target Process Rest API. Mostly a simple object mapper for entity data and takes care of the http requests for you. Entities are returned as Python Objects, dynamic classes based on the meta data returned by the api.

Changes

v0.4

Support for reading and creating entity data. Editing data and nice access to custom attributes is next.

v0.3

Support reading most of the data in a project. Creating and editing entity still WIP.

Quickstart

import tpapi
from requests.auth import HTTPBasicAuth

uname = 'USER'
pword = 'PASS'
url = "https://yourCompany.tpondemand.com/api/v1/"
project_id = 1001

tpapi.TP(url,auth=HTTPBasicAuth(uname,pword))
project = TP.get('Projects',Id=project_id)

# Get the release
release = project.get('Releases',where="Name eq 'Version1'")

# Remaining Bug effort for release
print sum(map(lambda b:b.TimeRemain,release.Bugs))

# Panic ? 

# Starting planning hotfix Release
new_release = project.create('Release',Name="Version1-Hotfix",Project=project)

tpapi's People

Contributors

ash30 avatar

Watchers

 avatar

tpapi's Issues

Maintainership of tpapi

Hey,

I help maintain a private version of tpapi for my employer (foundry.com). We've been using it for several years to interact with Targetprocess.

I'm now looking at whether we can open source this version of tpapi and publish it to PyPI.org.

Would you be willing to add additional maintainers to the tpapi PyPI project, such that we can publish new versions? The API would be different so I'd bump the major version. I'm very happy to retain the 0.2 build from 2016, if you're still using it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.