Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

HiveMind Bus Client

hivemind-bus-client connects a Python program to a hivemind-core hub. It extends the OVOS bus client with the HiveMind wire protocol: a Noise handshake, encrypted messages, and the HiveMind routing types. Every HiveMind satellite builds on it.

Install

uv pip install --prerelease=allow "hivemind-bus-client[async]"

The async extra adds websockets for AsyncHiveMessageBusClient. The sync client needs no extra.

Quickstart

On the hub, register the client. On the satellite, store the credentials under an application name, then send an utterance:

hivemind-core add-client --name docs-sat --access-key docs-key-0123 \
    --password "correct-horse-battery-staple-docs" --allow recognizer_loop:utterance
hivemind-client --app docs-sat set-identity --key docs-key-0123 \
    --password "correct-horse-battery-staple-docs" --host 127.0.0.1 --port 5678
from ovos_bus_client.message import Message
from hivemind_bus_client import HiveMessageBusClient
from hivemind_bus_client.identity import NodeIdentity

client = HiveMessageBusClient(identity=NodeIdentity(app_name="docs-sat"))
client.connect(handshake_max_retries=3)
client.emit_mycroft(Message("recognizer_loop:utterance",
                            {"utterances": ["hello hive"]},
                            {"destination": "skills"}))
reply = client.wait_for_mycroft("speak", timeout=5)
print(reply.msg_type, reply.payload.msg_type, reply.payload.data)
client.close()
bus speak {'utterance': 'you said hello hive'}

The answer comes from a test responder on the hub's OVOS bus. Install and connect shows the full setup.

Documentation

Page What you get there
Docs index The reading order and the wire size of each encoding
Install and connect A sync and an async round trip against a local hub
Identity Where credentials and keys live, and the shared-file refusal
CLI reference Every hivemind-client command and option
Messages Message types, payload rules and serialization
Routing and peers INTERCOM, trusted keys, QUERY, CASCADE and the hive map
Wire format The bit layout of a binary frame
Security Noise XXpsk2 and KKpsk0, key pinning and the PSK cache
HTTP client HiveMindHTTPClient for hubs that serve HTTP
Troubleshooting Each error message, its cause and the fix
Contributing Setup, tests and the rules for a change

License

Apache-2.0. See LICENSE.md.

Metadata

Release files for hivemind-bus-client 1.3.0a3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hivemind-bus-client 1.3.0a3
File Size Uploaded Provenance Actions
hivemind_bus_client-1.3.0a3.tar.gz 586.0 kB Without provenance Details for hivemind_bus_client-1.3.0a3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for hivemind-bus-client 1.3.0a3
File Interpreter ABI Platform Actions
hivemind_bus_client-1.3.0a3-py3-none-any.whl Python 3 none any Details for hivemind_bus_client-1.3.0a3-py3-none-any.whl

Total release size: 708.6 kB

Release files / hivemind_bus_client-1.3.0a3.tar.gz

Download URL hivemind_bus_client-1.3.0a3.tar.gz
Size 586.0 kB
Tags Source
SHA-256 checksum
How to use checksums
576d18eeac99a4b9726a532ca8bb9a82ea40c3afdfc7498c8cb4de301312a743
BLAKE2b-256 checksum
How to use checksums
207c1b1748966f9eb90793e841fe1171a2717786a5e93945639824533f084bd9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / hivemind_bus_client-1.3.0a3-py3-none-any.whl

Download URL hivemind_bus_client-1.3.0a3-py3-none-any.whl
Size 122.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8541a78b263813420f4999fb48742316dbe93be6e6788b7e93a1608598ece256
BLAKE2b-256 checksum
How to use checksums
05f1d00e820d69bb49e714a733eb4dfafc262b08395d8160c73761929cacbcd5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for hivemind-bus-client 1.3.0a3

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.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page