Chino.io Scriba SDK Python
Project description
chinoscriba
Chino.io :: Scriba Documentation: the Application Programming Interface
This Python package is automatically generated by the Swagger Codegen project:
- API version: v1
- Package version: 1.0.0
- Build package: io.swagger.codegen.v3.generators.python.PythonClientCodegen
Requirements.
Python 2.7 and 3.4+
Installation & Usage
Install the generated package (see on top here or):
pip install chinoscriba
Getting Started
import chinoscriba
from chinoscriba.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: Basic
configuration = chinoscriba.Configuration()
configuration.username = 'customer_id'
configuration.password = 'customer_key'
# create an instance of the API class
api_instance = chinoscriba.DefaultApi(chinoscriba.ApiClient(configuration))
limit = 56 # int | Number of results to return per page
offset = 0 # int | The initial index from which to return the results
# # Audit logs # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# Create a new Log
body = chinoscriba.AuditLog() # AuditLog |
try:
api_response = api_instance.logs_create(body)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->logs_create: %s\n" % e)
# Create multiple Logs (bulk)
body = [chinoscriba.AuditLog()] # list[AuditLog] |
try:
api_response = api_instance.logs_multiple(body)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->logs_multiple: %s\n" % e)
try:
# List all Logs
api_response = api_instance.logs_list(limit=limit, offset=offset)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->logs_list: %s\n" % e)
try:
# Search by query
api_response = api_instance.logs_search(body, limit=limit, offset=offset)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->logs_search: %s\n" % e)
try:
# Retrieve customer statistics
api_response = api_instance.stats_read()
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->stats_read: %s\n" % e)
# # Exporter # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
try:
# List exportable Blocks
api_response = api_instance.exported_list(limit=limit, offset=offset)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->exported_list: %s\n" % e)
# Export a Block
block_id = "" # string | ID of the Block to download
try:
api_instance.exported_read(block_id)
except ApiException as e:
print("Exception when calling DefaultApi->exported_read: %s\n" % e)
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
chinoscriba-0.0.0.2.tar.gz
(24.4 kB
view hashes)
Built Distribution
Close
Hashes for chinoscriba-0.0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d3a4950e54a410b9a6a61a775237b7cb982ae49a4265d278e2f88f9b038bf33 |
|
MD5 | 796dc2a8b52d2186e895bf0e29264d06 |
|
BLAKE2b-256 | 9020a549c2107dfb0f3a02998b4b4f897bbf98768bcca8367627254cf4eeed31 |