runmonitor 0.2.0__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.
- runmonitor/__init__.py +125 -0
- runmonitor/__main__.py +54 -0
- runmonitor/server.py +163 -0
- runmonitor/static/style.css +398 -0
- runmonitor/storage.py +235 -0
- runmonitor/templates/dashboard.html +615 -0
- runmonitor-0.2.0.dist-info/METADATA +148 -0
- runmonitor-0.2.0.dist-info/RECORD +12 -0
- runmonitor-0.2.0.dist-info/WHEEL +5 -0
- runmonitor-0.2.0.dist-info/entry_points.txt +2 -0
- runmonitor-0.2.0.dist-info/licenses/LICENSE +21 -0
- runmonitor-0.2.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: runmonitor
|
|
3
|
+
Version: 0.2.0
|
|
4
|
+
Summary: Lean, local experiment tracker with a live, terminal-styled web dashboard.
|
|
5
|
+
Author-email: bub4tz <ezgroupnl@gmail.com>
|
|
6
|
+
License: MIT License
|
|
7
|
+
|
|
8
|
+
Copyright (c) 2026 k
|
|
9
|
+
|
|
10
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
11
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
12
|
+
in the Software without restriction, including without limitation the rights
|
|
13
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
14
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
15
|
+
furnished to do so, subject to the following conditions:
|
|
16
|
+
|
|
17
|
+
The above copyright notice and this permission notice shall be included in all
|
|
18
|
+
copies or substantial portions of the Software.
|
|
19
|
+
|
|
20
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
21
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
22
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
23
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
24
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
25
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
26
|
+
SOFTWARE.
|
|
27
|
+
|
|
28
|
+
Project-URL: Homepage, https://github.com/empero-org/runmonitor
|
|
29
|
+
Project-URL: Repository, https://github.com/empero-org/runmonitor
|
|
30
|
+
Project-URL: Issues, https://github.com/empero-org/runmonitor/issues
|
|
31
|
+
Keywords: machine-learning,experiment-tracking,metrics,dashboard,training,monitoring,mlops,tensorboard,wandb
|
|
32
|
+
Classifier: Development Status :: 4 - Beta
|
|
33
|
+
Classifier: Intended Audience :: Developers
|
|
34
|
+
Classifier: Intended Audience :: Science/Research
|
|
35
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
36
|
+
Classifier: Operating System :: OS Independent
|
|
37
|
+
Classifier: Programming Language :: Python :: 3
|
|
38
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
39
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
40
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
41
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
42
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
43
|
+
Classifier: Topic :: System :: Monitoring
|
|
44
|
+
Requires-Python: >=3.10
|
|
45
|
+
Description-Content-Type: text/markdown
|
|
46
|
+
License-File: LICENSE
|
|
47
|
+
Requires-Dist: flask>=2.0
|
|
48
|
+
Provides-Extra: system
|
|
49
|
+
Requires-Dist: psutil>=5.0; extra == "system"
|
|
50
|
+
Dynamic: license-file
|
|
51
|
+
|
|
52
|
+
# runmonitor
|
|
53
|
+
|
|
54
|
+
Lean, local experiment tracker with a live, **terminal-styled** web dashboard. Import and go.
|
|
55
|
+
|
|
56
|
+
```python
|
|
57
|
+
import runmonitor as rm
|
|
58
|
+
|
|
59
|
+
run = rm.init("my-experiment", config={"lr": 0.001, "batch_size": 32}, total_steps=1000)
|
|
60
|
+
|
|
61
|
+
for step in range(1000):
|
|
62
|
+
loss, acc = train_step()
|
|
63
|
+
run.log({"loss": loss, "accuracy": acc}, step)
|
|
64
|
+
if step % 100 == 0:
|
|
65
|
+
run.save("checkpoint.pt")
|
|
66
|
+
|
|
67
|
+
run.finish()
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
Open `http://localhost:8080` — your loss curve is already live and drawing itself.
|
|
71
|
+
|
|
72
|
+
## Install
|
|
73
|
+
|
|
74
|
+
```bash
|
|
75
|
+
pip install runmonitor # core
|
|
76
|
+
pip install "runmonitor[system]" # + CPU/RAM tracking (psutil)
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
Then in any training script:
|
|
80
|
+
|
|
81
|
+
```python
|
|
82
|
+
import runmonitor as rm
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
Or run the dashboard on its own (no training script needed):
|
|
86
|
+
|
|
87
|
+
```bash
|
|
88
|
+
runmonitor # opens the dashboard in your browser
|
|
89
|
+
python -m runmonitor # equivalent, for a checkout/vendored copy
|
|
90
|
+
RUNMONITOR_PORT=9000 runmonitor # pick a port (set before launch)
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
## The dashboard
|
|
94
|
+
|
|
95
|
+
A single, evolving view in the empero black/purple palette:
|
|
96
|
+
|
|
97
|
+
| Element | What it shows |
|
|
98
|
+
|---|---|
|
|
99
|
+
| **Metric ticker** | Every logged metric as `key=value`. Click one to **select** it. |
|
|
100
|
+
| **Live hero curve** | The selected metric, drawn point-by-point and growing every step. |
|
|
101
|
+
| **Anomaly detection** | Rolling z-score flags spikes — vertical markers on the curve + a status line ("⚠ anomaly at step N" / "● all calm"). |
|
|
102
|
+
| **Run header** | Run id, current step, status pill, elapsed, steps/sec, ETA, progress bar. |
|
|
103
|
+
| **Streak / best badges** | 🔥 improving-streak and 🏆 personal-best on the selected metric (direction-aware). |
|
|
104
|
+
| **Compare** | Pick a second run to overlay on the selected metric. |
|
|
105
|
+
| **System pane** | CPU % and RAM % over time (needs `psutil`). |
|
|
106
|
+
| **Hyperparameters / Artifacts** | Config passed to `rm.init()` and any saved files. |
|
|
107
|
+
| **Export** | Download the full run as CSV or JSON. |
|
|
108
|
+
| **Theme** | Midnight (black/purple) by default; toggle to light bone-paper. |
|
|
109
|
+
|
|
110
|
+
## API
|
|
111
|
+
|
|
112
|
+
```python
|
|
113
|
+
# Start a run (creates the project if new)
|
|
114
|
+
run = rm.init(project: str, name: str | None = None,
|
|
115
|
+
config: dict | None = None,
|
|
116
|
+
total_steps: int | None = None) -> Run
|
|
117
|
+
|
|
118
|
+
run.log(metrics: dict[str, float], step: int) # log metrics at a step
|
|
119
|
+
run.save(filepath: str) -> dict # save an artifact file
|
|
120
|
+
run.finish() # mark finished
|
|
121
|
+
run.fail() # mark crashed
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
## Storage
|
|
125
|
+
|
|
126
|
+
Everything lives in `~/.runmonitor/`:
|
|
127
|
+
- `runs.db` — SQLite database (WAL mode, thread-safe)
|
|
128
|
+
- `artifacts/<run_id>/` — saved files per run
|
|
129
|
+
|
|
130
|
+
No database setup, no API keys, no cloud.
|
|
131
|
+
|
|
132
|
+
## Requirements
|
|
133
|
+
|
|
134
|
+
- Python 3.10+
|
|
135
|
+
- Flask
|
|
136
|
+
- Chart.js (loaded from CDN in the dashboard)
|
|
137
|
+
- `psutil` (optional, for system metrics)
|
|
138
|
+
|
|
139
|
+
## Publishing to PyPI (maintainers)
|
|
140
|
+
|
|
141
|
+
```bash
|
|
142
|
+
python -m pip install --upgrade build twine
|
|
143
|
+
python -m build # → dist/runmonitor-<version>.tar.gz + .whl
|
|
144
|
+
python -m twine check dist/*
|
|
145
|
+
python -m twine upload dist/* # needs a PyPI account + API token
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
Bump `version` in `pyproject.toml` before each release.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
runmonitor/__init__.py,sha256=rRbMZ0n_4fzURs8rcqXgBVPnvbB1DG0WfEzobKgmV_w,4054
|
|
2
|
+
runmonitor/__main__.py,sha256=8bihT_jm-_D1riuCctLlkLJoizaUylFKAUcco7G9CCo,1717
|
|
3
|
+
runmonitor/server.py,sha256=lZbaYpJDI1NgyDELmFhwCZof_NnUpUnFmtLE8yPVdgI,4934
|
|
4
|
+
runmonitor/storage.py,sha256=Xj3zbbAppyOj9tgW6b2yT5yMOh_4IR7pmsZibNdFj-s,7764
|
|
5
|
+
runmonitor/static/style.css,sha256=9kdrhDCXV_gcoEELfdfTHwAVPYWBQufNd4vCzoM4DqA,12288
|
|
6
|
+
runmonitor/templates/dashboard.html,sha256=ibcisoIM3m8Ug3xVRbnwYNDaJ5ZiZOLkQGo0MSA5PFg,25323
|
|
7
|
+
runmonitor-0.2.0.dist-info/licenses/LICENSE,sha256=wI23uqCd_PcgxQPNrvHCp5eNcOG1xuVI_aJlLcBBDFY,1058
|
|
8
|
+
runmonitor-0.2.0.dist-info/METADATA,sha256=MccZUtJzr85nmp2U-BTOwncWdG4lpwk8ns52evpvSzU,5680
|
|
9
|
+
runmonitor-0.2.0.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
|
|
10
|
+
runmonitor-0.2.0.dist-info/entry_points.txt,sha256=JXpjs7SvT0j5AP-T4z_mjYgza2dv1fOu2mNhZxjXmL0,56
|
|
11
|
+
runmonitor-0.2.0.dist-info/top_level.txt,sha256=vGsypUTmcngKNLMTli0houdYY--zLrjDKg885dBvHfA,11
|
|
12
|
+
runmonitor-0.2.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 k
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
runmonitor
|