0
mrmax rieger
0 Comments
import yaml with open("test.yml", "r") as stream: try: y_structure = yaml.safe_load(stream) # will be dict of dict / list etc. print(type(y_structure)) print(yaml.dump(y_structure, default_flow_style=False)) except yaml.YAMLError as exc: print(exc)