Skip to content

cloacina-python::runtime_impl

Rust

cloacina-python’s implementation of cloacina::python_runtime::PythonRuntime.

A process that wants Python support (the server today, any future Python-enabled service) calls install at startup to register this runtime into cloacina core’s dispatch slot. After that, uploaded Python packages are loaded through the runtime just like Rust ones are loaded through fidius.

pub

Zero-state runtime — every method thin-wraps the crate-local helpers.

pub

fn install()

Install CloacinaPythonRuntime as this process’s Python runtime. Idempotent — subsequent calls are no-ops. Call once at startup from any binary that wants to load Python packages.

Source
pub fn install() {
register_python_runtime(Arc::new(CloacinaPythonRuntime));
}