Python interface to Request Tracker API
Project description
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:
requests (http://docs.python-requests.org/)
nose (http://nose.readthedocs.org)
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:
- Git repository:
git://github.com/CZ-NIC/python-rt.git
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file rt-1.0.10.tar.gz
.
File metadata
- Download URL: rt-1.0.10.tar.gz
- Upload date:
- Size: 35.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 218e366306ab5b2b97528e1e66d237bfdf82ce722847e0bac326bfa542b65344 |
|
MD5 | da4c3216749d1c2d987853e91682dd13 |
|
BLAKE2b-256 | 18a8b7ce9281ba0e1269b6139286cb7839f328a868c1eb89ae5f21b86a33d932 |
File details
Details for the file rt-1.0.10-5-py2.py3-none-any.whl
.
File metadata
- Download URL: rt-1.0.10-5-py2.py3-none-any.whl
- Upload date:
- Size: 16.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 12fb5cebf2a4c4514acbd1b6e063770627142df1de2258ad16a4c1e0a7a53758 |
|
MD5 | 087d8d1e85d70dd9b88123f135977105 |
|
BLAKE2b-256 | 969c1d456a8f04e5f5fdd6d7aa5ed2e520ddec6e2d3ba5aef4fe11622ed2b71c |