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:

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://gitlab.labs.nic.cz/labs/python-rt

Git repository:

git://git.nic.cz/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.9.tar.gz (35.3 kB view details)

Uploaded Source

Built Distribution

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

rt-1.0.9-py2.py3-none-any.whl (16.4 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

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

File hashes

Hashes for rt-1.0.9.tar.gz
Algorithm Hash digest
SHA256 33c03687e78f079b2a98360ec12507191f2c07586efe07a3242485e8479ff255
MD5 adedc0879817da8e5e068516d858e5e4
BLAKE2b-256 103db9bbabefdc5a39a357141e5142df11a3e30191289165a11252cbfa3c1c9a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rt-1.0.9-py2.py3-none-any.whl
  • Upload date:
  • Size: 16.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for rt-1.0.9-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 23b3b941057f66fa109e663b26a5f6593e78525f30e2adef543bb9afce62d601
MD5 757105302630897ec64ef7aa122eced9
BLAKE2b-256 1414ce2c1593444c19985d720cee619a2e40560b8e5d95f770eaa765c074efbf

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