save_yaml

save_yaml(input_dict, output_path='output.yaml')[source]

Save dictionary as yaml.

Parameters
  • input_dict (dict) – A variable of type ‘dict’

  • output_path (str or pathlib.Path) – Path to save the output file

Returns:

Examples

>>> from tiatoolbox import utils
>>> input_dict = {'hello': 'Hello World!'}
>>> utils.misc.save_yaml(input_dict, './hello.yaml')