
Zarr Python
When you're wrangling multi-dimensional arrays too big for memory, this gives you chunked storage with compression and cloud integration. It's built for scientific computing workflows where you need to slice and dice terabyte-scale datasets without loading everything at once. Works seamlessly with NumPy, Dask, and Xarray, and the chunking strategy actually matters here. Getting it wrong can make your queries 65x slower according to the docs. Supports S3, GCS, and local storage with the same API. The sharding feature is clever for when you'd otherwise end up with millions of tiny files choking your filesystem. Compression is per-chunk with Blosc by default, which keeps things fast for interactive work.
- skills.sh installs
- 239
- GitHub stars
- 33.2K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add davila7/claude-code-templates --skill zarr-python --agent claude-codeInstalls into .claude/skills of the current project.
Files
Zarr Python
Overview
Zarr is a Python library for storing large N-dimensional arrays with chunking and compression. Apply this skill for efficient parallel I/O, cloud-native workflows, and seamless integration with NumPy, Dask, and Xarray.
Quick Start
Installation
uv pip install zarr
Requires Python 3.11+. For cloud storage support, install additional packages:
uv pip install s3fs # For S3
uv pip install gcsfs # For Google Cloud Storage
Basic Array Creation
import zarr
import numpy as np
# Create a 2D array with chunking and compression
z = zarr.create_array(
store="data/my_array.zarr",
shape=(10000, 10000),
chunks=(1000, 1000),
dtype="f4"
)
# Write data using NumPy-style indexing
z[:, :] = np.random.random((10000, 10000))
# Read data
data = z[0:100, 0:100] # Returns NumPy array
Core Operations
Creating Arrays
Zarr provides multiple convenience functions for array creation:
# Create empty array
z = zarr.zeros(shape=(10000, 10000), chunks=(1000, 1000), dtype='f4',
store='data.zarr')
Sponsors
Details
- Repository
- github.com/davila7/claude-code-templates
- Categories
- Data Science & ML, Automation & Workflows, Python, Cloud & Infrastructure
- First seen
- Jun 3, 2026
More from davila7/claude-code-templates
All 618- Cobrapy238
- Pylabrobot238
- Qutip237
- Torchdrug237
- Template Skill236
- Deployment Procedures235
- Gcp Cloud Run235
- Gepetto234
- Qiskit234
- Pysam233
- Pufferlib232
- Web Quality Audit232
- Cc Skill Strategic Compact231
- Cc Skill Project Guidelines Example230
- Internal Comms230
- Professional Communication227
- Datacommons Client225
- Brenda Database222
- Heygen Best Practices222
- Hmdb Database222
- Umap Learn222
- Arboreto221
- Clerk Auth220
- Cellxgene Census219