Skip to content
PACKAGES

RecipeContext

Kind: class

Source: src/graphrefly/_facade.py:136

RecipeContext(graph: Graph, name: str, make: Callable[[str, object, str], tuple[NodeCallback, SetupCallback | None]])

What a recipe factory gets besides its config: the graph being restored, the node’s name, and make(ref, config, name), which builds another registered recipe and returns its (callback, setup) (R-checkpoint).

NameTypeDescription
graphGraph
namestr
make`Callable[[str, object, str], tuple[NodeCallback, SetupCallbackNone]]`