macro_rules! py_global {
($fn_name:ident, $python_module:literal, $python_class:literal) => { ... };
}
Expand description
Macro to generate a Python object lookup function with caching
§Arguments
$fn_name
- Name of the Rust function to generate$python_path
- Path to the Python object as a string (e.g., “module.submodule.function”)