Skip to content

Working with Python

Installation

To install the current release:

$ pip install statit_py

Quick usage

To use the Statit REST API methods, first authenthicate yourself with your username and API token (see Signing-in):

import statit_py

statitAPI = statit_py.coreAPI('<username>', '<api_key>')

GET, LIST and DELETE actions for collections and series are available in reference-by-ID format:

data = statitAPI.getSerie('<serie_id>')

Alongside with the remaining PUT and all their respective batch actions, they are also available in standard JSON request format:

statitAPI.putSerieJSON({
    'id': '<serie_id>',
    ...
})

Docs