Spec-defined metadata types, models, and validators for Zarr v2 and v3.
Project Links
Meta
Author: Davis Bennett
Requires Python: >=3.11
Classifiers
Development Status
- 4 - Beta
Intended Audience
- Developers
- Information Technology
- Science/Research
License
- OSI Approved :: MIT License
Operating System
- OS Independent
Programming Language
- Python
- Python :: 3
- Python :: 3.11
- Python :: 3.12
- Python :: 3.13
- Python :: 3.14
Topic
- Scientific/Engineering
- Software Development :: Libraries :: Python Modules
Typing
- Typed
zarr-metadata
Types, models and validators for Zarr metadata documents, with minimal dependencies.
zarr-metadata is developed in the
zarr-python repository
and released independently of zarr. Install it with:
pip install zarr-metadata
What this is
A collection of data structures and routines that closely model the metadata rules in the Zarr v2 and v3 specifications and in zarr-extensions:
TypedDictshapes for every document and configuration.- Immutable document models. Their readers report every problem at its location.
- Contexts, which say exactly which codecs, data types and other extensions a program reads.
This is not a full Zarr implementation. Nothing here reads or writes chunks, encodes or decodes data, or performs store I/O.
import json
from zarr_metadata import ZarrV3ArrayMetadata
with open("zarr.json", "rb") as f:
raw = json.load(f)
metadata = ZarrV3ArrayMetadata.from_json(raw)
from_json returns the model, or raises MetadataValidationError with
every problem it found. The
documentation has a guide for
each kind of use, and the API reference.
License
0.9.0
Nov 16, 2026
0.8.0
Nov 13, 2026
0.7.0
Nov 12, 2026
0.6.0
Oct 26, 2026
0.5.0
Aug 14, 2026
0.4.0
Jul 29, 2026
0.3.0
Jun 19, 2026
0.2.0
May 20, 2026
0.1.1
May 08, 2026