cerbapi-1.0.9
توضیحات
Python package for the Cerb.ai API
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | cerbapi-1.0.9 |
| نام | cerbapi |
| نسخه کتابخانه | 1.0.9 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Rob Adkerson |
| ایمیل نویسنده | r.j.adkerson@gmail.com |
| آدرس صفحه اصلی | https://github.com/CyberTechCafe-LLC/cerbapi |
| آدرس اینترنتی | https://pypi.org/project/cerbapi/ |
| مجوز | GNU General Public License v3.0 |
cerbapi
=======
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:
.. code:: bash
pip install cerbapi
In your python project import and create a Cerb instance
.. code:: python
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/
نحوه نصب
نصب پکیج whl cerbapi-1.0.9:
pip install cerbapi-1.0.9.whl
نصب پکیج tar.gz cerbapi-1.0.9:
pip install cerbapi-1.0.9.tar.gz