boilercv_pipeline.models.path
#
Path models.
Submodules#
Package Contents#
Classes#
Context model for |
Functions#
Get datetimes. |
|
Get timestamp from a path. |
|
Context for |
|
Model config for |
|
Check path kind and make a directory and its parents or a file’s parents. |
|
Resolve paths and serialize POSIX-style. |
|
Serialize paths POSIX-style, resolving if rooted. |
|
Get a path-friendly time string. |
Data#
|
|
Directory path that serializes as POSIX. |
|
Directory path that serializes as POSIX. |
|
Data directory path made upon validation. |
|
Data file path made upon validation. |
|
Docs directory path made upon validation. |
|
Docs file path made upon validation. |
API#
- boilercv_pipeline.models.path.get_datetime(
- string: str,
Get datetimes.
- boilercv_pipeline.models.path.get_time(
- path: pathlib.Path,
Get timestamp from a path.
- boilercv_pipeline.models.path.get_boilercv_pipeline_context(
- roots: boilercv_pipeline.models.contexts.Roots | None = None,
- kinds_from: BoilercvPipelineContextStore | None = None,
- track_kinds: bool = False,
Context for
boilercv_pipeline
.
- boilercv_pipeline.models.path.get_boilercv_pipeline_config(
- roots: boilercv_pipeline.models.contexts.Roots | None = None,
- kinds_from: BoilercvPipelineContextStore | None = None,
- track_kinds: bool = False,
Model config for
boilercv_pipeline
.
- class boilercv_pipeline.models.path.BoilercvPipelineContextStore(
- /,
- **data: context_models.types.Data,
Bases:
context_models.ContextStore
Context model for
boilercv_pipeline
.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.- model_config: ClassVar[boilercv_pipeline.models.contexts.types.BoilercvPipelineConfigDict]#
‘get_boilercv_pipeline_config(…)’
- context: boilercv_pipeline.models.path.types.HiddenContext#
‘BoilercvPipelineContexts(…)’
- classmethod context_get(
- data: context_models.types.Data,
- context: context_models.types.Context | None = None,
- context_base: context_models.types.Context | None = None,
Get context from data.
- boilercv_pipeline.models.path.make_path_args: dict[tuple[boilercv_pipeline.models.path.types.Key, bool], boilercv_pipeline.models.contexts.types.Kind]#
None
make_path()
args and their kinds.
- boilercv_pipeline.models.path.make_path(
- path: pathlib.Path,
- info: boilercv_pipeline.models.contexts.types.BoilercvPipelineValidationInfo,
- key: boilercv_pipeline.models.path.types.Key,
- file: bool,
Check path kind and make a directory and its parents or a file’s parents.
- boilercv_pipeline.models.path.resolve_path(
- value: pathlib.Path | str,
- nxt: pydantic.SerializerFunctionWrapHandler,
Resolve paths and serialize POSIX-style.
- boilercv_pipeline.models.path.ser_rooted_path(
- value: pathlib.Path | str,
- nxt: pydantic.SerializerFunctionWrapHandler,
- info: boilercv_pipeline.models.contexts.types.BoilercvPipelineSerializationInfo,
- key: boilercv_pipeline.models.path.types.Key,
Serialize paths POSIX-style, resolving if rooted.
- boilercv_pipeline.models.path.FilePathSerPosix: TypeAlias#
None
Directory path that serializes as POSIX.