Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
f04c70a
feat(zarr-storage): add a Zarr-agnostic storage package with a new st…
d-v-b Nov 17, 2026
ac6ac50
docs(zarr-storage): add changelog fragment
d-v-b Nov 17, 2026
10a4262
feat(zarr-storage)!: return closed result unions and split conditiona…
d-v-b Nov 17, 2026
1154c0b
feat(zarr-storage)!: make get_into generic in the buffer type it read…
d-v-b Nov 17, 2026
40c37d0
feat(zarr-storage): add batch reads and writes
d-v-b Nov 17, 2026
ce26c8f
feat(zarr-storage)!: split Store into Store and AsyncStore
d-v-b Nov 17, 2026
e2c9ab3
feat(zarr-storage)!: share thread pools and operation limits across b…
d-v-b Nov 18, 2026
9561df2
docs(zarr-storage): add changelog fragment for shared resources
d-v-b Nov 18, 2026
61d6d24
feat(zarr-storage)!: make resource limits part of the store's context
d-v-b Nov 18, 2026
1da64c5
docs(zarr-storage): plan caching as a context resource over a tier store
d-v-b Nov 18, 2026
422dee4
docs(zarr-storage): leave shard index caching to the codec pipeline
d-v-b Nov 18, 2026
6f09bff
Merge remote-tracking branch 'upstream/main' into zarr-storage-upstream
d-v-b Dec 1, 2026
b9467df
build(zarr-storage): wire the package into CI, docs and releases like…
d-v-b Dec 1, 2026
2ff082e
fix(zarr-storage): take limiter slots before work goes to the pool
d-v-b Dec 1, 2026
95b83c6
fix(zarr-storage): stop LocalBackend's delete_dir and listings at sym…
d-v-b Dec 1, 2026
a1ce892
fix(zarr-storage): never answer Unchanged for an obstore generation t…
d-v-b Dec 1, 2026
e4e1c33
docs(zarr-storage): make DESIGN.md match the code and stand on its ow…
d-v-b Dec 1, 2026
10436e7
docs(zarr-storage): name the changelog fragment 0000 until the upstre…
d-v-b Dec 1, 2026
17d525c
fix(zarr-storage): take slots on pool threads again, and skip operati…
d-v-b Dec 1, 2026
d85f5a9
fix(zarr-storage): walk delete_dir by file descriptor so a swapped sy…
d-v-b Dec 1, 2026
abd57b8
fix(zarr-storage): wait for slots as a task on pool-thread loops; che…
d-v-b Dec 1, 2026
79be01e
fix(zarr-storage): report a symlink loop above a key as a key conflict
d-v-b Dec 1, 2026
317b72d
docs(zarr-storage): number the changelog fragment after the PR
d-v-b Dec 1, 2026
5f31fea
feat(zarr-storage)!: make LocalBackend.create the only constructor th…
d-v-b Dec 1, 2026
28c1c19
fix(zarr-storage): never recreate the directories above a LocalBacken…
d-v-b Dec 1, 2026
b4539dd
docs(zarr-storage): plan memory-mapped reads and copy-on-write range …
d-v-b Dec 1, 2026
2034196
fix(zarr-storage): recreate a removed LocalBackend root only on the f…
d-v-b Dec 1, 2026
c90326a
revert(zarr-storage): restore LocalBackend's reviewed write path; lis…
d-v-b Dec 1, 2026
8dc17a1
feat(zarr-storage)!: compare stores by data location, and give each b…
d-v-b Dec 1, 2026
ba5e2d0
fix(zarr-storage): normalize object-store locations and keep credenti…
d-v-b Dec 1, 2026
8af4f06
fix(zarr-storage): recompute an obstore location on unpickling, and n…
d-v-b Dec 1, 2026
fce03f9
fix(zarr-storage): keep a URL path segment that decodes to NUL encoded
d-v-b Dec 1, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ zarr-indexing:
- changed-files:
- all-globs-to-all-files: 'packages/zarr-indexing/**'

zarr-storage:
- all:
- changed-files:
- all-globs-to-all-files: 'packages/zarr-storage/**'

zarr-http-server:
- all:
- changed-files:
Expand Down
3 changes: 2 additions & 1 deletion .github/release.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Configuration for GitHub's "Generate release notes" button.
#
# The zarr-python repository also hosts the companion packages under packages/
# (zarr-metadata, zarr-indexing, zarr-http-server), which have their own release
# (zarr-metadata, zarr-indexing, zarr-storage, zarr-http-server), which have their own release
# cadence, tags and changelogs. Pull requests that only touch a subpackage are
# labelled by the labeler workflow (.github/labeler.yml) and excluded here, so a
# `zarr` release lists only the changes that ship in `zarr`.
Expand All @@ -10,6 +10,7 @@ changelog:
labels:
- zarr-metadata
- zarr-indexing
- zarr-storage
- zarr-http-server
authors:
- pre-commit-ci[bot]
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/check_changelogs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,8 @@ jobs:
- name: Check zarr-indexing changelog entries
run: just check-changelogs packages/zarr-indexing/changes

- name: Check zarr-storage changelog entries
run: just check-changelogs packages/zarr-storage/changes

- name: Check zarr-http-server changelog entries
run: just check-changelogs packages/zarr-http-server/changes
145 changes: 145 additions & 0 deletions .github/workflows/zarr-storage-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,145 @@
name: zarr-storage release

on:
workflow_dispatch:
push:
tags:
- 'zarr_storage-v*'

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false

jobs:
build:
name: Build wheel and sdist
runs-on: ubuntu-latest
defaults:
run:
shell: bash
working-directory: packages/zarr-storage
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
fetch-depth: 0 # hatch-vcs needs full history + tags

- name: Install Hatch
uses: pypa/hatch@f647ed70d49adb885f53a27d1c7f5bdaeacf2c60
with:
version: '1.16.5'

- name: Build
run: hatch build

- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: zarr-storage-dist
path: packages/zarr-storage/dist

test_artifacts:
name: Test built artifacts
needs: [build]
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
name: zarr-storage-dist
path: dist

- name: Install uv
uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0
with:
enable-cache: false

- name: Set up Python
run: uv python install 3.12

- name: Install built wheel and run import smoke test
run: |
wheel=$(ls dist/*.whl)
uv run --with "${wheel}" --python 3.12 --no-project \
python -c "import zarr_storage; print('zarr_storage', zarr_storage.__version__)"

# The sdist has to stand alone, and `hatch build` above builds the wheel
# from the source tree, not from the sdist. So build a wheel from the
# sdist with pip, which unpacks it under the sdist format's rules (no
# links out of the archive), then run the package's own tests and strict
# docs build from the unpacked sdist. This job has no checkout, so
# nothing comes from the repository; zarr, where a package uses it,
# resolves from PyPI.
- name: Build a wheel from the sdist with pip
run: |
sdist=$(ls dist/*.tar.gz)
uvx --python 3.12 pip@26.2.1 wheel --no-deps --wheel-dir sdist-wheel "${sdist}"

- name: Install just
uses: extractions/setup-crate@7577c1bdf2d95e6d65d532788f35ed79d4b1dda2 # v2.0.1
with:
repo: casey/just
version: 1.58.0

- name: Test and build docs from the unpacked sdist
env:
UV_PYTHON: '3.12'
run: |
mkdir sdist
tar -xzf dist/*.tar.gz -C sdist
cd sdist/*/
just test
just docs-check

upload_pypi:
name: Upload to PyPI
needs: [build, test_artifacts]
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/zarr_storage-v')
runs-on: ubuntu-latest
environment:
name: zarr-storage-releases
url: https://pypi.org/p/zarr-storage
permissions:
id-token: write # required for OIDC trusted publishing
attestations: write # required for artifact attestations
steps:
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
name: zarr-storage-dist
path: dist

- name: Generate artifact attestation
uses: actions/attest@1e69f48acb82d1966a394da916b4c1698aa569d6 # v4.2.2
with:
subject-path: dist/*

- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # v1.14.3

upload_testpypi:
name: Upload to TestPyPI
needs: [build, test_artifacts]
if: github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
environment:
name: zarr-storage-releases-test
url: https://test.pypi.org/p/zarr-storage
permissions:
id-token: write
attestations: write
steps:
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
name: zarr-storage-dist
path: dist

- name: Generate artifact attestation
uses: actions/attest@1e69f48acb82d1966a394da916b4c1698aa569d6 # v4.2.2
with:
subject-path: dist/*

- name: Publish package to TestPyPI
uses: pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # v1.14.3
with:
repository-url: https://test.pypi.org/legacy/
143 changes: 143 additions & 0 deletions .github/workflows/zarr-storage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
name: zarr-storage

# Job steps delegate to packages/zarr-storage/justfile, the single source of
# truth for this package's verbs; CI owns only the python matrix and caching.

on:
push:
branches: [main]
paths:
- 'packages/zarr-storage/**'
- '.github/workflows/zarr-storage.yml'
# The docs config and header script shared by all package sites.
- 'packages/mkdocs-base.yml'
- 'packages/source-version.js'
pull_request:
paths:
- 'packages/zarr-storage/**'
- '.github/workflows/zarr-storage.yml'
# The docs config and header script shared by all package sites.
- 'packages/mkdocs-base.yml'
- 'packages/source-version.js'
workflow_dispatch:

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
test:
name: pytest py=${{ matrix.python-version }}
runs-on: ubuntu-latest
defaults:
run:
shell: bash
working-directory: packages/zarr-storage
strategy:
fail-fast: false
matrix:
python-version: ['3.11', '3.12', '3.13', '3.14']
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Install uv
uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0
with:
enable-cache: true
- name: Install just
uses: extractions/setup-crate@7577c1bdf2d95e6d65d532788f35ed79d4b1dda2 # v2.0.1
with:
repo: casey/just
version: 1.58.0
- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}
- name: Sync test dependency group
run: uv sync --group test --python ${{ matrix.python-version }}
- name: Run pytest
run: just test

ruff:
name: ruff
runs-on: ubuntu-latest
defaults:
run:
shell: bash
working-directory: packages/zarr-storage
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Install uv
uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0
- name: Install just
uses: extractions/setup-crate@7577c1bdf2d95e6d65d532788f35ed79d4b1dda2 # v2.0.1
with:
repo: casey/just
version: 1.58.0
- name: Run ruff
run: just lint

pyright:
name: pyright
runs-on: ubuntu-latest
defaults:
run:
shell: bash
working-directory: packages/zarr-storage
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Install uv
uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0
with:
enable-cache: true
- name: Install just
uses: extractions/setup-crate@7577c1bdf2d95e6d65d532788f35ed79d4b1dda2 # v2.0.1
with:
repo: casey/just
version: 1.58.0
- name: Run pyright
# Pyright runs unpinned; the interpreter pin lives in the justfile.
run: just typecheck

docs:
name: docs
runs-on: ubuntu-latest
defaults:
run:
shell: bash
working-directory: packages/zarr-storage
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Install uv
uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0
with:
enable-cache: true
- name: Install just
uses: extractions/setup-crate@7577c1bdf2d95e6d65d532788f35ed79d4b1dda2 # v2.0.1
with:
repo: casey/just
version: 1.58.0
- name: Build docs
run: just docs-check

zarr-storage-complete:
name: zarr-storage complete
needs: [test, ruff, pyright, docs]
if: always()
runs-on: ubuntu-latest
steps:
- name: Check failure
if: |
contains(needs.*.result, 'failure') ||
contains(needs.*.result, 'cancelled')
run: exit 1
- name: Success
run: echo Success!
2 changes: 1 addition & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ build:
if [ "$READTHEDOCS_VERSION_TYPE" = "external" ];
then
git fetch --quiet --unshallow origin main pull/$READTHEDOCS_VERSION_NAME/head || true;
if git diff --quiet origin/main...HEAD -- :!packages/zarr-metadata :!packages/zarr-indexing :!packages/zarr-http-server;
if git diff --quiet origin/main...HEAD -- :!packages/zarr-metadata :!packages/zarr-indexing :!packages/zarr-storage :!packages/zarr-http-server;
then
exit 183;
fi
Expand Down
4 changes: 4 additions & 0 deletions Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,10 @@ zarr-metadata *args:
zarr-indexing *args:
just --justfile packages/zarr-indexing/justfile "$@"

# Run a zarr-storage recipe, or list its recipes with no arguments
zarr-storage *args:
just --justfile packages/zarr-storage/justfile "$@"

# Run a zarr-http-server recipe, or list its recipes with no arguments
zarr-http-server *args:
just --justfile packages/zarr-http-server/justfile "$@"
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ In addition to the primary `zarr` implementation, this repository contains other
| --- | --- | --- | --- |
| `zarr-metadata` | Tools for Zarr metadata | `pip install zarr-metadata` | [Docs](https://zarr.readthedocs.io/projects/zarr-metadata/) Β· [Source](https://github.com/zarr-developers/zarr-python/tree/main/packages/zarr-metadata) |
| `zarr-indexing` | Tools for lazily indexing chunked arrays | `pip install zarr-indexing` | [Docs](https://zarr.readthedocs.io/projects/zarr-indexing/) Β· [Source](https://github.com/zarr-developers/zarr-python/tree/main/packages/zarr-indexing) |
| `zarr-storage` | A Zarr-agnostic key-value storage layer | `pip install zarr-storage` | [Docs](https://zarr.readthedocs.io/projects/zarr-storage/) Β· [Source](https://github.com/zarr-developers/zarr-python/tree/main/packages/zarr-storage) |
| `zarr-http-server` | An HTTP server implementation targeting Zarr data | `pip install zarr-http-server` | [Docs](https://zarr.readthedocs.io/projects/zarr-http-server/) Β· [Source](https://github.com/zarr-developers/zarr-python/tree/main/packages/zarr-http-server) |

See [Sub-projects](https://zarr.readthedocs.io/en/stable/subprojects/) in the `zarr` documentation for an overview.
12 changes: 12 additions & 0 deletions docs/subprojects.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,18 @@ without taking on `zarr` as a dependency.
pip install zarr-indexing
```

- [:material-database:{ .lg .middle } __zarr-storage__](https://zarr.readthedocs.io/projects/zarr-storage/)

---

A Zarr-agnostic key-value storage layer: sync and async stores over
memory, local-filesystem and object-store backends, with conditional
writes, byte-range reads, batches and a conformance suite for backends.

```bash
pip install zarr-storage
```

- [:material-server:{ .lg .middle } __zarr-http-server__](https://zarr.readthedocs.io/projects/zarr-http-server/)

---
Expand Down
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ nav:
# keeps the reader on this site's domain.
- 'zarr-metadata β†ͺ': https://zarr.readthedocs.io/projects/zarr-metadata/
- 'zarr-indexing β†ͺ': https://zarr.readthedocs.io/projects/zarr-indexing/
- 'zarr-storage β†ͺ': https://zarr.readthedocs.io/projects/zarr-storage/
- release-notes.md
- roadmap.md
- contributing.md
Expand Down
Loading
Loading