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, and binary data handlers. 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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hivemind_plugin_manager-0.9.0a5.tar.gz (30.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hivemind_plugin_manager-0.9.0a5-py3-none-any.whl (22.8 kB view details)

Uploaded Python 3

File details

Details for the file hivemind_plugin_manager-0.9.0a5.tar.gz.

File metadata

File hashes

Hashes for hivemind_plugin_manager-0.9.0a5.tar.gz
Algorithm Hash digest
SHA256 5f13c72fd5345bf8f9503e1a041a7bdf0d502329927a06146c6b95a8fa212660
MD5 c33ffe12cb61249d64d60e6540ca3186
BLAKE2b-256 23785facee3dd5384c3fc600fecaf1289999912f6ab0bac662688cba398b9cd7

See more details on using hashes here.

File details

Details for the file hivemind_plugin_manager-0.9.0a5-py3-none-any.whl.

File metadata

File hashes

Hashes for hivemind_plugin_manager-0.9.0a5-py3-none-any.whl
Algorithm Hash digest
SHA256 a8822088ecab056d2abeae32bf89a1f8d32a0e2e8cc206ff57b5dc85307f2bef
MD5 dd9a1cad6e68cd9df319d4281d3e0cd9
BLAKE2b-256 5a3f84aa791917f5e48522bb9c6ab3b18e23d716caaece4b873150f470e021ee

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page