VoxelKit
A Python toolkit for inspecting, previewing, and QA-checking 3D/4D volumetric data.
Documentation · Getting Started · CLI Reference · Python API
VoxelKit gives you a single CLI and Python API to inspect metadata, generate slice previews, and run QA checks across NIfTI, HDF5, NumPy, TIFF, and DICOM files. Instead of wiring up nibabel, h5py, and tifffile separately, you get one consistent interface for all of them.
# quick sanity check on a whole dataset
voxelkit report-batch data/scans/
Features
- Inspect - shape, dtype, and metadata from any supported file
- Preview - PNG slice from any 3D/4D volume
- QA Reports - per-file stats and warnings (NaNs, constant arrays, zero-dominated volumes)
- Batch QA - scan an entire directory, output JSON or a self-contained HTML report with thumbnails
- DICOM Support - single
.dcmfiles and full series directories; PHI stripped by default - Anonymisation -
voxelkit anonymise ./dicoms/ --output ./clean/scrubs PHI in bulk - DICOM to NIfTI -
voxelkit convert scan.dcm scan.nii.gz - Embedding Analysis - dead dimensions, outlier samples, collapsed spaces
- REST API - FastAPI server for HTTP-based workflows
- Local GUI - optional Streamlit interface, runs entirely offline
Supported Formats
| Format | Extensions / Input |
|---|---|
| NIfTI | .nii .nii.gz |
| HDF5 | .h5 .hdf5 |
| NumPy | .npy .npz |
| TIFF | .tif .tiff |
| DICOM | .dcm file or directory of slices (series) |
Install
pip install voxelkit
pip install voxelkit[gui] # optional Streamlit GUI
Requires Python 3.9+.
Quick Start
# What's in this file?
voxelkit inspect scan.nii.gz
# Run QA checks
voxelkit report scan.nii.gz
# Grab a slice
voxelkit preview scan.nii.gz --plane axial --output preview.png
# Batch QA across a directory (JSON or self-contained HTML)
voxelkit report-batch data/scans/
voxelkit report-batch data/scans/ --html report.html
DICOM workflows:
# Inspect a single .dcm or a whole series directory (PHI stripped by default)
voxelkit inspect scan.dcm
voxelkit inspect ./series/
# Scrub PHI from every .dcm under a directory
voxelkit anonymise ./incoming/ --output ./anonymised/
# Convert DICOM to NIfTI
voxelkit convert ./series/ volume.nii.gz
Or from Python:
from voxelkit import inspect_file, report_file, report_batch
info = inspect_file("scan.nii.gz") # also handles .dcm + series dirs
report = report_file("scan.nii.gz")
batch = report_batch("data/scans/")
# DICOM-specific helpers
from voxelkit.dicom import anonymise_directory, dicom_to_nifti
anonymise_directory("./incoming/", "./anonymised/")
dicom_to_nifti("./series/", "volume.nii.gz")
Full Documentation
Complete CLI reference, Python API docs, REST API, QA warning explanations, and contributing guide:
arsalaanahmad.github.io/VoxelKit
Contributing
Contributions are welcome. See the Contributing Guide for setup instructions, workflow, and how to report issues.
Citation
If you use VoxelKit in research, please cite:
@software{voxelkit,
author = {Arsalaan Ahmad},
title = {VoxelKit},
doi = {10.5281/zenodo.19774569},
url = {https://github.com/ArsalaanAhmad/VoxelKit},
}
Disclaimer
VoxelKit is a developer and research utility. It is not a clinical decision system and must not be used for diagnosis or treatment.
Metadata
Release files for voxelkit 0.1.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| voxelkit-0.1.7.tar.gz | 67.5 kB | With provenance | Details for voxelkit-0.1.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| voxelkit-0.1.7-py3-none-any.whl | Python 3 | none | any | Details for voxelkit-0.1.7-py3-none-any.whl |
Total release size: 138.8 kB
Release files / voxelkit-0.1.7.tar.gz
| Download URL | voxelkit-0.1.7.tar.gz |
|---|---|
| Size | 67.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d09072378590b068b83bcdd0733e93661aba73e1bb863d71b7cf4eab72cbeff1
|
|
BLAKE2b-256 checksum How to use checksums |
81b954e827e3f959c9b06dd92a04d982a421f4700e48f995e3c89717a56fc698
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
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 Jul 22, 2026.
Transparency logRelease files / voxelkit-0.1.7-py3-none-any.whl
| Download URL | voxelkit-0.1.7-py3-none-any.whl |
|---|---|
| Size | 71.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ef23382b242b87a12b98b5f890813fbceaa9051118d9a22faa84ece108256386
|
|
BLAKE2b-256 checksum How to use checksums |
11c34563358227f1b087ec9e0e172898b25f4526422d028d415c137d949465bc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
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 Jul 22, 2026.
Transparency logSecurity for voxelkit 0.1.7
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
Both files in this release have been uploaded with provenance metadata.
Attestation for voxelkit-0.1.7.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 Jul 22, 2026.
Transparency logA 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.