boilercv_pipeline.models.deps
#
Dependency models.
Submodules#
Package Contents#
Classes#
Directory slicer. |
Functions#
Get slices from slicers. |
|
Slicer for the first |
|
Get slicers for a path. |
API#
- boilercv_pipeline.models.deps.get_slices(
- slicers: boilercv_pipeline.models.deps.types.Slicers,
Get slices from slicers.
- boilercv_pipeline.models.deps.first_slicer( ) boilercv_pipeline.models.deps.types.Slicer #
Slicer for the first
n
elements taken atstep
s.
- class boilercv_pipeline.models.deps.DirSlicer(
- /,
- **data: typing.Any,
Bases:
pydantic.BaseModel
Directory slicer.
Initialization
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError
][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.self
is explicitly positional-only to allowself
as a field name.- path: pathlib.Path#
None
- property paths: list[pathlib.Path]#
Filtered paths.
- boilercv_pipeline.models.deps.get_slicers(
- path: pathlib.Path,
- path_slicers: dict[str, boilercv_pipeline.models.deps.types.Slicers] | None = None,
- slicer_patterns: dict[str, boilercv_pipeline.models.deps.types.Slicers] | None = None,
Get slicers for a path.