liara.yaml

Module Contents

Functions

load_yaml

Load a Yaml document.

dump_yaml

Dump an object to Yaml.

API

liara.yaml.load_yaml(s: bytes | IO | IO[bytes] | str | IO[str])

Load a Yaml document.

This is a helper function which tries to use the fast CLoader implementation and falls back to the native Python version on failure.

liara.yaml.dump_yaml(data, stream: IO | None = None)

Dump an object to Yaml.

This is a helper function which tries to use the fast CDumper implementation and falls back to the native Python version on failure.