Skip to main content

Python interface to Request Tracker API

Project description

Python implementation of REST API described here: http://requesttracker.wikia.com/wiki/REST

REQUIREMENTS

This module uses following Python modules:

LICENCE

This module is distributed under the terms of GNU General Public Licence v3 and was developed by CZ.NIC Labs - research and development department of CZ.NIC association - top level domain registy for .CZ. Copy of the GNU General Public License is distibuted along with this program.

USAGE

An example is worth a thousand words:

>>> import rt
>>> tracker = rt.Rt('http://localhost/rt/REST/1.0/', 'user_login', 'user_pass')
>>> tracker.login()
True
>>> map(lambda x: x['id'], tracker.search(Queue='helpdesk', Status='open'))
['ticket/1', 'ticket/2', 'ticket/10', 'ticket/15']
>>> tracker.create_ticket(Queue='helpdesk', \
... Subject='Coffee (important)', Text='Help I Ran Out of Coffee!')
19
>>> tracker.edit_ticket(19, Requestors='addicted@example.com')
True
>>> tracker.reply(19, text='Do you know Starbucks?')
True
>>> tracker.logout()
True

Please use docstrings to see how to use different functions. They are written in ReStructuredText. You can also generate HTML documentation by running make html in doc directory (Sphinx required).

OFFICIAL SITE

This module was developed as a part of Malicious Domain Manager (MDM), but can be used separately and also has its own Redmine project. We will make the best effort to keep the changes synchronized in both projects.

python-rt module

https://git.nic.cz/redmine/projects/python-rt

Malicious Domain Manager

https://git.nic.cz/redmine/projects/mdm

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

rt-1.0.3.tar.gz (27.7 kB view details)

Uploaded Source

File details

Details for the file rt-1.0.3.tar.gz.

File metadata

  • Download URL: rt-1.0.3.tar.gz
  • Upload date:
  • Size: 27.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for rt-1.0.3.tar.gz
Algorithm Hash digest
SHA256 6bab05971f813bb2b10751802f1fab89244747282a0803c3925319ba425e2bf6
MD5 3c72b2d76172311aab730d431aba0f78
BLAKE2b-256 b4a34adab8a4bcbe0a29b68f4f6d0abe7990ccfa4f5d765d6ab21f952cf4b734

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