Skip to main content

Utilities for accessing N5 data through zarr v3.

Project description

zarr-python-n5

N5 utilities for zarr-python.

Codecs

N5 Default Codec

As described here.

Only whole-chunk reading is supported.

N5 Compressor support

N5 compressor Supported Zarr bytes-to-bytes codec Notes
raw yes n/a Equivalent to omitted bytes-to-bytes codec
blosc yes blosc
gzip yes gzip
zstd yes zstd
lz4 no Incompatible codecs
xz no No equivalent Zarr codec
jpeg no Needs N5 documentation, Zarr codec
bzip2 no No equivalent Zarr codec

Stores

N5WrapperStore allows reading N5 data with DEFAULT-mode blocks through any Zarr store by converting metadata on the fly. By default, this does not replicate the N5 behaviour of inferring an empty group where a metadata document does not exist. To achieve this, wrap it in the provided ImplicitGroupWrapperStore.

Tools

This package provides n5tozarr, a command-line interface for converting N5 data to Zarr in-place. The N5 metadata are left untouched, and no chunk data is altered, moved, or copied. A zarr.json file is simply added to each Zarr node.

N5 attributes are extracted and added to the zarr.json attributes.

The full N5 metadata document is accessible inside the zarr.json in an attribute called _n5. If a directory/prefix was empty and the existence of an N5 group was inferred, the zarr.json attribute _implicit will be true.

Contributing

Use uv for project management.

Use just for common development tasks.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zarr_n5-0.1.2.tar.gz (10.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zarr_n5-0.1.2-py3-none-any.whl (15.3 kB view details)

Uploaded Python 3

File details

Details for the file zarr_n5-0.1.2.tar.gz.

File metadata

  • Download URL: zarr_n5-0.1.2.tar.gz
  • Upload date:
  • Size: 10.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for zarr_n5-0.1.2.tar.gz
Algorithm Hash digest
SHA256 dccfbcfdd52d4ec6e64b1b0bac191413dd220be13ff3fc99b89a570ef875b1ea
MD5 a62744675b5bd42f0b3ceb1ee38121a9
BLAKE2b-256 02cc3c72fa53e01848b50a1a936a7aa199a494157e9bfe1b4bbe293c6c83e87d

See more details on using hashes here.

File details

Details for the file zarr_n5-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: zarr_n5-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 15.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for zarr_n5-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9c9f2f3dae50b69125b18fc3dbb6280bd6c2f67abdae9ec158f3f8c10527142e
MD5 924ca59b5a7973b0c38fed598c35301d
BLAKE2b-256 bdb3a643cfe7b6762cd1ac9d2168f2af8418271e381b74cecea8668b0e231bf2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page