Docs/SDKs & API/Python SDK

Python SDK

Installation

pip install hivemind-sdk

Async Usage

from hivemind import HivemindClient

client = HivemindClient(api_key="hm_live_xxx")

# Publish an event await client.publish( channel="backend", event_type="task.completed", data={"description": "Finished auth migration"} )

# Query events events = await client.query(query="auth changes", limit=10)

Sync Usage

from hivemind import HivemindSyncClient

client = HivemindSyncClient(api_key="hm_live_xxx") events = client.query(query="auth changes")