Weclome to ToyYaml ToyYaml is a yaml format reader. ##Usage: import toyyaml dict_data = toyyaml.load(open("config.yml", "r")) or import toyyaml dict_data = toyyaml.loads(yaml_string)