Skip to main content

RTCClient for Rational Team Concert

Project description

A Python-based Client/API for Rational Team Concert (RTC)

About this library

IBM® Rational Team Concert™, is built on the Jazz platform, allowing application development teams to use one tool to plan across teams, code, run standups, plan sprints, and track work. For more info, please refer to here.

IMPORTANT NOTE: THIS IS NOT AN OFFICIAL Python-based RTC Client.

This library can help you:

  • Interacts with an RTC server to retrieve objects which contain the detailed information/configuration, including Project Areas, Team Areas, Workitems, etc

  • Creates all kinds of Workitems through self-customized templates or Copies from some existing Workitems

  • Add comments to the retrieved Workitems

  • Query Workitems using specified filtered rules

  • Logs all the activities and messages during your operation

Python & Rational Team Concert versions

The project have been tested against Rational Team Concert 5.0.1 and 5.0.2 on Python 2.6, 2.7 and 3.3.

Installation

To install rtcclient, simply:

$ pip install rtcclient

Example

RTCClient is intended to map the objects in RTC (e.g. Project Areas, Team Areas, Workitems) into easily managed Python objects:

>>> from rtcclient.utils import setup_basic_logging
>>> from rtcclient.client import RTCClient
# you can remove this if you don't need logging
# default logging for console output
>>> setup_basic_logging()
>>> url = "https://your_domain:9443/jazz"
>>> username = "your_username"
>>> password = "your_password"
>>> myclient = RTCClient(url, username, password)
# it will be faster if returned properties is specified
# see in below query example
>>> wk = myclient.getWorkitem(123456) # get a workitem whose id is 123456
# get all workitems
# If both projectarea_id and projectarea_name are None, all the workitems
# in all ProjectAreas will be returned
>>> workitems_list = myclient.getWorkitems(projectarea_id=None,
                                           projectarea_name=None)
>>> myquery = myclient.query # query class
>>> projectarea_name = "your_projectarea_name"
# customize your query string
# below query string means: query all the workitems with title "use case 1"
>>> myquerystr = 'dc:title="use case 1"'
# specify the returned properties: title, id, state, owner
# This is optional. All properties will be returned if not specified
>>> returned_prop = "dc:title,dc:identifier,rtc_cm:state,rtc_cm:ownedBy"
>>> queried_wis = myquery.queryWorkitems(query_str=myquerystr,
                                         projectarea_name=projectarea_name,
                                         returned_properties=returned_prop)

Testing

Using a virtualenv is recommended. Setuptools will automatically fetch missing test dependencies.

If you have installed the tox on your system already, you can run the tests using pytest with the following command:

virtualenv
source .venv/bin/active
(venv) tox -e py27
(venv) tox -e py33
(venv) tox -e pep8

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

rtcclient-0.1.tar.gz (39.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rtcclient-0.1.dev95-py2.py3-none-any.whl (25.9 kB view details)

Uploaded Python 2Python 3

File details

Details for the file rtcclient-0.1.tar.gz.

File metadata

  • Download URL: rtcclient-0.1.tar.gz
  • Upload date:
  • Size: 39.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for rtcclient-0.1.tar.gz
Algorithm Hash digest
SHA256 a64c268790f51756b865f047a72c87ef426ff3d04347d2c5ee5ab63073189cce
MD5 84597026bb2c4236f49a3b753ae4358d
BLAKE2b-256 79b95c4f32df5751522f958ee7dd146f3b8548e0b4477356b7af20568a12eb50

See more details on using hashes here.

File details

Details for the file rtcclient-0.1.dev95-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for rtcclient-0.1.dev95-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e0a3ae1d421c4dfd849100f5f15111c756be26a8cbfb33de7879dc317db94b94
MD5 2c20047b36a6ca89269e87a95ac2ea41
BLAKE2b-256 3c55e49159f4c2ba0cabdc9977f261b5a5078a5a298e9f1e36755532828d75a2

See more details on using hashes here.

Supported by

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