Skip to content

Generate Abc

hexa.generate_abc

Generate _abc.py source from a hexa PortNode tree.

Classes

Functions

generate_abc

1
2
3
generate_abc(
    node: PortNode, out_path: str | Path | None = None
) -> str

Generate ABC Python source from a :class:PortNode tree.

Parameters

node : PortNode The root of the parsed YAML (or generated) tree. out_path : str | Path | None Optional file path to write the generated source to.

Returns

str The generated Python source code.