kollabor-plugins
kollabor-plugins is the plugin framework for Kollabor.
It provides plugin discovery, safe instantiation, lifecycle management, status
collection, the base plugin class, and SDK helpers. Concrete plugins live in the
repo-level plugins/ directory or installed package plugin locations.
Current Role
- Discover plugin classes from development and installed plugin directories.
- Instantiate plugins with shared dependencies such as event bus, config, and services.
- Provide a stable
BasePluginlifecycle for initialization, hook registration, status, config widgets, and shutdown. - Collect plugin startup/status information without crashing the host app.
- Provide utility helpers for safe optional-method calls.
Architecture
| Module | Responsibility |
|---|---|
base.py |
BasePlugin lifecycle and default methods |
discovery.py |
plugin class discovery |
factory.py |
dependency-aware plugin construction |
registry.py |
plugin registration and lifecycle registry |
collector.py |
status/startup info collection |
plugin_sdk.py |
helper API for plugin authors |
plugin_utils.py |
safe calls, metadata, interface validation |
Plugin Shape
from kollabor_plugins import BasePlugin
class MyPlugin(BasePlugin):
name = "my_plugin"
version = "1.0.0"
description = "Adds one useful thing"
async def initialize(self, args=None, **kwargs):
return None
async def register_hooks(self):
return None
async def shutdown(self):
return None
Discovery order:
./plugins/- Installed package plugin locations.
Lifecycle:
- Discover plugin classes.
- Instantiate with dependencies.
- Call
initialize(). - Call
register_hooks(). - Call
shutdown()on app exit.
Known Gaps
- Plugin metadata and config schemas are partly convention-based; stronger typed metadata would help UI and docs generation.
- Discovery order and dependency injection behavior should be covered by more integration tests across local and installed plugin layouts.
- Plugin shutdown must remain best-effort and non-blocking; long-running plugin tasks need clearer ownership and cancellation guidance.
Roadmap
Phase 1: Authoring clarity
- Add a plugin author guide generated from real
BasePluginmethods. - Document config widget and status-line conventions.
- Add examples for hook-only, command, fullscreen, and background-task plugins.
Phase 2: Lifecycle hardening
- Add tests for plugin discovery, instantiation failures, and shutdown failures.
- Track plugin-owned tasks/resources explicitly.
- Make startup/status collection easier to inspect from CLI and engine surfaces.
Phase 3: Packaging and marketplace readiness
- Normalize plugin metadata fields for installed packages.
- Document compatibility/version expectations for plugins.
- Prepare a stable manifest format if plugins move toward external distribution.
Development
Targeted validation examples:
python -m py_compile packages/kollabor-plugins/src/kollabor_plugins/*.py
python -m pytest tests/unit/commands/test_all_command_handlers.py -q
Dependencies
kollabor-events
License
Apache-2.0
Metadata
Release files for kollabor-plugins 0.18.2
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 |
|---|---|---|---|---|
| kollabor_plugins-0.18.2.tar.gz | 18.8 kB | Without provenance | Details for kollabor_plugins-0.18.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| kollabor_plugins-0.18.2-py3-none-any.whl | Python 3 | none | any | Details for kollabor_plugins-0.18.2-py3-none-any.whl |
Total release size: 40.2 kB
Release files / kollabor_plugins-0.18.2.tar.gz
| Download URL | kollabor_plugins-0.18.2.tar.gz |
|---|---|
| Size | 18.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b5c3a07e350c9492320a6c4ebda25642024aaa502dc5769868cd179c1f0da749
|
|
BLAKE2b-256 checksum How to use checksums |
aec3e8d769e1ac9591861136482910a453bbc71b26295d2b303f998bf8130ff3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.8
|
Release files / kollabor_plugins-0.18.2-py3-none-any.whl
| Download URL | kollabor_plugins-0.18.2-py3-none-any.whl |
|---|---|
| Size | 21.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fcbe9bb42e7205b558e8e447a557780c83baa525c35edc81dc9b3a51e6254f5b
|
|
BLAKE2b-256 checksum How to use checksums |
73ff454e0f4fef4f3e36502ed602f9d7f36799410564637639c88d096d325f2e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.8
|
Security for kollabor-plugins 0.18.2
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.