Skip to content

Instantly share code, notes, and snippets.

@abhinavshaw1993
Created February 19, 2018 20:04
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 abhinavshaw1993/941cdb11166410147dfd024e3d71a857 to your computer and use it in GitHub Desktop.
Save abhinavshaw1993/941cdb11166410147dfd024e3d71a857 to your computer and use it in GitHub Desktop.
YAML Parser Pthon.
# Install pyyaml trhough conda or pip first.
import yaml
with open("../resources/config.yml", "r") as ymlfile:
cfg = yaml.load(ymlfile)
# cfg is a nested dictionary
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment