rappture2web
rappture2web turns Rappture tool XML definitions into interactive web applications — no desktop GUI required.
It reads a tool.xml file, renders the input form in a browser, runs the simulation backend, and displays the output visualizations (curves, fields, tables, maps, and more) in real time over WebSocket.
Features
- Drop-in replacement for the classic Rappture Python library (
rp_library) - Supports all common Rappture output types:
curve,histogram,field(2D/3D/VTK/vector),table,sequence,image,string,number,log,mapviewer - Interactive control panels: theme toggle, download (SVG/PNG/JSON), zoom, colorscale, legend position
- Compare mode: overlay multiple simulation runs on the same plot
- All JavaScript dependencies are bundled (Plotly 3.4, Three.js 0.128) — no CDN required
Installation
pip install rappture2web
Quick start
# Run an existing Rappture tool
rappture2web /path/to/tool/
# Or specify the tool.xml directly
rappture2web /path/to/tool/tool.xml
Then open http://localhost:8000 in your browser.
Tool script compatibility
Tool scripts require only a one-line change — replace the Rappture import:
# Before
import Rappture
rx = Rappture.PyXml(sys.argv[1])
# After
import rappture2web.rp_library as Rappture
rx = Rappture.PyXml(sys.argv[1])
All rx['input.(id).current'].value reads and rx['output.curve(f).component.xy'] = data writes work unchanged.
Supported output types
| Type | Description |
|---|---|
curve |
XY line plots with legend, zoom, download |
histogram |
Bar histogram |
field |
2D heatmap, 3D scalar volume, VTK structured points, unstructured mesh, vector/flow |
table |
Data tables |
sequence |
Animated frame sequences |
image |
PNG/JPEG images |
mapviewer |
Geographic maps (scatter, choropleth, heatmap layers) |
string, number, integer, boolean |
Scalar outputs |
log |
Simulation log output |
Documentation
Full documentation is available at https://rappture2web.readthedocs.io.
License
MIT
Metadata
Release files for rappture2web 0.1.18
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| rappture2web-0.1.18.tar.gz | 3.4 MB | Without provenance | Details for rappture2web-0.1.18.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rappture2web-0.1.18-py3-none-any.whl | Python 3 | none | any | Details for rappture2web-0.1.18-py3-none-any.whl |
Total release size: 6.8 MB
Release files / rappture2web-0.1.18.tar.gz
| Download URL | rappture2web-0.1.18.tar.gz |
|---|---|
| Size | 3.4 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c91b8bcbce1135b62a86faac7e3c2399b97f7ef710555fc9c852625289c6502f
|
|
BLAKE2b-256 checksum How to use checksums |
792aa5c941b1fff493e0b47a6df7a58c76836312f29e13b59df0785ef490deb6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.11
|
Release files / rappture2web-0.1.18-py3-none-any.whl
| Download URL | rappture2web-0.1.18-py3-none-any.whl |
|---|---|
| Size | 3.4 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
39649583dec49cb3608d97595729612fdfb4f9fa1102e0e2cb9d07989d36ff80
|
|
BLAKE2b-256 checksum How to use checksums |
6db3264fb9bb82f1efa56c345d06127c1f69ad0608861a37bfda5f7e8bb316d8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.11
|
Security for rappture2web 0.1.18
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.