Skip to main content

ome-zarr-io

Read, write, and validate OME-Zarr 0.5 images and high-content-screening plates: from a NumPy array to a spec-compliant OME-Zarr image in a few lines of Python.

CI/CD Documentation Python 3.11 | 3.12 | 3.13 | 3.14 PyPI License: MIT

Microscopy datasets are growing faster than desktop tools can handle. OME-Zarr is the community format for storing them in a chunked, cloud-friendly way that viewers such as napari and Vizarr can open. Getting the metadata exactly right is fiddly. ome-zarr-io handles it for you, so you can spend your time on the analysis instead of the file format.

ome-zarr-io writes NumPy or Dask arrays as OME-Zarr 0.5 images with axes, units, pixel sizes, multiscale pyramids, channels and segmentation labels, and arranges such images into high-content-screening plates. It also reads images back and validates images and plates against the OME-Zarr 0.5 schemas, from Python or the command line.

Installation

pip install ome-zarr-io

Quick start

import numpy as np
from ome_zarr_io import Writer, Reader, validate

image = np.random.randint(0, 255, size=(2, 16, 256, 256), dtype=np.uint8)

Writer(
    path="example.ome.zarr", image=image, dims=["c", "z", "y", "x"],
    axis_units={"z": "micrometer", "y": "micrometer", "x": "micrometer"},
    scale_transformations={"z": 0.5, "y": 0.2, "x": 0.2},
    channels={"DAPI": {"color": "0000FF"}, "GFP": {"color": "00FF00"}},
    downscale_levels=2, overwrite=True,
).write()

print(validate("example.ome.zarr"))                      # spec check
print(Reader("example.ome.zarr").get_voxel_size())       # physical pixel size

The same validation is available on the command line:

ome-zarr-io validate example.ome.zarr

Documentation

The full documentation is at https://turku-bioimaging.github.io/ome-zarr-io/:

Stack

Metadata

Release files for ome-zarr-io 0.12.0

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

Source distribution (sdist)

Source distribution for ome-zarr-io 0.12.0
File Size Uploaded Provenance Actions
ome_zarr_io-0.12.0.tar.gz 99.6 kB With provenance Details for ome_zarr_io-0.12.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ome-zarr-io 0.12.0
File Interpreter ABI Platform Actions
ome_zarr_io-0.12.0-py3-none-any.whl Python 3 none any Details for ome_zarr_io-0.12.0-py3-none-any.whl

Total release size: 155.3 kB

Release files / ome_zarr_io-0.12.0.tar.gz

Download URL ome_zarr_io-0.12.0.tar.gz
Size 99.6 kB
Tags Source
SHA-256 checksum
How to use checksums
d7b18ca03e85fe18c8171ba680eb2325e5b15dffdb4baaca65ec77d7c8e7b5c1
BLAKE2b-256 checksum
How to use checksums
80a22d5e42ca3c5bd793d6ced62a4030714a01d435736630cd90ab9a1f26bfb2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.

Transparency log

Release files / ome_zarr_io-0.12.0-py3-none-any.whl

Download URL ome_zarr_io-0.12.0-py3-none-any.whl
Size 55.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fd3686a014bc1ec7a7d10364bc950ac52eaf079d5cd1cf4b04db46bf59d1a6ae
BLAKE2b-256 checksum
How to use checksums
7e96f601e14552483f41c97d683cabe986806d080706afc447f5f0aa3ed60fa9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.

Transparency log

Security for ome-zarr-io 0.12.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for ome_zarr_io-0.12.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.

Transparency log

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