Skip to main content

Web-based Rappture tool interface - renders XML tool definitions as interactive web applications

Project description

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

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

rappture2web-0.1.17.tar.gz (3.4 MB view details)

Uploaded Source

Built Distribution

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

rappture2web-0.1.17-py3-none-any.whl (3.4 MB view details)

Uploaded Python 3

File details

Details for the file rappture2web-0.1.17.tar.gz.

File metadata

  • Download URL: rappture2web-0.1.17.tar.gz
  • Upload date:
  • Size: 3.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.11

File hashes

Hashes for rappture2web-0.1.17.tar.gz
Algorithm Hash digest
SHA256 7997084a4f86c043981f60ecf7ca0db5ec8ed2c2e8b842ea762b82316afe2cd1
MD5 8eadf3c1c0c806335817a1321619cdde
BLAKE2b-256 0964035c8be34fc952ffb4c86fa587fc8c9ec387225d45c7b6eafd295cf1d911

See more details on using hashes here.

File details

Details for the file rappture2web-0.1.17-py3-none-any.whl.

File metadata

  • Download URL: rappture2web-0.1.17-py3-none-any.whl
  • Upload date:
  • Size: 3.4 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.11

File hashes

Hashes for rappture2web-0.1.17-py3-none-any.whl
Algorithm Hash digest
SHA256 75bff3293b3089c4f991c37e35dfda8830e9c3cccb6dd3d656ea8eb215b3a7e0
MD5 50644c53d9cf01fefd1a1e2e3f39de08
BLAKE2b-256 2da5667e2a44499dd12d0b3da76e73286d9564b0c16315f01d18af2d5dd603da

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