Skip to main content

A library to interact with the Ambient Labs Event Bus.

Project description

Ambient Event Bus 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.1.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

File details

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

File metadata

File hashes

Hashes for ambient_event_bus_client-0.1.1.tar.gz
Algorithm Hash digest
SHA256 ecd404ea113e63486cff758424ccb79810f249952b052ae2018c5daa70127d35
MD5 5ac71ab6d7ddb428d9f7c67e69555e35
BLAKE2b-256 754ea09e87c2b56e6c5850559cca93d7990847d3e9bd04f31839eec956cccdab

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ambient_event_bus_client-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 326f9dff256b0d78f9adcda6804f51c5b39d177ebcf40a50eaea2e990278c03b
MD5 be6f2d8bc378a61cc79ee4eea5ee97ac
BLAKE2b-256 8c5b0f2feeb1714e11b8e456a6f4ce9ef14e0d7191bbb268e9304727bee8f559

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