Skip to content

Instantly share code, notes, and snippets.

@cesarkawakami
Created September 28, 2015 19:16
Show Gist options
  • Save cesarkawakami/cea4f5508db213fa376e to your computer and use it in GitHub Desktop.
Save cesarkawakami/cea4f5508db213fa376e to your computer and use it in GitHub Desktop.
$ cat somefile.yaml
options:
preferences:
delay: 1
use_mouse: 1
async: 0
$ cat temp.py
import pprint
import yaml
with open("somefile.yaml", "rb") as f:
pprint.pprint(yaml.load(f.read()))
$ (workon temp && python temp.py)
{'options': {'preferences': {'async': 0, 'delay': 1, 'use_mouse': 1}}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment