Skip to main content

RTCClient for Rational Team Concert

Project description

Rational Team Concert RTC Platform: UNKNOWN Classifier: Development Status :: 5 - Production/Stable Classifier: Topic :: Utilities Classifier: Environment :: Console Classifier: Intended Audience :: Developers Classifier: Intended Audience :: System Administrators Classifier: License :: OSI Approved :: Apache Software License Classifier: Operating System :: OS Independent Classifier: Programming Language :: Python :: 3 Classifier: Programming Language :: Python :: 3.5 Classifier: Programming Language :: Python :: 3.6 Classifier: Programming Language :: Python :: 3.7 Classifier: Programming Language :: Python :: 3.8 Classifier: Programming Language :: Python :: 3.9 Classifier: Programming Language :: Python :: 3.10 License-File: LICENSE License-File: AUTHORS

rtcclient

https://readthedocs.org/projects/rtcclient/badge/?version=latest https://img.shields.io/pypi/v/rtcclient.svg https://api.travis-ci.org/dixudx/rtcclient.svg?branch=master https://img.shields.io/badge/slack-rtcclient-blue.svg https://img.shields.io/badge/Say%20Thanks-!-1EAEDB.svg

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-released 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 and etc;

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

  • Performs some actions on the retrieved Workitems, including get/add Comments, get/add/remove Subscribers/Children/Parent, get/upload Attachments and etc;

  • Query Workitems using specified filtered rules or directly from your saved queries;

  • Logs all the activities and messages during your operation;

Python & Rational Team Concert Versions

This project has been tested against multiple Python versions, such as 2.7, 3.5, 3.6, 3.7, 3.8 and 3.9.

Currently the newest release of rtcclient is 0.7.0, which works well with Rational Team Concert 6.0.6.1 and ELM 7.0.

For Rational Team Concert with version 5.0.1, 5.0.2, it is suggested to install rtcclient with version 0.6.0.

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 import RTCClient
# you can remove this if you don't need logging
# default debug logging for console output
>>> setup_basic_logging()
# url ends with jazz
>>> url = "https://your_domain:9443/jazz"
>>> username = "your_username"
>>> password = "your_password"
# if your rtc server is behind a proxy, remember to set "proxies"
# explicitly. detailed can be found in quick start of the doc
# if your url ends with ccm, set ends_with_jazz to False
# refer to issue #68 for detailed explanation
>>> myclient = RTCClient(url, username, password, ends_with_jazz=True)
# 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 py35
(venv) tox -e pycodestyle

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.8.1.tar.gz (83.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.8.1-py3-none-any.whl (39.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rtcclient-0.8.1.tar.gz
  • Upload date:
  • Size: 83.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.8

File hashes

Hashes for rtcclient-0.8.1.tar.gz
Algorithm Hash digest
SHA256 f388e58c4b9c485f61e5e406817395acaeab662f5b1831c2e7a9ee4ae615f7dd
MD5 c8bfa2984c9c03d4d1f15a406a4cd14e
BLAKE2b-256 3f95659160bf41aa84878952a458b4cb131e67bf6dff76792c5ee92d4f0acf65

See more details on using hashes here.

File details

Details for the file rtcclient-0.8.1-py3-none-any.whl.

File metadata

  • Download URL: rtcclient-0.8.1-py3-none-any.whl
  • Upload date:
  • Size: 39.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.8

File hashes

Hashes for rtcclient-0.8.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fd57938f659c31af9e986546136a895f3b8eee88b8d80b6b2aa3704a251f10b1
MD5 99ebb1d2fe271284dee1f351c1f81b36
BLAKE2b-256 1f8613fd3415757334aaddfe736743f375e4d8e138b42d3e8325d553cb7bb43d

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