vipr.plugins.registry.backends package¶
Submodules¶
vipr.plugins.registry.backends.hf module¶
HuggingFace-backed remote backend for the VIPR model registry.
- class vipr.plugins.registry.backends.hf.HFIndex(*, format_version: int = 1, packages: list[~vipr.plugins.registry.backends.hf.HFIndexEntry] = <factory>)¶
Bases:
BaseModelSchema for HuggingFace-hosted registry index.yaml.
- model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- packages: list[HFIndexEntry]¶
- class vipr.plugins.registry.backends.hf.HFIndexEntry(*, domain: ~typing.Annotated[str, ~annotated_types.MinLen(min_length=1)], name: ~typing.Annotated[str, ~annotated_types.MinLen(min_length=1)], version: ~typing.Annotated[str, _PydanticGeneralMetadata(pattern='^(?:v)?\\d+\\.\\d+\\.\\d+$')], description: str | None = None, tags: dict[str, ~typing.Any] = <factory>)¶
Bases:
BaseModelOne registry package entry declared in remote index.yaml.
- model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class vipr.plugins.registry.backends.hf.HFRegistryBackend(repo_id: str, repo_type: str = 'model')¶
Bases:
RegistryBackendHuggingFace-backed registry backend with local cache resolution.
- list(domain: str | None = None, force_refresh: bool = False) list[ModelEntry]¶
List package versions from remote index.yaml.
vipr.plugins.registry.backends.local module¶
Filesystem-backed local backend for the VIPR model registry.
- class vipr.plugins.registry.backends.local.LocalRegistryBackend(root_dir: Path | None = None)¶
Bases:
RegistryBackendFilesystem-backed local registry backend.
vipr.plugins.registry.backends.protocol module¶
Protocol definitions for registry backend implementations.
Module contents¶
Registry backend implementations and backend-facing protocols.
- class vipr.plugins.registry.backends.LocalRegistryBackend(root_dir: Path | None = None)¶
Bases:
RegistryBackendFilesystem-backed local registry backend.