Skip to main content

generate_python_client

Function generate_python_client 

Source
pub fn generate_python_client(
    models: &HashMap<String, ModelIr>,
    schema_path: &str,
    is_async: bool,
) -> String
Expand description

Generate Python client file with model delegates.

is_async determines whether the generated Nautilus class exposes an async context manager (async with Nautilus(...) as db) or a sync one (with Nautilus(...) as db).