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.

Re-exports§

pub use errors::BridgeError;

Modules§

errors
plugin_invoker
Plugin invocation and execution

Structs§

Bridge

Constants§

PYTHON_BIN_DIR
The name of the binaries/scripts directory in a Python venv (e.g., “Scripts” on Windows, “bin” on Unix)
PYTHON_EXE
The name of the Python executable in a venv (e.g., “python.exe” on Windows, “python” on Unix)
PYTHON_LIB_DIR
The name of the library directory in a Python venv (e.g., “Lib” on Windows, “lib” on Unix)
SITE_PACKAGES
The subdirectory name for site-packages within the lib directory

Functions§

configure_python_venv
Configure the Python virtual environment before PyO3 initialization