boilercv_pipeline.parser#

Modified Cappa CLI parser that surfaces the first innermost context.

A hacky workaround for now, since Cappa traverses structures differently than vanilla Pydantic, the uppermost context is not preserved correctly.

Module Contents#

Functions#

invoke

Modified Cappa CLI parser that surfaces the first innermost context.

get_first_innermost_context

Get the first innermost context.

PairedArg

Create a paired argument, enabling the --no- prefix.

API#

boilercv_pipeline.parser.invoke(
obj: type | cappa.command.Command[Any],
*,
deps: collections.abc.Sequence[collections.abc.Callable[..., Any]] | collections.abc.Mapping[collections.abc.Callable[..., Any], cappa.invoke.Dep[Any] | Any] | None = None,
argv: list[str] | None = None,
backend: collections.abc.Callable[..., Any] | None = None,
color: bool = True,
version: str | cappa.arg.Arg[Any] | None = None,
help: bool | cappa.arg.Arg[Any] = True,
completion: bool | cappa.arg.Arg[Any] = True,
theme: Any | None = None,
output: cappa.output.Output | None = None,
help_formatter: cappa.help.HelpFormatable | None = None,
)#

Modified Cappa CLI parser that surfaces the first innermost context.

boilercv_pipeline.parser.get_first_innermost_context(
model: context_models.ContextStore,
) boilercv_pipeline.models.contexts.BoilercvPipelineContexts#

Get the first innermost context.

boilercv_pipeline.parser.PairedArg(
name: str,
) cappa.arg.Arg[Any]#

Create a paired argument, enabling the --no- prefix.