Skip to main content

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/

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.

Release history Release notifications | RSS feed

This release

1.0.9 This release

1 file

1.0.8

1 file

1.0.7

1 file

1.0.6

1 file

1.0.5

1 file

1.0.4

1 file

1.0.3

1 file

1.0.2

1 file

1.0.1

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page