Skip to content

Python SDK

The Python SDK (makaio-bus) provides a lightweight client for participating in the Makaio bus protocol over WebSocket. It is not published yet; install it from the framework workspace while developing locally.

From the standalone framework repository root, or from framework/ in the monorepo:

Terminal window
python -m pip install -e sdks/python
  • WebSocket transport lifecycle management
  • Wire envelope handling and request correlation
  • Typed subject emission, request handling, and subscription
  • Async/await API built on asyncio
import asyncio
from makaio import BusClient
async def main() -> None:
client = BusClient("ws://localhost:6252/bus")
await client.connect()
await client.emit("my.subject", {"key": "value"})
await client.close()
asyncio.run(main())

For full API details, see the SDK source.