zarr-metadata 0.9.0


pip install zarr-metadata

  Latest version

Released: Nov 16, 2026


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

PyPI Docs

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:

  • TypedDict shapes 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

MIT

Wheel compatibility matrix

Platform Python 3
any

Files in release

Extras:
Dependencies:
annotated-types (>=0.6)
typing-extensions (>=4.16)