pyevtk
Export data as binary VTK files
What it is and what it does
PyEVTK is a pure Python package for exporting scientific simulation data to binary VTK format, the standard file format for visualization in ParaView, VisIt, Mayavi, and other VTK-compatible tools. It requires only NumPy and provides both low-level interfaces for arbitrary data containers and high-level convenience functions for NumPy arrays, supporting common grid types (image data, rectilinear, structured grids) and point sets.
The package is designed for post-processing workflows where you need to write simulation results to disk in a format that visualization software can read. It handles the binary VTK encoding internally, so you work with NumPy arrays and call export functions rather than managing file formats directly. Since version 0.9 it is pure Python with no external compiled dependencies, making installation straightforward across platforms.
Use it for:
- Export structured grid results from finite-element or finite-difference simulations for visualization in ParaView
- Write point cloud data from particle or meshless simulations to VTK format for post-processing analysis
- Convert NumPy array data to VTK binary files as part of a scientific computing pipeline
- Generate rectilinear grid exports from computational fluid dynamics or geophysical modeling codes
- Batch export simulation snapshots to VTK for time-series visualization in VisIt or Mayavi
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Exports scientific data to binary VTK files for visualization in tools like ParaView, VisIt, and Mayavi, with both low-level and high-level interfaces for NumPy arrays.
Yes. Low install friction, active maintenance, no security vulnerabilities, MIT license, and broad Python version support (3.7–3.14) make this a safe choice. Install it if you need to export scientific data to VTK format for visualization; the NumPy-only dependency keeps it lightweight and portable.
Install
pyevtk on PyPI
pip
pip install pyevtkuv
uv add pyevtkpoetry
poetry add pyevtkInstalling pyevtk
Before you install
Low friction: pure Python package with only NumPy as a runtime dependency, distributed as a wheel. Active maintenance with a recent release (78 days ago) and ongoing commits.
License in practice
MIT license is permissive; you can use this package freely in commercial and private projects with minimal restrictions.
Quickstart
pip install pyevtk
import numpy as np
from pyevtk.hl import gridToVTK
# Export a simple structured grid
x = np.arange(0, 10, 1, dtype='float64')
y = np.arange(0, 10, 1, dtype='float64')
z = np.arange(0, 10, 1, dtype='float64')
data = np.random.rand(9, 9, 9)
gridToVTK('./output', x, y, z, cellData={'data': data})
Verify before relying
- Whether the package handles large simulation datasets efficiently as claimed in design guidelines
- Current state of documentation beyond the README and examples directory
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.7) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — numpy |
| Maintenance | actively maintained — 78 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 240,873/month — #8,895 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: pyevtk-1.7.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
trame-vtkProvides VTK and ParaView visualization widgets…
permissive · top 5,000 on PyPI
vtkVTK is a 3D graphics, image processing, and…
permissive · top 5,000 on PyPI
pyvista-zstdCompress and decompress VTK datasets using…
permissive · top 15,000 on PyPI
pyvistaPyVista provides a NumPy-native API for 3D…
permissive · top 5,000 on PyPI
meshioReads and writes mesh files in dozens of…
permissive · top 5,000 on PyPI
pyvistaqtPyVistaQt integrates VTK 3D visualization with…
permissive · top 15,000 on PyPI
cadquery-ocp-novtkProvides Python bindings to the Open CASCADE…
permissive · top 15,000 on PyPI
meshioplusplusmeshioplusplus reads and writes mesh files in…
permissive · top 15,000 on PyPI
fast-simplificationSimplifies 3D meshes by reducing the number of…
permissive · top 15,000 on PyPI
stdebConverts Python packages into Debian source and…
permissive · top 15,000 on PyPI