staticdash 0.2.1__py3-none-any.whl → 0.2.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,57 @@
1
+ Metadata-Version: 2.4
2
+ Name: staticdash
3
+ Version: 0.2.2
4
+ Summary: A lightweight static HTML dashboard generator with Plotly and pandas support.
5
+ Author-email: Brian Day <brian.day1@gmail.com>
6
+ License: CC0-1.0
7
+ Project-URL: Homepage, https://github.com/briday1/staticdash
8
+ Project-URL: Repository, https://github.com/briday1/staticdash
9
+ Requires-Python: >=3.8
10
+ Description-Content-Type: text/markdown
11
+ Requires-Dist: plotly
12
+ Requires-Dist: pandas
13
+ Requires-Dist: dominate
14
+
15
+ # staticdash
16
+
17
+ staticdash is a lightweight Python module for creating static, multi-page HTML dashboards. It supports:
18
+
19
+ - Plotly plots (interactive, responsive)
20
+ - Pandas DataFrames as sortable tables
21
+ - Text and headers (Markdown-like)
22
+ - File download buttons
23
+ - Multi-page navigation with sidebar
24
+ - Custom CSS and JavaScript
25
+ - Easy extension for new content types
26
+
27
+ ## Installation
28
+
29
+ ```bash
30
+ git clone https://github.com/briday1/staticdash.git
31
+ cd staticdash
32
+ pip install .
33
+ ```
34
+
35
+ ## Features
36
+
37
+ - **Add Plotly figures:** `page.add(fig)`
38
+ - **Add tables:** `page.add(df)` (sortable by default)
39
+ - **Add text or headers:** `page.add("Some text")`, `page.add_header("Title", level=2)`
40
+ - **Add download buttons:** `page.add_download("path/to/file", "Label")`
41
+ - **Multi-page:** Create multiple `Page` objects and add them to your `Dashboard`
42
+ - **Custom styling:** Edit `assets/css/style.css` for your own look
43
+
44
+ ## Options
45
+
46
+ - **Sidebar navigation:** Fixed, with active highlighting
47
+ - **Responsive layout:** Works on desktop and mobile
48
+ - **Export:** Outputs a static HTML dashboard (no server needed)
49
+ - **Per-page HTML:** Also generates individual HTML files for each page
50
+
51
+ ## Live Demo
52
+
53
+ [View the latest demo dashboard](https://briday1.github.io/staticdash/)
54
+
55
+ ---
56
+
57
+ For a full example, see [`demo.py`](./demo.py) in this repository.
@@ -2,7 +2,7 @@ staticdash/__init__.py,sha256=KqViaDkiQnhBI8-j3hr14umLDmPgddvdB_G1nJeC5Xs,38
2
2
  staticdash/dashboard.py,sha256=trPzco0AZw4IAwZzgY__RsOjwg4UrD7etB-4Da1kHE0,7515
3
3
  staticdash/assets/css/style.css,sha256=kL6FAGxIwYrfNoo4oCzC-ygHmyOZDEjhjixpY0YGpss,2649
4
4
  staticdash/assets/js/script.js,sha256=SMOyh7_E_BlvLYMEwYlvCnV7-GnMR-x8PtEiFbIIAsw,3089
5
- staticdash-0.2.1.dist-info/METADATA,sha256=IohPqKSIpXUNPsDhZUFXTpMbtwcrHzYwrhQnUX1Wync,2409
6
- staticdash-0.2.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
7
- staticdash-0.2.1.dist-info/top_level.txt,sha256=3MzZU6SptkUkjcHV1cvPji0H4aRzPphLHnpStgGEcxM,11
8
- staticdash-0.2.1.dist-info/RECORD,,
5
+ staticdash-0.2.2.dist-info/METADATA,sha256=VDgodqPfaNsvqb-H8gqWWpixRKZie42xF3xG7jlz7rA,1776
6
+ staticdash-0.2.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
7
+ staticdash-0.2.2.dist-info/top_level.txt,sha256=3MzZU6SptkUkjcHV1cvPji0H4aRzPphLHnpStgGEcxM,11
8
+ staticdash-0.2.2.dist-info/RECORD,,
@@ -1,89 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: staticdash
3
- Version: 0.2.1
4
- Summary: A lightweight static HTML dashboard generator with Plotly and pandas support.
5
- Author-email: Brian Day <brian.day1@gmail.com>
6
- License: CC0-1.0
7
- Project-URL: Homepage, https://github.com/briday1/staticdash
8
- Project-URL: Repository, https://github.com/briday1/staticdash
9
- Requires-Python: >=3.8
10
- Description-Content-Type: text/markdown
11
- Requires-Dist: plotly
12
- Requires-Dist: pandas
13
- Requires-Dist: dominate
14
-
15
- # staticdash
16
-
17
- staticdash is a lightweight Python module for creating static, multi-page HTML dashboards. It supports Plotly plots, tables, and text content, with a fixed sidebar for navigation.
18
-
19
- ## Installation
20
-
21
- Clone the repository and install it in editable mode:
22
-
23
- ```bash
24
- git clone https://github.com/briday1/staticdash.git
25
- cd staticdash
26
- pip install .
27
- ```
28
-
29
- ## Usage
30
-
31
- Create a Python script like this:
32
-
33
- ```python
34
- from staticdash.dashboard import Dashboard, Page
35
- import plotly.express as px
36
- import pandas as pd
37
- import numpy as np
38
-
39
- # Create sample data
40
- df = pd.DataFrame({
41
- "Category": ["A", "B", "C", "D"],
42
- "Value": [10, 20, 30, 40]
43
- })
44
-
45
- df2 = pd.DataFrame({
46
- "Time": pd.date_range("2024-01-01", periods=10, freq="D"),
47
- "Signal": np.random.randn(10).cumsum()
48
- })
49
-
50
- fig1 = px.bar(df, x="Category", y="Value", title="Bar Chart Example")
51
- fig2 = px.line(df2, x="Time", y="Signal", title="Signal over Time")
52
-
53
- # Build dashboard
54
- dashboard = Dashboard(title="StaticDash Demo")
55
-
56
- # Page 1: Overview
57
- page1 = Page("overview", "Overview")
58
- page1.add("Welcome to the StaticDash demo. Below is a bar chart and a table.")
59
- page1.add(fig1)
60
- page1.add(df)
61
-
62
- # Page 2: Timeseries
63
- page2 = Page("timeseries", "Timeseries")
64
- page2.add("Here is a random time series with cumulative noise.")
65
- page2.add(fig2)
66
- page2.add(df2)
67
-
68
- # Page 3: Summary
69
- page3 = Page("summary", "Summary")
70
- page3.add("Summary and notes can be added here.")
71
- page3.add("StaticDash is a lightweight static dashboard generator.")
72
-
73
- # Page 4: Download
74
- page4 = Page("download", "Download")
75
- page4.add("Here is a button to download a file.")
76
- page4.add_download('./test_file.txt', "Download File")
77
- page4.add_download('./test_file2.txt', "Download Another File")
78
-
79
- # Register pages
80
- dashboard.add_page(page1)
81
- dashboard.add_page(page2)
82
- dashboard.add_page(page3)
83
- dashboard.add_page(page4)
84
-
85
- # Export
86
- dashboard.publish(output_dir="output")
87
- ```
88
-
89
- After running the script, open output/index.html in your browser.