pyvista-zstd
VTK zstandard compression library.
What it is and what it does
pyvista-zstd is a compression library that writes VTK datasets to a custom .pv format using Zstandard (zstd) compression instead of VTK's built-in XML writer. It wraps PyVista and zstandard to provide faster I/O with better compression ratios. The library automatically registers with PyVista's reader system, so once installed, pv.read() handles .pv files directly without additional imports.
The main advantage over VTK's XML format is speed and compression efficiency. According to the description, it achieves significantly higher write throughput (up to 1845 MB/s with threading) and better compression ratios (3.02 vs 2.52 for zlib) while using less disk space overall. It supports multi-threaded compression and decompression, and optimizes storage for fixed-width cell topologies by storing the cell width once instead of repeating it for every cell.
Use it for:
- Save large VTK meshes to disk quickly when working with scientific simulations or 3D geometry data.
- Reduce storage footprint for archived VTK datasets while maintaining fast read access.
- Parallelize compression of multiple VTK files in batch workflows using the multi-threaded write API.
- Integrate compressed mesh I/O into PyVista-based visualization or analysis pipelines without code changes.
- Replace VTK XML format in existing projects where write speed or compression ratio is a bottleneck.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Compress and decompress VTK datasets using Zstandard compression with multi-threaded read and write operations, integrated with PyVista.
Yes, if you work with VTK datasets in PyVista and care about I/O performance or file size. The package is actively maintained, has no known vulnerabilities, and integrates seamlessly with PyVista. Install friction is low. The MIT license poses no restrictions. Best suited for workflows where mesh file I/O is a performance concern; less critical for one-off analysis or small datasets.
Install
pyvista-zstd on PyPI
pip
pip install pyvista-zstduv
uv add pyvista-zstdpoetry
poetry add pyvista-zstdInstalling pyvista-zstd
Before you install
Low install friction with a pure-Python wheel. Active maintenance: released 4 days ago with last commit on 2026-08-10. Supports Python 3.10–3.13. Three runtime dependencies (pyvista, tqdm, zstandard) are all stable, widely-used libraries.
License in practice
MIT license is permissive; you can use this in commercial and proprietary projects with minimal restrictions.
Quickstart
pip install pyvista-zstd
import pyvista_zstd
import pyvista as pv
ds = pv.Sphere()
pyvista_zstd.write(ds, "dataset.pv")
ds_in = pyvista_zstd.read("dataset.pv")
Verify before relying
- Whether the 37x read speedup and 14x write speedup claims apply to typical real-world datasets or only to the specific benchmark case shown in the description.
- Compatibility with VTK dataset types beyond those explicitly mentioned (triangles, quads, tetrahedra).
- Whether the .pv format is stable across future versions or if there are breaking changes to expect.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 3 — pyvista, tqdm, zstandard |
| Maintenance | actively maintained — 4 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 88,912/month — #13,694 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: pyvista_zstd-0.3.0-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
zstdProvides Python bindings to the Zstandard…
permissive · top 5,000 on PyPI
pyzstdProvides Python bindings to the Zstandard…
permissive · top 5,000 on PyPI
pyevtkExports scientific data to binary VTK files for…
permissive · top 15,000 on PyPI
pyvistaPyVista provides a NumPy-native API for 3D…
permissive · top 5,000 on PyPI
zipfile-zstdExtends Python's standard zipfile module to…
permissive · top 5,000 on PyPI
backports.zstdProvides Zstandard compression support for…
permissive · top 1,000 on PyPI
zstandardProvides Python bindings to the Zstandard…
permissive · top 1,000 on PyPI
fastarFastar provides high-performance tar archive…
permissive · top 1,000 on PyPI
pyvistaqtPyVistaQt integrates VTK 3D visualization with…
permissive · top 15,000 on PyPI
xopenxopen provides a drop-in replacement for…
permissive · top 5,000 on PyPI