External Workflow I/O API
Solver-neutral external workflow serialization.
SchemaError
Bases: ValueError
Raised when a Tensyl external-workflow payload is malformed.
to_yaml(obj, *, units=None)
Serialize obj to a safe YAML string.
from_yaml(text)
Load a Tensyl object from a safe YAML string.
write_yaml(obj, path, *, units=None)
Write obj to path as safe YAML.
read_yaml(path)
Read a Tensyl object from a safe YAML file.
to_json(obj, *, units=None)
Serialize obj to a deterministic JSON string.
from_json(text)
Load a Tensyl object from a JSON string.
write_json(obj, path, *, units=None)
Write obj to path as JSON.
read_json(path)
Read a Tensyl object from a JSON file.