I have a python script that downloads file_content from repo using repo.get_contents. so I have used -
contents = repo.get_contents(
'./some_file.yaml', ref='master').decoded_content.decode()
And now I have the content of the yaml file as a string of - \nkey1:\n-a\n-b-n-c\nkey2
How can I convert it to dict with keys and values? Can I pull it to dict using the function? or convert this string somehow?