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

Uploaded Source

Built Distribution

File details

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

File metadata

File hashes

Hashes for ambient_event_bus_client-1.1.2.tar.gz
Algorithm Hash digest
SHA256 f365894c2a01cad9b36680f9090f59a88e79a996a86d0d6aa43c254c3c982d61
MD5 59621e4073649068b973084c58e34097
BLAKE2b-256 6f52d94b10c520f3b5d9a83cac465aa168ec7feb624c2e38dd8aa7c2ea9a1635

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ambient_event_bus_client-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 09e8472e358b440d5914e5a6da680b7344ce6f0a2fa6b559cc3088aa97958bdd
MD5 3b9b30a90c1b896b67dad72b3f77c5ff
BLAKE2b-256 3814f5d2ee0beb045fa6692cc249f7cd6f9a182745ef5032a90bc775f82140e9

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