Skip to main content

zarr_checksum

Algorithms for calculating a zarr checksum against local or cloud storage

Install

pip install zarr-checksum

Usage

CLI

To calculate the checksum for a local zarr archive

zarrsum local <directory>

To calculate the checksum for a remote (S3) zarr archive

zarrsum remote s3://your_bucket/prefix_to_zarr

Python

To calculate the checksum for a local zarr archive

from zarr_checksum import compute_zarr_checksum
from zarr_checksum.generators import yield_files_local, yield_files_s3

# Local
checksum = compute_zarr_checksum(yield_files_local("local_path"))

# Remote
checksum = compute_zarr_checksum(
    yield_files_s3(
        bucket="your_bucket",
        prefix="prefix_to_zarr",
        # Credentials can also be passed via environment variables
        credentials={
            aws_access_key_id: "youraccesskey",
            aws_secret_access_key: "yoursecretkey",
            region_name: "us-east-1",
        }
    )
)

Access checksum information

>>> checksum.digest
'c228464f432c4376f0de6ddaea32650c-37481--38757151179'
>>> checksum.md5
'c228464f432c4376f0de6ddaea32650c'
>>> checksum.count
37481
>>> checksum.size
38757151179

Metadata

Release files for zarr-checksum 0.4.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for zarr-checksum 0.4.7
File Size Uploaded Provenance
zarr_checksum-0.4.7.tar.gz 12.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for zarr-checksum 0.4.7
File Interpreter ABI Platform
zarr_checksum-0.4.7-py3-none-any.whl Python 3 none any Details

Total release size: 27.7 kB

Release files / zarr_checksum-0.4.7.tar.gz

Download URL zarr_checksum-0.4.7.tar.gz
Size 12.4 kB
Tags Source
SHA-256 checksum
How to use checksums
081f163d52533a286bc8249a241da5614b5dab0c06377b208980dc205e272da9
BLAKE2b-256 checksum
How to use checksums
b4afeb603e6d7f02d16a60b05335ed97a08de4c71f5b109c2a65f3a571d2c4be
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.2 CPython/3.13.2 Linux/6.8.0-1021-azure

Release files / zarr_checksum-0.4.7-py3-none-any.whl

Download URL zarr_checksum-0.4.7-py3-none-any.whl
Size 15.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
97cbffe2288338f9083f92a2312052f045fb2154a6f4ddbbcb1bde109b6fd22e
BLAKE2b-256 checksum
How to use checksums
e36ba57376f2713b79e5f2eb8003ebc569aa3201a36779ee1472404f183e3c87
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.2 CPython/3.13.2 Linux/6.8.0-1021-azure

Security for zarr-checksum 0.4.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page