PyVista-like API for VTK.wasm
Project description
pyvista-wasm
PyVista-like API for VTK.wasm — bring intuitive 3D visualization to the browser using WebAssembly.
| Try it with JupyterLite | Try it with Stlite |
|---|---|
Table of Contents
Install
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'svtk.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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
50db034d2e61760b244550753bf7f1a94763dcbf92c087ab5522cbf6a0a091d0
|
|
| MD5 |
3138b8afb352b2f88a0bbc449f38179a
|
|
| BLAKE2b-256 |
02b1d90869178a2f73f7ea53951a150053fb0cd116f476e21743322f160c474b
|
Provenance
The following attestation bundles were made for pyvista_wasm-0.5.1.tar.gz:
Publisher:
release-please.yml on tkoyama010/pyvista-wasm
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyvista_wasm-0.5.1.tar.gz -
Subject digest:
50db034d2e61760b244550753bf7f1a94763dcbf92c087ab5522cbf6a0a091d0 - Sigstore transparency entry: 1282819956
- Sigstore integration time:
-
Permalink:
tkoyama010/pyvista-wasm@5ce29a84c3442bd28baf90643cc663f6b03d9c56 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/tkoyama010
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-please.yml@5ce29a84c3442bd28baf90643cc663f6b03d9c56 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5dab239abce9b5c20769f84724253b26c6abd20997bbcd8cc7102900beb01cb5
|
|
| MD5 |
e276607b1c7f53753c575ae00152a7bb
|
|
| BLAKE2b-256 |
2b7a474211e414aa53d1c5dd8dc32f8b1be1bb559623907b86113e5958e7f38b
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyvista_wasm-0.5.1-py3-none-any.whl -
Subject digest:
5dab239abce9b5c20769f84724253b26c6abd20997bbcd8cc7102900beb01cb5 - Sigstore transparency entry: 1282819962
- Sigstore integration time:
-
Permalink:
tkoyama010/pyvista-wasm@5ce29a84c3442bd28baf90643cc663f6b03d9c56 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/tkoyama010
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-please.yml@5ce29a84c3442bd28baf90643cc663f6b03d9c56 -
Trigger Event:
push
-
Statement type: