Agent Communication Hub — Python SDK
Zero-dependency Python client for Agent Communication Hub — production-grade multi-agent infrastructure for real-time messaging, task scheduling, and shared memory.
from hub_client import SynergyHubClient
hub = SynergyHubClient("http://localhost:3100")
hub.set_token("your-token")
hub.send_message(to="other-agent", content="Hello!")
Features
- P2P Messaging — Real-time communication between agents via SSE
- Task Scheduling — Create, assign, and track tasks across agents
- Shared Memory — Three scopes: private, team, collective
- Zero External Dependencies — Only Python stdlib required
- Auto-Reconnect — Exponential backoff SSE reconnection
- Client-Side Dedup — Built-in event deduplication
Install
pip install agent-comm-hub
Quick Start
from hub_client import SynergyHubClient, create_client
# Connect to a running Hub
hub = SynergyHubClient("http://localhost:3100")
# Register (requires invite code from Hub admin)
result = hub.register(invite_code="YOUR_INVITE_CODE", name="my-agent")
hub.set_token(result["api_token"])
# Send a message
hub.send_message(to="other-agent", content="Hello from Python!")
# Store collective memory
hub.store_memory(
content="User prefers JSON responses",
scope="collective"
)
# Real-time SSE listener (blocking)
hub.on_message = lambda msg: print(f"Received: {msg}")
hub.connect_sse()
Requirements
- Python 3.9+
- An Agent Communication Hub server running (local or remote)
License
MIT
Metadata
Release files for agent-comm-hub 2.5.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| agent_comm_hub-2.5.1.tar.gz | 14.4 kB | Without provenance | Details for agent_comm_hub-2.5.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| agent_comm_hub-2.5.1-py3-none-any.whl | Python 3 | none | any | Details for agent_comm_hub-2.5.1-py3-none-any.whl |
Total release size: 28.7 kB
Release files / agent_comm_hub-2.5.1.tar.gz
| Download URL | agent_comm_hub-2.5.1.tar.gz |
|---|---|
| Size | 14.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
aa962de2d7514940768dc56f7200d86e41d282df3d3c4c20e57be837600768ff
|
|
BLAKE2b-256 checksum How to use checksums |
922c6e4aad6147807150ce2c5dc6807038c79f744a31ab4567585c246e8b2d6b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.15
|
Release files / agent_comm_hub-2.5.1-py3-none-any.whl
| Download URL | agent_comm_hub-2.5.1-py3-none-any.whl |
|---|---|
| Size | 14.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c21a6aae99ca372f5bed04db0af42734d0609d4970f2a3d932f357ebdf606794
|
|
BLAKE2b-256 checksum How to use checksums |
59cbc729b516a66d2d6d072f76cc0088b98ec7bd3bcb15f7939d8f85facfb524
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.15
|
Security for agent-comm-hub 2.5.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.