Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

Python package for the Cerb.ai API

Project description

A Python wrapper for the Cerb.ai API.

Usage

Enable the API and generate an API key-pair using the instructions provided by Cerb.ai: https://cerb.ai/guides/api/configure-plugin/

In your python environment, install cerbapi:

pip install cerbapi

In your python project import and create a Cerb instance

from cerbapi import Cerb

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

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

For details on interacting with the API visit the website: https://cerb.ai/docs/api/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for cerbapi, version 1.0.8
Filename, size File type Python version Upload date Hashes
Filename, size cerbapi-1.0.8.tar.gz (4.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page