towhee.utils.yaml_utils.dump_yaml

towhee.utils.yaml_utils.dump_yaml(data: Union[str, Dict, List], stream=None)[source]

Dump YAML file as python object.

Parameters:
  • data (Union[str, Dict, List]) – The data to write into a YAMl file.

  • stream – The stream to dump the YAML into.