Skip to main content

odcs.write()

Write export(node, **kwargs) to path: JSON for a .json file,

Usage

Source

odcs.write(
    node,
    path,
    **kwargs,
)

YAML otherwise (which needs PyYAML: pip install sverify[odcs]).

Parameters

node: Node

The node, as for export.

path: str | Path

The file to write.

**kwargs: Any
export’s keyword arguments.

Returns

dict[str, Any]
The document written.