Skip to main content

Module runtime

Module runtime 

Source
Expand description

CPython interpreter management and foreign function execution.

This module owns the Python interpreter lifecycle and implements the core LanguageRuntime operations: init, compile, invoke, dispose.

When the pyo3 feature is enabled, this uses pyo3 to embed CPython. Without it, all operations return stub errors.

Structs§

CompiledFunction
Opaque handle to a compiled Python function.
PythonRuntime
The Python runtime instance. One per init() call.

Functions§

python_compile
python_dispose_function
python_drop
python_free_buffer
python_get_lsp_config
python_init
python_invoke
python_language_id
python_register_types