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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ambient_event_bus_client-1.1.4.tar.gz.
File metadata
- Download URL: ambient_event_bus_client-1.1.4.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.23
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
92534a29cffe4bc6c51f881cb47b592f1a5c9247b1f25ee84d59190c4b97e744
|
|
| MD5 |
9a0c19997c722d8443447f0659755779
|
|
| BLAKE2b-256 |
1dfaf01c959d584d700f34b927e9c60a5c0ffcb0bad927e1717aacf40eab7827
|
File details
Details for the file ambient_event_bus_client-1.1.4-py3-none-any.whl.
File metadata
- Download URL: ambient_event_bus_client-1.1.4-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.23
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dd73944461fb46224ef9f5d0753e7e99aa1dd857bc514fbe3f2b7d5e2999e80e
|
|
| MD5 |
ceb2010567b3da34fb9254bc3afb2315
|
|
| BLAKE2b-256 |
773d9ad2295240b02416ce8bd6781ff964d6909f978ebc6e0197d759bc96934a
|