Skip to main content

the Official W3bstream Client for Python

Project description


The Python Client for W3bstream integration on server

Getting started

Install w3bstream-client-python via pip3

pip3 install w3bstream-client-python
pip3 install typeguard
pip3 install requests

Example Code

Publish Event Synchronously

from w3bstream_client_python import Client, Header

# the http_route, project and api_key are obtained on W3bstream-Studio
client = Client("http_route", "project", "api_key")
# device_id is the identity for the device
# payload can be an empty string if served as a heartbeat
header = Header('device_id')
rsp = client.publish_event_sync(header, b'payload')

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

hello_world_cc2-0.0.9.tar.gz (9.3 kB view hashes)

Uploaded Source

Built Distribution

hello_world_cc2-0.0.9-py3-none-any.whl (11.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