Skip to main content

A library to interact with the Ambient Labs Event Bus.

Project description

event-client

Typical usage example

options = ClientOptions(event_api_url="http://localhost:8000", connection_service_url="http://localhost:8001", api_token = "my_token")
client = Client(options)
await client.init_client() # ensure you are in an async context

# add subscriptions
await client.add_subscription(topic="test")

# read messages from subscriptions
async for message in client.subscribe():
    print(message)

# publish a message
message = MessageCreate(topic="my_topic", message="my_message")
await client.publish(message)

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

ambient_event_bus_client-0.1.0.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file ambient_event_bus_client-0.1.0.tar.gz.

File metadata

File hashes

Hashes for ambient_event_bus_client-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3b692ee519ce92af3cbd4741f7456b48c052980adf73108f54d606b46a0d1e10
MD5 d06f991760665b48d4f22bc2e57a3b1d
BLAKE2b-256 fb51b1fcb3d18efc307608ebab8958b2c9381cf507232df4ace8db36bf27019e

See more details on using hashes here.

File details

Details for the file ambient_event_bus_client-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ambient_event_bus_client-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2744599b0cefdaa9161ce7f8dcda7ae9c29b94af60c7c79e458f1d10cb2e0132
MD5 174e4f687d90479fe5363354fdc22729
BLAKE2b-256 2db06204cf6c4b0f30ba7ce8d60917dc4e814885418fcfe91bbe5cb8579fe3fa

See more details on using hashes here.

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