Skip to main content
rustytree — Rust-backed xarray DataTree backend

CI PyPI version Python versions License

rustytree registers as xr.open_datatree(engine="rustytree") and walks Zarr v3 hierarchies — both icechunk-backed and vanilla — concurrently in async across one FFI crossing. The goal is a drop-in faster replacement for xr.open_datatree(engine="zarr"), especially on icechunk repos served from object storage where xarray's current per-group sequential decoding is the dominant cost.

Status

Alpha. xr.open_datatree(..., engine="rustytree") works end-to-end against both icechunk repositories (pass session.store) and vanilla Zarr v3 stores (path or s3:// URL). Lazy chunk reads via RustyBackendArray, CF decoding (incl. metadata-only datetime dtype inference), the recursive multi-node walk, glob group= filtering, and non-recursive single-Dataset opens are all in. See CHANGELOG.md for the per-PR breakdown.

Compatibility

Surface Supported Not supported
Zarr format v3 only v2 — passing zarr_format=2 or consolidated=True raises NotImplementedError; use stock engine="zarr" for v2 stores
icechunk icechunk>=2.3,<2.4 — icechunk-python must share a minor with the icechunk crate the wheel links, because the session-bytes format is version-coupled other icechunk minors
Python 3.12, 3.13, 3.14 older versions
Platforms manylinux x86_64, manylinux aarch64, macOS arm64 (wheels); other platforms via sdist Windows / macOS Intel / linux musl wheels (build from source via sdist)

Install

Install from PyPI (the import name stays rustytree; the distribution name on PyPI is rustytree-xarray because rustytree collides with an unrelated dormant package):

pip install rustytree-xarray

Or install from source per Quick start below.

Example

Open the public anonymous NEXRAD KLOT icechunk repo on S3:

import icechunk
import xarray as xr

storage = icechunk.s3_storage(
    bucket="nexrad-arco", prefix="KLOT",
    region="us-east-1", anonymous=True,
)
session = icechunk.Repository.open(storage).readonly_session("main")

# Open the full DataTree (107 nodes — every VCP × sweep combination).
dt = xr.open_datatree(session.store, engine="rustytree")

# Or grab one specific sweep as a flat Dataset (skips walking siblings):
ds = xr.open_dataset(session.store, engine="rustytree",
                     group="/VCP-12/sweep_0")

# Or apply a glob pattern. "Give me sweep_0 from every VCP" is the
# canonical radar workflow — returns a tree filtered to those matches,
# with the VCP container groups auto-included as ancestors.
sweeps_0 = xr.open_datatree(session.store, engine="rustytree",
                            group_filter="/*/sweep_0")

engine="rustytree" is a drop-in replacement for engine="zarr" — same xr.open_datatree / xr.open_dataset entry points, same storage_options / decode_* kwargs. The full demo (with side-by-side timings against engine="zarr") is in notebooks/klot_demo.ipynb.

Quick start

rustytree is a Rust extension built via maturin; uv sync handles the venv, Python deps, and the Rust build (via maturin's PEP 517 hook) in one command.

# Clone + enter the repo
git clone https://github.com/aladinor/rustytree.git
cd rustytree

# Install everything: venv, deps, and the compiled Rust extension.
uv sync --extra dev

# Confirm the install
.venv/bin/pytest tests/

# Launch Jupyter and open the demo notebook
.venv/bin/jupyter lab notebooks/klot_demo.ipynb

The notebooks and tests don't require AWS credentials — KLOT is read anonymously via icechunk's anonymous S3 path. Network speed determines cold-cache timings (expect ~1–3 s for engine="rustytree" on KLOT from a home connection; ~50 s for engine="zarr" on the same).

Documentation

License

Apache License 2.0 (Apache-2.0).

Acknowledgements

Built on zarrs + zarrs_icechunk + icechunk. Sibling project radish proved the PyO3 + xarray-backend pattern. The bottlenecks this project sets out to collapse are tracked in xarray PRs #10742, #11304, and #11302.

Metadata

Release files for rustytree-xarray 0.5.3

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

Source distribution (sdist)

Source distribution for rustytree-xarray 0.5.3
File Size Uploaded Provenance Actions
rustytree_xarray-0.5.3.tar.gz 1.2 MB With provenance Details for rustytree_xarray-0.5.3.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for rustytree-xarray 0.5.3
File Actions
rustytree_xarray-0.5.3-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.17+ x86-64 Details for rustytree_xarray-0.5.3-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
rustytree_xarray-0.5.3-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.14 CPython 3.14 Linux glibc 2.17+ ARM64 Details for rustytree_xarray-0.5.3-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
rustytree_xarray-0.5.3-cp314-cp314-macosx_11_0_arm64.whl CPython 3.14 CPython 3.14 macOS 11.0+ ARM64 Details for rustytree_xarray-0.5.3-cp314-cp314-macosx_11_0_arm64.whl
rustytree_xarray-0.5.3-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.17+ x86-64 Details for rustytree_xarray-0.5.3-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
rustytree_xarray-0.5.3-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.13 CPython 3.13 Linux glibc 2.17+ ARM64 Details for rustytree_xarray-0.5.3-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
rustytree_xarray-0.5.3-cp313-cp313-macosx_11_0_arm64.whl CPython 3.13 CPython 3.13 macOS 11.0+ ARM64 Details for rustytree_xarray-0.5.3-cp313-cp313-macosx_11_0_arm64.whl
rustytree_xarray-0.5.3-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.17+ x86-64 Details for rustytree_xarray-0.5.3-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
rustytree_xarray-0.5.3-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.12 CPython 3.12 Linux glibc 2.17+ ARM64 Details for rustytree_xarray-0.5.3-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
rustytree_xarray-0.5.3-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details for rustytree_xarray-0.5.3-cp312-cp312-macosx_11_0_arm64.whl

Total release size: 93.6 MB

Release files / rustytree_xarray-0.5.3.tar.gz

Download URL rustytree_xarray-0.5.3.tar.gz
Size 1.2 MB
Tags Source
SHA-256 checksum
How to use checksums
8fb7ee40a8a0a9137c287cc31b773b2f5281c5a6a0c6477b1c6ef07e808b3fbd
BLAKE2b-256 checksum
How to use checksums
d1cd4273b2097bd7d8251a9c8111834ba9b698db34475fe1a073234bc1c3b64f
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 16, 2026.

Transparency log

Release files / rustytree_xarray-0.5.3-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL rustytree_xarray-0.5.3-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 11.0 MB
Tags CPython 3.14 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
cf93a53ffd779bc150ab8fc9f08028cfa6bab383b5c4e0bd9b807cd7e752a87a
BLAKE2b-256 checksum
How to use checksums
431d47de4d496e38879f75c94a2ee4898aa52eb61dae95b2a85051f68b2c8850
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 16, 2026.

Transparency log

Release files / rustytree_xarray-0.5.3-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL rustytree_xarray-0.5.3-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 10.4 MB
Tags CPython 3.14 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
cb2ef75c0c1ef7217a60329d84a73f7f28c82a2162ca8079ad8b1219a97a8c30
BLAKE2b-256 checksum
How to use checksums
8654aae57455556ee50804fba676e789b7050aeb3b21e04f3464f9afec1b8510
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 16, 2026.

Transparency log

Release files / rustytree_xarray-0.5.3-cp314-cp314-macosx_11_0_arm64.whl

Download URL rustytree_xarray-0.5.3-cp314-cp314-macosx_11_0_arm64.whl
Size 9.4 MB
Tags CPython 3.14 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
ea1b236b4ce4a9f8281a79b5bee7b627453f1064cef16ede1b3ddd700e631414
BLAKE2b-256 checksum
How to use checksums
f83472f1b8c336e82929704efd8eed5564195012faefe710ba90a2c60fa6a129
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 16, 2026.

Transparency log

Release files / rustytree_xarray-0.5.3-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL rustytree_xarray-0.5.3-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 11.0 MB
Tags CPython 3.13 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
d60102186b6d2e046063799ea12625924256ca64c6a5cc8fded354816460bbaf
BLAKE2b-256 checksum
How to use checksums
91ea5f4f3dc1e96561b4dc15879a7f3594015915bdb3eca2e5e8eab56d508013
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 16, 2026.

Transparency log

Release files / rustytree_xarray-0.5.3-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL rustytree_xarray-0.5.3-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 10.4 MB
Tags CPython 3.13 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
7fc0be0cd2ca1b89c1a4583215a3d3b7c65a03330e4d26a80e810263b380d92b
BLAKE2b-256 checksum
How to use checksums
a3e475e420303e394c7a898ef3276930af4005d01641adc782cd81c909da03ba
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 16, 2026.

Transparency log

Release files / rustytree_xarray-0.5.3-cp313-cp313-macosx_11_0_arm64.whl

Download URL rustytree_xarray-0.5.3-cp313-cp313-macosx_11_0_arm64.whl
Size 9.4 MB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
5e1b46e5483704f2eddb457665d4f845ef93f543f4e98731b16eacd2d48a76db
BLAKE2b-256 checksum
How to use checksums
7247b62e9f106c5c30ce2733490fc4ee6c5ff54b06cddcde1782411fcd5e0ec4
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 16, 2026.

Transparency log

Release files / rustytree_xarray-0.5.3-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL rustytree_xarray-0.5.3-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 11.0 MB
Tags CPython 3.12 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
47a51511a0351038d376e67a0cd43a99efa71c54a3dc78152646a327855e247a
BLAKE2b-256 checksum
How to use checksums
054ff1df8eb21b5c4bc8dd682b5f3e9a3499d6f476f05c9e8f3e1a5b70249c10
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 16, 2026.

Transparency log

Release files / rustytree_xarray-0.5.3-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL rustytree_xarray-0.5.3-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 10.4 MB
Tags CPython 3.12 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
5bc928c04f7b8cbf510e2c6f236480b94fd6fe0556011df560215ee3b6b39f9c
BLAKE2b-256 checksum
How to use checksums
def000d19a4ebc1bdc7bdb740a85266faeb2f3fb9255a00a27a54e12e16c3fbd
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 16, 2026.

Transparency log

Release files / rustytree_xarray-0.5.3-cp312-cp312-macosx_11_0_arm64.whl

Download URL rustytree_xarray-0.5.3-cp312-cp312-macosx_11_0_arm64.whl
Size 9.4 MB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
26b6fd7be42d605999a27e1d373d6fad0f0b35020239c3e8a951b1de246f90b0
BLAKE2b-256 checksum
How to use checksums
c1efbb255745e5b19f58d94d354976d359aac6a3e4714a268f5a356ab2dbc21c
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 16, 2026.

Transparency log

Security for rustytree-xarray 0.5.3

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

All 10 files in this release have been uploaded with provenance metadata.

Select from 10 files

Attestation for rustytree_xarray-0.5.3.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 16, 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