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).

Related projects

License

See LICENSE.md.

Metadata

Release files for hivemind-plugin-manager 0.9.0a8

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.9.0a8
File Size Uploaded
hivemind_plugin_manager-0.9.0a8.tar.gz 30.3 kB Details

Built distribution (wheel)

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

Total release size: 53.2 kB

Release files / hivemind_plugin_manager-0.9.0a8.tar.gz

Download URL hivemind_plugin_manager-0.9.0a8.tar.gz
Size 30.3 kB
Tags Source
SHA-256 checksum
How to use checksums
580c60c8b57ee53eb1f62f8df633e6a2ad66b69b2a22b3c0eb24ff1977ed8e09
BLAKE2b-256 checksum
How to use checksums
77474c57d72733d24b5b1d9e4a18a1f308957933f158ea0caf9d143ab8077603
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.9.0a8-py3-none-any.whl

Download URL hivemind_plugin_manager-0.9.0a8-py3-none-any.whl
Size 22.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f60e0f77e8e21ddf73f70cc1322acf3c58c6f5901e94ccc26ebfc353b3c3a892
BLAKE2b-256 checksum
How to use checksums
76feef82ef5d911bda89ae2ee510a5891dc3bd263e9c651553cce61972ce2fb1
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