Python client using the dsh HTTP API
pip install deepstreamio_client
from deepstreamio_client import Client
client = Client("https://api.deepstreamhub.com/api/v1", {
"token": "xxxx-xxxx-xxxx-xxxx"
})
Each separate statement sending new API call
response = client.set_record('user/johndoe', {"name": "John Doe"})
response = client.emit_event("refresh_users")
response = client.make_rpc("remove_user")
Set of batch operations that will be executed as a single request
response = client \
.start_batch()
.set_record('user/johndoe', {"name": "John Doe"}) \
.emit_event("refresh_users") \
.make_rpc("remove_user") \
.execute_batch() \
.reset_batch()
- use PBR and bumpversion
- documentation
- coverage