Store¶
The store module provides a factory for opening Zarr stores from path strings. Paths starting with s3:// open S3-backed stores; all other paths open local filesystem stores.
Factory¶
zagg.store.open_store ¶
open_store(
path: str,
read_only: bool = False,
credentials: dict | None = None,
endpoint_url: str | None = None,
**kwargs,
) -> Store
Open a Zarr store from a path string.
Parameters:
-
path(str) –Store path.
s3://bucket/prefixopens an S3-backed store; all other paths open a local filesystem store. -
read_only(bool, default:False) –Whether to open in read-only mode.
-
credentials(dict, default:None) –Explicit S3 credentials (camelCase keys
accessKeyId,secretAccessKey, optionalsessionToken). When omitted the store falls back to the ambient credential chain (execution role). Ignored for local stores. -
endpoint_url(str, default:None) –Custom S3-compatible endpoint (e.g. Cloudflare R2, MinIO). Ignored for local stores.
-
**kwargs–For S3 stores:
region(default"us-west-2").
Returns:
-
Store–