Skip to content

yaml

Module to interact with yaml strings.

This module contains functions to convert dicts to yaml strings and yaml strings to dicts.

Typical usage example
dictionary = {"test": 1}
yaml_string = dump_yaml(dictionary)

dump_yaml

dump_yaml(dictionary)

Dump dictionary as yaml.

Parameters:

  • dictionary (typing.Dict) –

    Dictionary to dump.

Returns:

  • str

    String containing yaml with dictionary content.