Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

chinoscriba-1.0.1.tar.gz (24.6 kB view details)

Uploaded Source

Built Distribution

chinoscriba-1.0.1-py3-none-any.whl (37.8 kB view details)

Uploaded Python 3

File details

Details for the file chinoscriba-1.0.1.tar.gz.

File metadata

  • Download URL: chinoscriba-1.0.1.tar.gz
  • Upload date:
  • Size: 24.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.9

File hashes

Hashes for chinoscriba-1.0.1.tar.gz
Algorithm Hash digest
SHA256 797766af78056821f97f6550db33e6ad82c3868e2f3ff64dc64b16794650e57a
MD5 2842aa67f091c4233688cf323d74bd1f
BLAKE2b-256 f899407282e6d714337244e9009e753f22bd49fba9a608a3d709c13071b2233b

See more details on using hashes here.

File details

Details for the file chinoscriba-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: chinoscriba-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 37.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.9

File hashes

Hashes for chinoscriba-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5ee575f5a148ad747afe449f464d01f35e53cb16d726812aac648624b1410cab
MD5 eca27c61dbb13abd6aff79109a5c5988
BLAKE2b-256 7970ab7a15089bfc98e73f3d71d8544839b1a26fe15fb3c73954420b1378bc08

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