Examples
All examples are in the examples/ directory. Each script is self-contained and runnable:
python examples/01_hello_world.py
01 — Hello World
Minimal app: title, text, and serve.
02 — Interactive Chart
Bar chart with a slider to scale values dynamically.
03 — Multi Chart
Multiple chart types (bar, line, pie) on one page.
04 — Dashboard
Metrics, charts, and tables in a columnar layout.
05 — Form Widgets
Showcase of all input widget types.
06 — Data Table
Sortable, searchable, paginated table.
07 — Theming
Switch between theme presets with a dropdown.
08 — Static Export
Export a report to self-contained HTML.
09 — Multi-Page App
App mode with multiple routes and navigation.
10 — Tabs & Accordion
Tabbed and collapsible content sections.
11 — Sidebar Nav
Sidebar layout with navigation links.
12 — Chart Datasets
Chart with multiple datasets and legends.
13 — DataFrame Plot
Using plot() with dict/DataFrame-style data.
14 — Live Updates
Progress bar updated via button callback.
15 — Grid Layout
CSS Grid with metric cards.
16 — Modal Dialog
Modal overlay triggered by a button.
Running Examples
# Clone the repo
git clone https://github.com/deftio/webwrench.git
cd webwrench
# Install
pip install -e .
# Run any example
python examples/01_hello_world.py
Then open http://localhost:6502 in your browser.