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
Release history Release notifications | RSS feed
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)
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 677c467d5bf3224b4c71ea44f502eafafb668c261648782ccf1b98e52454bdb0 |
|
MD5 | a6e8ea0cdfa0d9ba2cd70642b1d33ce0 |
|
BLAKE2b-256 | d34d933ac749afcd719acef1926745deb61a14c791fc812cae1918277707c78b |