Skip to main content

generate_python

Function generate_python 

Source
pub fn generate_python(
    set: &SchemaSet,
    schema_yaml: &str,
) -> Result<String, CodegenError>
Expand description

Generate Python message classes for every message in set.

The output is pure Python (std enum only). It captures schema_yaml and field metadata so bindings can construct encoders/decoders without re-parsing application YAML. to_values/from_values round-trip through the engine’s JSON/Python value shape: bool/number/string/list and enum names.