skip to navigation
skip to content

gazelleapi 0.1.4

Gazelle API

GazelleAPI is a handy interface for interacting with gazelle based trackers. This should work on Python 2 and 3.

It is based on whatapi and xanaxbetter.

Installation

Pip

pip install gazelleapi

Source

git clone https://github.com/itismadness/gazelleapi
cd gazelleapi
python setup.py install

Usage

>>> from gazelleapi import GazelleAPI
>>> api = GazelleAPI(username='user', password='pass', hostname='example.com')
>>> api.request('index')

To avoid having to always login to the site, we suggest using cookies in the following manner:

>>> from gazelleapi import GazelleAPI
>>> import pickle
>>> cookies = pickle.load(open('cookies.dat', 'rb'))
>>> api = GazelleAPI(username='user', password='pass', hostname='example.com', cookies=cookies)

and to save the cookie on an open session:

>>> pickle.dump(api.session.cookies, open('cookies.dat', 'wb'))
 
File Type Py Version Uploaded on Size
gazelleapi-0.1.4-py2.7.egg (md5) Python Egg 2.7 2016-12-20 13KB
gazelleapi-0.1.4-py3.4.egg (md5) Python Egg 3.4 2016-12-20 13KB
gazelleapi-0.1.4-py3.5.egg (md5) Python Egg 3.5 2016-12-20 13KB
gazelleapi-0.1.4.tar.gz (md5) Source 2016-12-20 5KB