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.4.tar.gz (11.2 kB view hashes)

Uploaded Source

Built Distribution

ncube_sdk-0.4-py3-none-any.whl (13.3 kB view hashes)

Uploaded Python 3

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