parse: YAML and JSON input handler

Code author: Peter Kraus

dgpost.utils.parse.parse(fn)

Input file parsing function.

Supports loading yaml and json files using the recipe-parsing function and schema provided in the dgbowl_schemas.dgpost.recipe module.

Parameters:

fn (str) – Path to the filename to be parsed

Returns:

ret – A dictionary representing the recipe.

Return type:

dict[str, Any]