Skip to main content
Pre-release

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

HiveMind Plugin Manager

Full documentation: docs/README.md | Getting Started | Concepts | API Reference | Contributing

The HiveMind Plugin Manager (HPM) discovers, manages, and loads plugins for the HiveMind ecosystem. It defines plugin types for databases, network protocols, agent protocols, binary data handlers, and admission policies. HPM loads these plugins at runtime, so HiveMind agents can swap a backend without changing core code.

Features

  • Plugin discovery: find and load plugins of different types, including:

    • Database plugins: JSON, SQLite, and Redis.
    • Agent protocol plugins: OVOS and Persona, for communication between HiveMind agents.
    • Network protocol plugins: WebSockets, for distributed communication.
    • Binary data handler plugins: binary data communication, like audio data over HiveMind.
  • Plugin loading: load a specific plugin by name, type, or from an available entry point.

  • Factories for plugin instantiation: each plugin type (database, agent protocol, network protocol, binary protocol) has a factory that creates instances from a user configuration.

Installation

pip install hivemind-plugin-manager

Usage

The examples below show how to discover and load plugins, and how to create instances with the provided factories.

Discovering plugins

Use the find_plugins function to discover all available plugins for a specific type:

from hivemind_plugin_manager import find_plugins, HiveMindPluginTypes

# Find all database plugins
database_plugins = find_plugins(HiveMindPluginTypes.DATABASE)
print(database_plugins)

# Find all agent protocol plugins
agent_protocol_plugins = find_plugins(HiveMindPluginTypes.AGENT_PROTOCOL)
print(agent_protocol_plugins)

Creating plugin instances

Each plugin type has a factory class that creates plugin instances with the required configuration.

Database Plugin Factory

from hivemind_plugin_manager import DatabaseFactory

# Create an instance of a database plugin
db_instance = DatabaseFactory.create("hivemind-redis-db-plugin", password="Password1!", host="192.168.1.11", port=6789)

Agent Protocol Factory

from hivemind_plugin_manager import AgentProtocolFactory

# Create an agent protocol instance
agent_protocol_instance = AgentProtocolFactory.create("hivemind-ovos-agent-plugin")

Network Protocol Factory

from hivemind_plugin_manager import NetworkProtocolFactory

# Create a network protocol instance
network_protocol_instance = NetworkProtocolFactory.create("hivemind-websocket-plugin")

Binary Data Handler Protocol Factory

from hivemind_plugin_manager import BinaryDataHandlerProtocolFactory

# Create a binary data handler protocol instance
binary_data_handler_instance = BinaryDataHandlerProtocolFactory.create("hivemind-audio-binary-protocol-plugin")

Plugin Types

HiveMind Plugin Manager

1. Database plugins

Supports multiple database systems:

2. Agent protocol plugins

Supports communication protocols for agents:

3. Network protocol plugins

Supports network communication protocols:

4. Binary data handler protocol plugins

Handles binary data, like audio, with a specialized protocol (hivemind-audio-binary-protocol).

License

See LICENSE.md.

Metadata

Release files for hivemind-plugin-manager 0.10.0a1

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-plugin-manager 0.10.0a1
File Size Uploaded
hivemind_plugin_manager-0.10.0a1.tar.gz 31.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for hivemind-plugin-manager 0.10.0a1
File Interpreter ABI Platform
hivemind_plugin_manager-0.10.0a1-py3-none-any.whl Python 3 none any Details

Total release size: 54.1 kB

Release files / hivemind_plugin_manager-0.10.0a1.tar.gz

Download URL hivemind_plugin_manager-0.10.0a1.tar.gz
Size 31.0 kB
Tags Source
SHA-256 checksum
How to use checksums
7a46b34f6ed51d8b1d66711d7078add0234c1dabc74a938a5fd667e1dc014ac0
BLAKE2b-256 checksum
How to use checksums
8d544d814cca71e604f07caab576554bb55bc9da18e1d9cab86ae82b3f0e8528
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / hivemind_plugin_manager-0.10.0a1-py3-none-any.whl

Download URL hivemind_plugin_manager-0.10.0a1-py3-none-any.whl
Size 23.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a76cf938c9f31ecdb37661c1bfb47131307a213bf60eeb2a5520cf18a67c7d0c
BLAKE2b-256 checksum
How to use checksums
0d7dcddaf3f0efe5a5e0dfd100400529b60c1950d2fad574d79f271cfbd92b30
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14
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