Skip to main content

Module embedded

Module embedded 

Source
Expand description

Embedded Python execution using PyO3.

This module provides native Python execution by embedding the Python interpreter directly into the Rust daemon, eliminating subprocess overhead.

Key features:

  • Direct pytest.main() calls without subprocess spawn
  • Streaming results via custom pytest plugin
  • Module cache cleanup between runs
  • Signal handler and event loop management
  • Python 3.8+ support via abi3 stable ABI

Structsยง

EmbeddedExecutor
Embedded Python executor that runs pytest directly without subprocess.
EmbeddedExecutorConfig
Configuration for the embedded executor.
RustResultCollector
Rust-side result collector that receives results from the pytest plugin.