Skip to main content

PyVista-like API for VTK.wasm

Project description

pyvista-wasm

JupyterLite Stlite

PyVista-like API for VTK.wasm — bring intuitive 3D visualization to the browser using WebAssembly.

Try it with JupyterLite Try it with Stlite
jupyterlite-preview stlite-preview

Table of Contents

Install

PyPI

pip install pyvista-wasm

For Pyodide/stlite:

import micropip

await micropip.install("pyvista-wasm")

Usage

import pyvista_wasm as pv

plotter = pv.Plotter()
plotter.add_mesh(pv.Sphere(), color="red")
plotter.show()

Differences from pyvista-js

This project replaces the vtk.js rendering backend used in pyvista-js with VTK.wasm (@kitware/vtk-wasm npm package).

Key differences:

  • Rendering backend: VTK.wasm (WebAssembly port of VTK C++) instead of vtk.js (pure JavaScript reimplementation)
  • API style: VTK.wasm uses vtk.vtkRenderer() factory functions on a namespace object, vs vtk.js's vtk.Rendering.Core.vtkRenderer.newInstance() hierarchy
  • Initialization: VTK.wasm requires async initialization via vtkWASM.createNamespace() to load the WASM binary
  • Feature parity: VTK.wasm provides access to the full VTK C++ API, enabling features not available in vtk.js

Contributing

Contributions are welcome! Please open an issue or pull request on GitHub.

License

Apache License 2.0 © Tetsuo Koyama

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

pyvista_wasm-0.5.1.tar.gz (262.1 kB view details)

Uploaded Source

Built Distribution

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

pyvista_wasm-0.5.1-py3-none-any.whl (79.7 kB view details)

Uploaded Python 3

File details

Details for the file pyvista_wasm-0.5.1.tar.gz.

File metadata

  • Download URL: pyvista_wasm-0.5.1.tar.gz
  • Upload date:
  • Size: 262.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for pyvista_wasm-0.5.1.tar.gz
Algorithm Hash digest
SHA256 50db034d2e61760b244550753bf7f1a94763dcbf92c087ab5522cbf6a0a091d0
MD5 3138b8afb352b2f88a0bbc449f38179a
BLAKE2b-256 02b1d90869178a2f73f7ea53951a150053fb0cd116f476e21743322f160c474b

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyvista_wasm-0.5.1.tar.gz:

Publisher: release-please.yml on tkoyama010/pyvista-wasm

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyvista_wasm-0.5.1-py3-none-any.whl.

File metadata

  • Download URL: pyvista_wasm-0.5.1-py3-none-any.whl
  • Upload date:
  • Size: 79.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for pyvista_wasm-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5dab239abce9b5c20769f84724253b26c6abd20997bbcd8cc7102900beb01cb5
MD5 e276607b1c7f53753c575ae00152a7bb
BLAKE2b-256 2b7a474211e414aa53d1c5dd8dc32f8b1be1bb559623907b86113e5958e7f38b

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyvista_wasm-0.5.1-py3-none-any.whl:

Publisher: release-please.yml on tkoyama010/pyvista-wasm

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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