s6.utils.stage_decoratorΒΆ

Decorator for pipeline stage functions with context key requirements.

exception s6.utils.stage_decorator.PipelineStageError

Bases: Exception

Base exception for pipeline stage validation errors.

s6.utils.stage_decorator.pipeline_stage(require: List[str], produce: List[str]) Callable[[...], Any]

Decorator for pipeline stage functions that operate on a context object.

Parameters:
  • require – List of dot-separated paths that must exist in context before running.

  • produce – List of dot-separated paths that must exist in context after running.