parse: YAML and JSON input handler
Code author: Peter Kraus
- dgpost.utils.parse.parse(fn: str) dict[str, Any]
Input file parsing function.
Supports loading
yaml
andjson
files using the recipe-parsing function and schema provided in thedgbowl_schemas.dgpost.recipe
module.- Parameters:
fn – Path to the filename to be parsed
- Returns:
ret – A dictionary representing the recipe.
- Return type:
dict[str, Any]