pyembed Rust Crate¶
pyembed Rust crate facilitates the control of an embedded Python
The crate provides an API for instantiating and controlling an embedded Python interpreter. It also defines a custom meta path importer that can be used to import Python resources (such as module bytecode) from memory.
The crate is developed alongside the PyOxidizer project. However, it is a generic crate and can be used outside the context of PyOxidizer.
pyembed crate is
published to crates.io and its Rust
documentation is available at https://docs.rs/pyembed.
- Controlling Python from Rust Code
- Adding Extension Modules At Run-Time
- Python Interpreter Configuration Data Structures