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_cc-0.0.4.tar.gz
(9.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hello_world_cc-0.0.4.tar.gz.
File metadata
- Download URL: hello_world_cc-0.0.4.tar.gz
- Upload date:
- Size: 9.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
45dd9d72ca9502344076551f0e4bffb11cdcd445135c5422279057e9fabbea88
|
|
| MD5 |
a2cd64afcd3939f7172d6a07c4176406
|
|
| BLAKE2b-256 |
6518ca1c04fe992084874d4c99caf97af25d7551682cd64d9381d75a0a8fa492
|
File details
Details for the file hello_world_cc-0.0.4-py3-none-any.whl.
File metadata
- Download URL: hello_world_cc-0.0.4-py3-none-any.whl
- Upload date:
- Size: 11.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ede71ac2dc22fe24f86f8f1f76ab203d0944fc1b204de6caee7c3f6a7bfe60e1
|
|
| MD5 |
693b948ffb61ec5f56cdb49ed7f57a77
|
|
| BLAKE2b-256 |
1416388cc5eadac69804ee39b5521543167bb319a88d599a74beb7c7c29875e3
|