Skip to main content

A library to interact with the Ambient Labs Event Bus.

Project description

Ambient Event Bus Client

Typical usage example

from ambient_event_bus_client import Client, ClientOptions

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-1.1.0.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

ambient_event_bus_client-1.1.0-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for ambient_event_bus_client-1.1.0.tar.gz
Algorithm Hash digest
SHA256 96d1d061d9283ea80bca6cdc216c287b699cf5ae7aef53b27dc55e51e2054966
MD5 85570a47435058a055e11de6a2dcf5d8
BLAKE2b-256 7cf6934ba1dcfdb86a99726c47ecbb75e4bb0b33eb86448756385b6b66f5342c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ambient_event_bus_client-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9610f581fe129a11bd07e26d4baa9f48dd3088a4f131044cf563e46be4055b9f
MD5 0bd35c1232aea0f18256e8c912121f51
BLAKE2b-256 6a276d03f047337330a9b7b8b3318c7f66882072f280aa3c373db4259798e442

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