the Official W3bstream Client for Python
Project description
w3bstream-client-python
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')
print(rsp.text)
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
hello_world_cc2-0.0.9.tar.gz
(9.3 kB
view hashes)
Built Distribution
Close
Hashes for hello_world_cc2-0.0.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 991cdffa92091b6941940bac9ac67843726887841209e42fde226df6904033b0 |
|
MD5 | ae37b747507b02a8f30fd1c942744609 |
|
BLAKE2b-256 | debd4537a5a2c9374109a69f5491dc75ed1c5cbc78dd5eecc7ce3ba63e961f32 |