Skip to main content

Python interface to Request Tracker API

Project description

+==============================================+ | Rt - Python interface to Request Tracker API | +==============================================+

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

REQUIREMENTS

This module uses following Python modules: - re - os - requests (http://docs.python-requests.org/)

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

Example says more than 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 because this module is part of larger software, but I am sure you will understand it clearly. The same is also in file rt.html.

OFFICIAL SITE

This module is part of Malicious Domain Manager (MDM), but can be used separately. Future changes will be first done for MDM, later can be included to the github version.

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.0.tar.gz (10.4 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for rt-1.0.0.tar.gz
Algorithm Hash digest
SHA256 701004584cde72ebdebe17bb098ee4fc22c7db17453f3399e8528c74d1c50408
MD5 fa2a2d3f3366408cd1a6f871c18429d2
BLAKE2b-256 4f715b880bb6ac3b80c3568243907a0c12e6e55ed31bc89a5c73421adfa493ac

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