Skip to main content

Low dependency module to export to VTK from python

Project description

# Py2VTK

[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black) [![CI](https://github.com/anlavandier/py2vtk/actions/workflows/tests.yml/badge.svg?branch=main)](https://github.com/anlavandier/py2vtk/actions?query=workflow%3Atests) [![Documentation Status](https://readthedocs.org/projects/py2vtk/badge/?version=latest)](https://py2vtk.readthedocs.io/en/latest/?badge=latest)

Py2VTK is a low dependency module for exporting VTK files using Python for visualization/analysis in softwares like Paraview, VisIt or Mayavi.

## Acknowledgments

Py2vtk borrows heavily from [PyEVTK](https://github.com/pyscience-projects/pyevtk) and [UVW](https://github.com/prs513rosewood/uvw).

## Current state

Py2vtk is still in development. Current and future features are listed below in no particular order:

### Current and planned features

  • [x] Setting up github actions powered CI

  • [x] Finalization of a first “release” to make available via Pypi and Spack. (Pypi completed, Spack on hold until further notice).

  • [x] Recreation of PyEvtk’s API

  • [x] Parallel API using mpi4py.

  • [ ] Support of Dask Arrays (Not started yet).

  • [x] Add documentation using docstrings and [sphinx](https://www.sphinx-doc.org/en/master/).

## Installation

This package is hosted in Pypi and can be installed with pip. There is currently 3 installation modes:

  • Standard install (does not feature the MPI-enabled API)

    `bash python -m pip install py2vtk `

  • MPI Install

    `bash python -m pip install py2vtk[mpi] `

  • Test install, needed to run the unit tests locally

    `bash python -m pip install py2vtk[tests] `

## Running tests

To run the unit tests locally, use the following commands

`bash py.test -m serial # Serial tests python mpi_tester.py . -m parallel # Parallel tests `

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

py2vtk-1.0.tar.gz (52.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

py2vtk-1.0-py3-none-any.whl (40.1 kB view details)

Uploaded Python 3

File details

Details for the file py2vtk-1.0.tar.gz.

File metadata

  • Download URL: py2vtk-1.0.tar.gz
  • Upload date:
  • Size: 52.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for py2vtk-1.0.tar.gz
Algorithm Hash digest
SHA256 c341c36f0c1828bf9d4955c0a86e482eaa6e28b622a58fb8a6a9fa5db4d7e203
MD5 cc261a5d6637dc4a464713913986cee3
BLAKE2b-256 f7bdc3a43256667319a989706e5f9f06eb56943e050fdaafd40bbbd0b01e4dc6

See more details on using hashes here.

File details

Details for the file py2vtk-1.0-py3-none-any.whl.

File metadata

  • Download URL: py2vtk-1.0-py3-none-any.whl
  • Upload date:
  • Size: 40.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for py2vtk-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e9936588a00d7befb6479a20a0c1c1e30d855c2c7aa98532236bb37af8530c4e
MD5 3293e025b6dff1124c70eec45c10d490
BLAKE2b-256 9ea8ad61ae94130a81df35015399227250315e34447a6cf44eca568b69418d42

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page