liara.yaml

Module Contents

Functions

load_yaml

Load a Yaml document.

dump_yaml

Dump an object to Yaml.

API

liara.yaml.load_yaml(s: Union[bytes, IO, IO[bytes], Text, IO[Text]])

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: Optional[IO] = 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.