Metadata-Version: 2.5
Name: zarr-kvikio
Version: 0.1.0
Summary: A zarr-python codec pipeline that reads chunks straight into GPU memory with KvikIO and decodes them with nvCOMP
Project-URL: Changelog, https://zarr-kvikio.readthedocs.io/page/release-notes/index.html
Project-URL: Documentation, https://zarr-kvikio.readthedocs.io/
Project-URL: Homepage, https://github.com/scverse/zarr-kvikio
Project-URL: Issues, https://github.com/scverse/zarr-kvikio/issues
Project-URL: Source, https://github.com/scverse/zarr-kvikio
Author: Severin Dicks
Maintainer-email: Severin Dicks <severin.dicks@scverse.org>
License-Expression: MIT
License-File: LICENSE
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: GPU :: NVIDIA CUDA
Classifier: Intended Audience :: Science/Research
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Scientific/Engineering
Classifier: Typing :: Typed
Requires-Python: >=3.12
Requires-Dist: google-crc32c>=1.5
Requires-Dist: numcodecs>=0.14
Requires-Dist: numpy>=1.26
Requires-Dist: zarr>=3.3
Provides-Extra: cuda12
Requires-Dist: cupy-cuda12x[ctk]>=14.0.1; extra == 'cuda12'
Requires-Dist: kvikio-cu12>=26.4; extra == 'cuda12'
Requires-Dist: nvidia-nvcomp-cu12>=5.2; extra == 'cuda12'
Provides-Extra: cuda13
Requires-Dist: cupy-cuda13x[ctk]>=14.0.1; extra == 'cuda13'
Requires-Dist: kvikio-cu13>=26.4; extra == 'cuda13'
Requires-Dist: nvidia-nvcomp-cu13>=5.2; extra == 'cuda13'
Provides-Extra: dask
Requires-Dist: distributed>=2023.9.2; extra == 'dask'
Description-Content-Type: text/markdown

# zarr-kvikio

[![Tests][badge-tests]][tests]
[![Documentation][badge-docs]][documentation]

[badge-tests]: https://img.shields.io/github/actions/workflow/status/scverse/zarr-kvikio/test.yaml?branch=main
[badge-docs]: https://app.readthedocs.org/projects/zarr-kvikio/badge/
[tests]: https://github.com/scverse/zarr-kvikio/actions/workflows/test.yaml
[documentation]: https://zarr-kvikio.readthedocs.io/

zarr-kvikio is a [Zarr-Python](https://zarr.readthedocs.io/) codec pipeline for reading local and remote arrays into CuPy arrays.
It accelerates reads of local Zarr v3 arrays with uncompressed or Zstandard-compressed numeric chunks using
[KvikIO](https://github.com/rapidsai/kvikio) and [nvCOMP](https://developer.nvidia.com/nvcomp).
Remote stores use Zarr’s standard GPU-buffer reads.

## Installation

Choose the extra that matches your CUDA installation, either `cuda12` or `cuda13`.

```bash
pip install 'zarr-kvikio[cuda13]'
```

For Dask support, add the `dask` extra (e.g. `zarr-kvikio[cuda13,dask]`). To inspect or convert stores
on the CPU, install the base package with `pip install zarr-kvikio`.

## Quick start

Enable the pipeline before opening a local array. For example, read the first 1,024 rows of `data.zarr` into GPU memory.

```python
import zarr
import zarr_kvikio

with zarr_kvikio.enable():
    array = zarr.open_array("data.zarr", mode="r")
    rows = array[:1024]  # cupy.ndarray
```

See the [documentation][documentation] for Dask setup, supported store layouts, configuration, and the API reference.
