macropipe.registry

Classes

Registry

Macropipe function registry

Functions

recipe(→ Callable)

Decorator to register a Macropipe recipe function.

Module Contents

class macropipe.registry.Registry

Macropipe function registry

r: ClassVar[Dict[str, Callable]]
classmethod register(fn: Callable) str

Register a Macropipe recipe function.

classmethod get(name: str) Callable

Get a Macropipe recipe function by name.

macropipe.registry.recipe(function: Callable) Callable

Decorator to register a Macropipe recipe function.