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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for ambient_event_bus_client-1.1.4.tar.gz
Algorithm Hash digest
SHA256 92534a29cffe4bc6c51f881cb47b592f1a5c9247b1f25ee84d59190c4b97e744
MD5 9a0c19997c722d8443447f0659755779
BLAKE2b-256 1dfaf01c959d584d700f34b927e9c60a5c0ffcb0bad927e1717aacf40eab7827

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ambient_event_bus_client-1.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 dd73944461fb46224ef9f5d0753e7e99aa1dd857bc514fbe3f2b7d5e2999e80e
MD5 ceb2010567b3da34fb9254bc3afb2315
BLAKE2b-256 773d9ad2295240b02416ce8bd6781ff964d6909f978ebc6e0197d759bc96934a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page