fast-array-utils
What it is and what it does
fast-array-utils provides a unified interface to convert and analyze arrays across multiple storage and compute backends—NumPy, SciPy sparse matrices, CuPy GPU arrays, Dask distributed arrays, and file-backed formats like HDF5 and Zarr. It abstracts away the differences between these formats so you can densify sparse data, move arrays between CPU and GPU memory, and compute statistics without rewriting logic for each array type.
The package is built on top of numpy and array-api-compat, keeping its core lightweight. It targets modern Python (3.12+) and is marked Production/Stable. Use it when you need to work with heterogeneous array sources in the same pipeline—for instance, reading sparse matrices from disk, densifying them, computing row statistics, and optionally moving results to GPU for downstream processing.
Use it for:
- Densify sparse matrices before passing to dense-only algorithms.
- Compute row or column statistics across mixed array types without format-specific code.
- Move Dask or CuPy arrays to CPU memory for serialization or downstream libraries.
- Unify array handling in pipelines that mix dense, sparse, and GPU data.
- Calculate aggregate statistics across distributed or GPU-resident arrays.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Converts and computes statistics across sparse, dense, GPU, and distributed array formats with a unified interface.
Yes, if you work with multiple array formats (sparse, GPU, distributed, file-backed) and want a single conversion and stats API. The low install friction, active maintenance, and zero known vulnerabilities make it safe to adopt. Be aware of the MPL-2.0 copyleft license if you redistribute. Verify that optional dependencies align with your environment before relying on GPU or Dask features.
Install
fast-array-utils on PyPI
pip
pip install fast-array-utilsuv
uv add fast-array-utilspoetry
poetry add fast-array-utilsInstalling fast-array-utils
Before you install
Low friction: pure Python wheel with two runtime dependencies (array-api-compat and numpy). Active maintenance with recent releases; last commit 2026-08-14. Requires Python 3.12 or later.
License in practice
MPL-2.0 (copyleft): you must disclose source code modifications and distribute under the same license if you redistribute the package or derivative works.
Quickstart
pip install 'fast-array-utils[accel]'
from fast_array_utils.conv import to_dense
from fast_array_utils import stats
numpy_arr = to_dense(sparse_arr)
col_sums = stats.sum(arr_2d, axis=0)
Requires Python 3.12 or later. Optional dependencies (scipy, cupy, dask, h5py, zarr) must be installed separately or via extras to use those array types.
Verify before relying
- Whether optional dependencies (scipy, cupy, dask, h5py, zarr, anndata) are automatically installed with extras or must be added separately.
- Performance characteristics and memory overhead compared to calling array libraries directly.
- Whether the testing extra includes test fixtures or only testing utilities.
Package facts
| License | MPL-2.0 (copyleft) |
| Python support | supports the current Python release (>=3.12) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — array-api-compat, numpy |
| Maintenance | actively maintained — 28 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 417,790/month — #6,807 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: fast_array_utils-1.5-py3-none-any.whl
Tags
More Scientific/Engineering packages
NumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
pandaspandas provides fast, flexible data structures…
permissive · top 100 on PyPI
scipyscipy provides numerical algorithms for…
permissive · top 100 on PyPI
scikit-learnscikit-learn provides a comprehensive Python…
permissive · top 1,000 on PyPI
dilldill extends Python's pickle module to…
permissive · top 1,000 on PyPI
multiprocessMultiprocess is an enhanced fork of Python's…
permissive · top 1,000 on PyPI
array-api-compatProvides a unified wrapper around NumPy, CuPy,…
permissive · top 5,000 on PyPI
sparseProvides multi-dimensional sparse array data…
permissive · top 5,000 on PyPI
numbaggNumbagg provides fast N-dimensional aggregation…
unclear · top 5,000 on PyPI
tiledbTileDB-Py provides a Python interface to the…
permissive · top 15,000 on PyPI
nvidia-cusparseProvides NVIDIA CUSPARSE native runtime…
unclear · top 1,000 on PyPI
nvidia-cusparse-cu12Provides NVIDIA CUSPARSE native runtime…
unclear · top 1,000 on PyPI
numpy-groupiesProvides optimized group-indexing operations on…
permissive · top 15,000 on PyPI
tabmatProvides efficient matrix classes for tabular…
unclear · top 15,000 on PyPI
sparse-dot-topnPerforms fast sparse matrix multiplication with…
permissive · top 15,000 on PyPI
boost-histogramboost-histogram provides Python bindings to…
permissive · top 5,000 on PyPI