Skip to main content

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.

Source Distribution

cerbapi-1.0.9.tar.gz (4.9 kB view details)

Uploaded Source

File details

Details for the file cerbapi-1.0.9.tar.gz.

File metadata

  • Download URL: cerbapi-1.0.9.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for cerbapi-1.0.9.tar.gz
Algorithm Hash digest
SHA256 677c467d5bf3224b4c71ea44f502eafafb668c261648782ccf1b98e52454bdb0
MD5 a6e8ea0cdfa0d9ba2cd70642b1d33ce0
BLAKE2b-256 d34d933ac749afcd719acef1926745deb61a14c791fc812cae1918277707c78b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page