Skip to main content

Crate r2x_python

Crate r2x_python 

Source
Expand description

Python-Rust bridge for plugin execution

This bridge provides a minimal, focused interface for:

  1. Loading plugin package metadata via entry points
  2. Executing plugins with configuration

Plugin discovery uses AST-based analysis instead of runtime inspection, making it more efficient and reducing Python interpreter overhead.

§PYTHONHOME Configuration

PYTHONHOME is resolved from the venv’s pyvenv.cfg file to ensure compatibility with PyO3 (which is linked at build time). This avoids version mismatches between the discovered Python and the compiled binary.

Modules§

errors
plugin_invoker
Plugin invocation and execution
python_bridge
Python bridge initialization with venv-based configuration
utils
Utility constants and functions for platform-specific Python venv path handling