resume/processing/yml.py

9 lines
154 B
Python

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