Skip to main content

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


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)

Uploaded source

Built Distribution

ncube_sdk-0.3-py3-none-any.whl (13.0 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page