skillfed

pyevtk

Export data as binary VTK files

pyevtk v1.7.0 240.9K downloads/30d#8,895 on PyPI68
Permissive license MIT Active released

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 pyevtk

uv

uv add pyevtk

poetry

poetry add pyevtk

Installing 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

Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9

Tags

vtk file exportscientific data visualizationparaview exportbinary vtk writernumpy to vtkevtk exportgrid visualization export
scientific-computingdata-exportvisualization

More Scientific/Engineering packages