resume/processing/yml.py

10 lines
154 B
Python
Raw Permalink Normal View History

import yaml
DEFAULT_FILE = "content.yml"
def parse(fname: str = DEFAULT_FILE):
with open(fname, mode="rb") as f:
return yaml.safe_load(f)