Generate Abc
hexa.generate_abc
Summary
Generate _abc.py source from a hexa PortNode tree.
Classes
Functions
generate_abc
Generate ABC Python source from a :class:PortNode tree.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
node |
PortNode
|
The root of the parsed YAML (or generated) tree. |
required |
out_path |
str | Path | None
|
Optional file path to write the generated source to. |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
The generated Python source code. |