fresh_cbm.verify

Offline verification of a cache release.

fresh_cbm.verify.verify_cache(cache_path: str | Path, *, checksums: bool = True) → dict[str, Any][source]

Verify cache shape, optional checksums, and release metadata.

Parameters:
  • cache_path (path-like) – Cache directory.

  • checksums (bool, optional) – Verify SHA256SUMS. Defaults to True.

Returns:

dict of str to object – Verification summary.

fresh_cbm.verify.main(argv: Sequence[str] | None = None) → int[source]

Verify a cache release from the command line.

Parameters:

argv (sequence of str or None, optional) – Command-line arguments.

Returns:

int – Process exit status.