staticdash 0.2.1__tar.gz → 0.2.2__tar.gz

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.
@@ -0,0 +1,43 @@
1
+ # staticdash
2
+
3
+ staticdash is a lightweight Python module for creating static, multi-page HTML dashboards. It supports:
4
+
5
+ - Plotly plots (interactive, responsive)
6
+ - Pandas DataFrames as sortable tables
7
+ - Text and headers (Markdown-like)
8
+ - File download buttons
9
+ - Multi-page navigation with sidebar
10
+ - Custom CSS and JavaScript
11
+ - Easy extension for new content types
12
+
13
+ ## Installation
14
+
15
+ ```bash
16
+ git clone https://github.com/briday1/staticdash.git
17
+ cd staticdash
18
+ pip install .
19
+ ```
20
+
21
+ ## Features
22
+
23
+ - **Add Plotly figures:** `page.add(fig)`
24
+ - **Add tables:** `page.add(df)` (sortable by default)
25
+ - **Add text or headers:** `page.add("Some text")`, `page.add_header("Title", level=2)`
26
+ - **Add download buttons:** `page.add_download("path/to/file", "Label")`
27
+ - **Multi-page:** Create multiple `Page` objects and add them to your `Dashboard`
28
+ - **Custom styling:** Edit `assets/css/style.css` for your own look
29
+
30
+ ## Options
31
+
32
+ - **Sidebar navigation:** Fixed, with active highlighting
33
+ - **Responsive layout:** Works on desktop and mobile
34
+ - **Export:** Outputs a static HTML dashboard (no server needed)
35
+ - **Per-page HTML:** Also generates individual HTML files for each page
36
+
37
+ ## Live Demo
38
+
39
+ [View the latest demo dashboard](https://briday1.github.io/staticdash/)
40
+
41
+ ---
42
+
43
+ For a full example, see [`demo.py`](./demo.py) in this repository.
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "staticdash"
7
- version = "0.2.1"
7
+ version = "0.2.2"
8
8
  description = "A lightweight static HTML dashboard generator with Plotly and pandas support."
9
9
  authors = [
10
10
  { name = "Brian Day", email = "brian.day1@gmail.com" }
@@ -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.
staticdash-0.2.1/PKG-INFO DELETED
@@ -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.
@@ -1,75 +0,0 @@
1
- # staticdash
2
-
3
- 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.
4
-
5
- ## Installation
6
-
7
- Clone the repository and install it in editable mode:
8
-
9
- ```bash
10
- git clone https://github.com/briday1/staticdash.git
11
- cd staticdash
12
- pip install .
13
- ```
14
-
15
- ## Usage
16
-
17
- Create a Python script like this:
18
-
19
- ```python
20
- from staticdash.dashboard import Dashboard, Page
21
- import plotly.express as px
22
- import pandas as pd
23
- import numpy as np
24
-
25
- # Create sample data
26
- df = pd.DataFrame({
27
- "Category": ["A", "B", "C", "D"],
28
- "Value": [10, 20, 30, 40]
29
- })
30
-
31
- df2 = pd.DataFrame({
32
- "Time": pd.date_range("2024-01-01", periods=10, freq="D"),
33
- "Signal": np.random.randn(10).cumsum()
34
- })
35
-
36
- fig1 = px.bar(df, x="Category", y="Value", title="Bar Chart Example")
37
- fig2 = px.line(df2, x="Time", y="Signal", title="Signal over Time")
38
-
39
- # Build dashboard
40
- dashboard = Dashboard(title="StaticDash Demo")
41
-
42
- # Page 1: Overview
43
- page1 = Page("overview", "Overview")
44
- page1.add("Welcome to the StaticDash demo. Below is a bar chart and a table.")
45
- page1.add(fig1)
46
- page1.add(df)
47
-
48
- # Page 2: Timeseries
49
- page2 = Page("timeseries", "Timeseries")
50
- page2.add("Here is a random time series with cumulative noise.")
51
- page2.add(fig2)
52
- page2.add(df2)
53
-
54
- # Page 3: Summary
55
- page3 = Page("summary", "Summary")
56
- page3.add("Summary and notes can be added here.")
57
- page3.add("StaticDash is a lightweight static dashboard generator.")
58
-
59
- # Page 4: Download
60
- page4 = Page("download", "Download")
61
- page4.add("Here is a button to download a file.")
62
- page4.add_download('./test_file.txt', "Download File")
63
- page4.add_download('./test_file2.txt', "Download Another File")
64
-
65
- # Register pages
66
- dashboard.add_page(page1)
67
- dashboard.add_page(page2)
68
- dashboard.add_page(page3)
69
- dashboard.add_page(page4)
70
-
71
- # Export
72
- dashboard.publish(output_dir="output")
73
- ```
74
-
75
- After running the script, open output/index.html in your browser.
@@ -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.
File without changes