Skip to content

Instantly share code, notes, and snippets.

@hmleal
Created September 26, 2016 20:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hmleal/b9872b761206fcb441fd0861e2d05d89 to your computer and use it in GitHub Desktop.
Save hmleal/b9872b761206fcb441fd0861e2d05d89 to your computer and use it in GitHub Desktop.
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