pydantic_sweep.cli
Classes
A CLI Interface that passes a compressed model dump as on the CLI. |
|
A CLI Interface that loads the model from a configuration file. |
Module Contents
- class pydantic_sweep.cli.CLI[source]
- classmethod execute_script(script: os.PathLike | str, model: pydantic.BaseModel, **kwargs: Any) subprocess.CompletedProcess[source]
Call the CLI interface to load the model.
- static cli_args(model: pydantic.BaseModel, /) list[str][source]
- Abstractmethod:
Convert the model to a list of CLI arguments.
- class pydantic_sweep.cli.ModelDumpCLI[source]
Bases:
CLIA CLI Interface that passes a compressed model dump as on the CLI.
- static cli_args(model: pydantic.BaseModel, /) list[str][source]
Dump the model to a list of CLI arguments.
- class pydantic_sweep.cli.FileCLI[source]
Bases:
CLIA CLI Interface that loads the model from a configuration file.
- static cli_args(model: pydantic.BaseModel, /, *, path: str | os.PathLike) list[str][source]
Dump the model to a temporary configuration file and return its path.