deepstreamio_client

Python client using the dsh HTTP API


Keywords
deepstream
License
MIT
Install
pip install deepstreamio_client==0.1.1

Documentation

deepstream.io-client-python

Build Status

Python client using the dsh HTTP API

Installation

pip install deepstreamio_client

Examples

from deepstreamio_client import Client

client = Client("https://api.deepstreamhub.com/api/v1", {
    "token": "xxxx-xxxx-xxxx-xxxx"
})

Non batched request

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")

Batched request

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()

Todo's

  • use PBR and bumpversion
  • documentation
  • coverage