Skip to main content

Crate pro_plugin

Crate pro_plugin 

Source
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§

HookContext
Context passed to hook functions
HookResult
Result returned from hook execution
LoadedPlugin
A loaded plugin
PluginConfig
Plugin configuration from pyproject.toml [tool.rx.plugins]
PluginHost
Plugin host that manages Wasm plugins
PluginManifest
Plugin manifest (plugin.toml or embedded in wasm)
PluginPermissions
Permissions that a plugin can request

Enums§

Hook
Available lifecycle hooks
PluginError
Plugin-specific errors

Type Aliases§

PluginResult
Result type for plugin operations