Skip to main content

generate_python_package

Function generate_python_package 

Source
pub fn generate_python_package(
    modules: &[&Module],
    bodies: &HashMap<String, Vec<Stmt>>,
    use_jax: bool,
) -> String
Expand description

Generate a full Python module source for the given telos modules.

bodies maps function names to their verified body statements. use_jax adds JAX/NumPy imports and type annotations.