Skip to main content

Python interface to Request Tracker API

Project description

https://travis-ci.org/CZ-NIC/python-rt.svg?branch=master

Rt - Python interface to Request Tracker API

Python implementation of REST API described here: https://rt-wiki.bestpractical.com/wiki/REST

REQUIREMENTS

This module uses following Python modules:

Requirements can be installed running:

pip install -r requirements.txt

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 distributed along with this module.

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

Project site and issue tracking:

https://github.com/CZ-NIC/python-rt

Git repository:

git://github.com/CZ-NIC/python-rt.git

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

Uploaded Source

Built Distribution

rt-1.0.11-py2.py3-none-any.whl (16.9 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

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

File hashes

Hashes for rt-1.0.11.tar.gz
Algorithm Hash digest
SHA256 164acda22cc6eacd153dac6b9dea7386851c9a1ae05b8a06fa3b0c3a161e2bf1
MD5 dcdf45303e2f5ce54c797a75b9991ec2
BLAKE2b-256 c0fd1a5f138855c5f4f16130ed8403bed031e80abbcbfff3a76dd5fe05511ab2

See more details on using hashes here.

File details

Details for the file rt-1.0.11-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for rt-1.0.11-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c8a7df878c039848da8052daa6af4d0352a95ad51989cf313a410a4c0edae0b2
MD5 0c9ced83b0cefcfee7679f8359fa8608
BLAKE2b-256 e050ca11593f571230d13a93061d8b34503b5b3f5697e337a92b7ac01985fb1c

See more details on using hashes here.

Supported by

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