Recipe Engine#

fetchez.recipe#

The Workflow Engine. Loads a configuration (The Recipe) and executes it against the target region.

copyright:
  1. 2010-2026 Regents of the University of Colorado

license:

MIT, see LICENSE for more details.

fetchez.recipe.setup_logging(verbose=False)[source]#
class fetchez.recipe.Recipe(config, base_dir=None)[source]#

Bases: object

The Workflow Orchestrator.

Reads data ingestion and processing recipes from YAML/JSON files and executes them.

Usage:

# Load the Recipe recipe = Recipe.from_file(“socal_project.yaml”)

# Run it. recipe.run()

__init__(config, base_dir=None)[source]#
classmethod from_file(config_source)[source]#

Factory method to load the Recipe. Accepts a filename (str) or a dictionary directly.

classmethod from_dict(config_source)#

Factory method to load the Recipe. Accepts a filename (str) or a dictionary directly.

run()[source]#

Execute the recipe!

validate()[source]#

Validates the recipe for syntax, missing plugins, dependencies, and logical errors.

Returns:

bool – True if valid, False if errors exist. list: List of error messages.