Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
import yaml
def yaml_loader(filepath):
with open(filepath, 'r') as f:
data = yaml.load(f)
return data
def yaml_dump(filepath, data):
with open(filepath, 'w+') as f:
yaml.dump(data, f)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.