N-cube Event Ingest SDK
Project description
N-cube Python SDK
Install
pip install ncube-sdk
Use
import os
import ncube_sdk.client
# initialize
client = ncube_sdk.client.init(
service_url=os.environ["INGEST_URL"],
schema_id=os.environ["INGEST_SCHEMA_ID"],
service_auth=(os.environ["INGEST_AUTH_USER"], os.environ["INGEST_AUTH_PASS"]))
# emit events
client.emit({"field1": "value1", "field2": "value2"})
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
ncube-sdk-0.3.tar.gz
(10.9 kB
view hashes)
Built Distribution
ncube_sdk-0.3-py3-none-any.whl
(13.0 kB
view hashes)