[−][src]Crate pyembed
Control an embedded Python interpreter.
The pyembed crate contains functionality for controlling an embedded
Python interpreter running in the current process.
While this crate is conceptually generic and can be used as a high-level
manager of an embedded Python interpreter (it has a high-level API that
makes running an embedded Python interpreter relatively easy), the crate
was designed for use with PyOxidizer.
If you are leveraging the advanced features like the module importer that can
import modules from memory using 0-copy, you probably want to use this crate
with PyOxidizer.
The most important types in this crate are
PythonConfig and
MainPythonInterpreter. A PythonConfig
defines how a Python interpreter is to behave. A MainPythonInterpreter
creates and manages that interpreter and serves as a high-level interface for
running code in the interpreter.
Structs
| ExtensionModule | Defines an extra extension module to load. |
| MainPythonInterpreter | Manages an embedded Python interpreter. |
| PythonConfig | Holds the configuration of an embedded Python interpreter. |
Enums
| PythonRawAllocator | Defines which allocator to use for the raw domain. |
| PythonRunMode | Defines Python code to run. |
| TerminfoResolution | Defines `terminfo`` database resolution semantics. |