sddb.Manifest#

class sddb.Manifest(generated_at: str, catalog_version: str | None, entries: list[ManifestEntry])#

What was downloaded, where, and from which catalog (catalog_version is None when not pinned).

Attributes table#

Methods table#

read(path)

Read a manifest written by write().

refetch(dest, *[, workers])

Re-download exactly the stores recorded in this manifest to dest (reproducible re-fetch).

write(path)

Write the manifest as JSON and return the path.

Attributes#

generated_at: str#
catalog_version: str | None#
entries: list[ManifestEntry]#

Methods#

classmethod read(path: str | Path) → Manifest#

Read a manifest written by write().

refetch(dest: str | Path, *, workers: int = 4) → Manifest#

Re-download exactly the stores recorded in this manifest to dest (reproducible re-fetch).

Uses the recorded zarr_url of each entry, not the current catalog, and keeps the recorded catalog_version. Completed stores already in dest are skipped. A partial entry copies its recorded elements again, not the whole store. Only URLs are replayed: a store republished at the same URL is not detected.

write(path: str | Path) → Path#

Write the manifest as JSON and return the path.