vertebrae.cache.factory

Artifact store factory helpers.

Functions

create_artifact_store(uri, **options)

Create an artifact store from a local path or URI.

create_artifact_store_from_config(config)

Create an artifact store from a serialized store config.

Module Contents

vertebrae.cache.factory.create_artifact_store(uri, **options)[source]

Create an artifact store from a local path or URI.

Parameters:
  • uri (str) – Local cache path or provider URI such as s3://… or gs://….

  • **options (Any) – Provider-specific construction options.

Returns:

Configured artifact store.

Raises:

ValueError – If the URI scheme is unsupported.

Return type:

vertebrae.cache.artifact_store.ArtifactStore

vertebrae.cache.factory.create_artifact_store_from_config(config)[source]

Create an artifact store from a serialized store config.

Parameters:

config (vertebrae.cache.artifact_store.ArtifactStoreConfig)

Return type:

vertebrae.cache.artifact_store.ArtifactStore