import base64 import yaml def read_yaml(path): with open(path, encoding='utf-8') as f: return yaml.load(f.read(), Loader=yaml.FullLoader)