Skip to content

spatialpack hash

Terminal window
# Compute BLAKE3 hashes for all layers and write to manifest
spatialpack hash ./my-pack/
# Verify existing hashes (exits non-zero on mismatch)
spatialpack hash --verify ./my-pack/

What it does:

  • Reads layer file paths from spatialpack.json (manifest-driven, not filesystem scan)
  • Computes BLAKE3 hashes for each asset (layers/*.parquet, layers/*.pmtiles, rasters/*.tif)
  • Writes hashes to integrity.asset_hashes in the manifest (keys: layers/roads.parquet, etc.)
  • --verify compares computed vs stored; exits 1 on any mismatch, missing file, or unhashed asset

Compute BLAKE3 integrity hashes for pack assets.

OptionTypeDefaultDescription
--verifyflagfalseVerify existing hashes; exits 1 on mismatch, missing file, or unhashed asset

Requires the blake3 package:

Terminal window
pip install blake3
# or install all extras
pip install -e ".[full]"