Metadata-Version: 2.0
Name: rt
Version: 1.0.10
Summary: Python interface to Request Tracker API
Home-page: https://github.com/CZ-NIC/python-rt
Author: Jiri Machalek
Author-email: edvard.rejthar@nic.cz
License: GNU General Public License (GPL)
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Operating System :: POSIX
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.2
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Project-URL: Bug Tracker, https://github.com/CZ-NIC/python-rt/issues
Requires-Dist: nose
Requires-Dist: requests
Requires-Dist: six

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

==============================================
 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)
- 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='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    



