Expand description
pro-plugin: Plugin SDK for Pro Python package manager
This crate provides the plugin system for Pro:
- WebAssembly plugin host (Extism)
- Lifecycle hooks (pre-resolve, post-resolve, pre-build, post-build, pre-publish)
- Sandboxed execution with capability-based permissions
§Configuration
Plugins can be configured in pyproject.toml:
[tool.rx.plugins.my-plugin]
source = "./plugins/my-plugin.wasm"
enabled = true
[tool.rx.plugins.my-plugin.permissions]
read_files = true
network = false
[tool.rx.plugins.my-plugin.settings]
option1 = "value"Structs§
- Hook
Context - Context passed to hook functions
- Hook
Result - Result returned from hook execution
- Loaded
Plugin - A loaded plugin
- Plugin
Config - Plugin configuration from pyproject.toml [tool.rx.plugins]
- Plugin
Host - Plugin host that manages Wasm plugins
- Plugin
Manifest - Plugin manifest (plugin.toml or embedded in wasm)
- Plugin
Permissions - Permissions that a plugin can request
Enums§
- Hook
- Available lifecycle hooks
- Plugin
Error - Plugin-specific errors
Type Aliases§
- Plugin
Result - Result type for plugin operations