https://github.com/wtsi-hgi/python-rt
Clone of git://git.nic.cz/python-rt.git
https://github.com/wtsi-hgi/python-rt
Last synced: about 2 months ago
JSON representation
Clone of git://git.nic.cz/python-rt.git
- Host: GitHub
- URL: https://github.com/wtsi-hgi/python-rt
- Owner: wtsi-hgi
- License: gpl-3.0
- Created: 2015-04-08T13:02:30.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-08-24T22:17:28.000Z (over 9 years ago)
- Last Synced: 2025-01-26T18:48:28.352Z (3 months ago)
- Language: Python
- Size: 215 KB
- Stars: 1
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGES
- License: COPYING
Awesome Lists containing this project
README
==============================================
Rt - Python interface to Request Tracker API
==============================================Python implementation of REST API described here:
http://requesttracker.wikia.com/wiki/RESTREQUIREMENTS
============This module uses following Python modules:
- requests (http://docs.python-requests.org/)
- nose (http://nose.readthedocs.org)
- six (http://pythonhosted.org/six/)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='[email protected]')
True
>>> tracker.reply(19, text='Do you know Starbucks?')
True
>>> tracker.logout()
TruePlease 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-rtGit repository:
git://git.nic.cz/python-rt.git