Docs »

API »

Libraries »

Cerb Web-API Library for Python

The Python library for the Cerb API was contributed by CyberTechCafe-LLC:

Installation

Install the module from pip:


pip install cerbapi

Usage


from cerbapi import Cerb

cerb = Cerb(
        access_key='myaccesskey',
        secret='IdeallyDontStoreThisInYourCodeLikeThis',
        base='https://cerb.example/rest/'
        )

print(cerb.get_record('ticket', 1))
print(cerb.get_contexts())
print(cerb.search_records('comment', query='author.worker:Rob'))