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