vibetrack 0.1a0__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.
Files changed (41) hide show
  1. vibetrack-0.1a0/LICENSE +183 -0
  2. vibetrack-0.1a0/PKG-INFO +479 -0
  3. vibetrack-0.1a0/README.md +263 -0
  4. vibetrack-0.1a0/pyproject.toml +57 -0
  5. vibetrack-0.1a0/setup.cfg +4 -0
  6. vibetrack-0.1a0/tests/test_compare.py +128 -0
  7. vibetrack-0.1a0/tests/test_config.py +128 -0
  8. vibetrack-0.1a0/tests/test_db.py +396 -0
  9. vibetrack-0.1a0/tests/test_distributed.py +113 -0
  10. vibetrack-0.1a0/tests/test_media.py +456 -0
  11. vibetrack-0.1a0/tests/test_outputs.py +775 -0
  12. vibetrack-0.1a0/tests/test_reader.py +140 -0
  13. vibetrack-0.1a0/tests/test_smoother.py +265 -0
  14. vibetrack-0.1a0/tests/test_sysmetrics.py +300 -0
  15. vibetrack-0.1a0/tests/test_writer.py +429 -0
  16. vibetrack-0.1a0/vibetrack/__init__.py +144 -0
  17. vibetrack-0.1a0/vibetrack/cli.py +450 -0
  18. vibetrack-0.1a0/vibetrack/compare.py +109 -0
  19. vibetrack-0.1a0/vibetrack/config.py +120 -0
  20. vibetrack-0.1a0/vibetrack/db.py +1268 -0
  21. vibetrack-0.1a0/vibetrack/defaults.py +39 -0
  22. vibetrack-0.1a0/vibetrack/media.py +237 -0
  23. vibetrack-0.1a0/vibetrack/reader.py +248 -0
  24. vibetrack-0.1a0/vibetrack/smoother.py +111 -0
  25. vibetrack-0.1a0/vibetrack/sysmetrics.py +562 -0
  26. vibetrack-0.1a0/vibetrack/types.py +81 -0
  27. vibetrack-0.1a0/vibetrack/viewers/__init__.py +67 -0
  28. vibetrack-0.1a0/vibetrack/viewers/base.py +53 -0
  29. vibetrack-0.1a0/vibetrack/viewers/console.py +122 -0
  30. vibetrack-0.1a0/vibetrack/viewers/gradio_ui.py +131 -0
  31. vibetrack-0.1a0/vibetrack/viewers/mcp.py +284 -0
  32. vibetrack-0.1a0/vibetrack/viewers/telegram.py +114 -0
  33. vibetrack-0.1a0/vibetrack/viewers/web.html +2538 -0
  34. vibetrack-0.1a0/vibetrack/viewers/web.py +623 -0
  35. vibetrack-0.1a0/vibetrack/writer.py +497 -0
  36. vibetrack-0.1a0/vibetrack.egg-info/PKG-INFO +479 -0
  37. vibetrack-0.1a0/vibetrack.egg-info/SOURCES.txt +39 -0
  38. vibetrack-0.1a0/vibetrack.egg-info/dependency_links.txt +1 -0
  39. vibetrack-0.1a0/vibetrack.egg-info/entry_points.txt +2 -0
  40. vibetrack-0.1a0/vibetrack.egg-info/requires.txt +17 -0
  41. vibetrack-0.1a0/vibetrack.egg-info/top_level.txt +1 -0
@@ -0,0 +1,183 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship made available under
36
+ the License, as indicated by a copyright notice that is included in
37
+ or attached to the work (an example is provided in the Appendix below).
38
+
39
+ "Derivative Works" shall mean any work, whether in Source or Object
40
+ form, that is based on (or derived from) the Work and for which the
41
+ editorial revisions, annotations, elaborations, or other modifications
42
+ represent, as a whole, an original work of authorship. For the purposes
43
+ of this License, Derivative Works shall not include works that remain
44
+ separable from, or merely link (or bind by name) to the interfaces of,
45
+ the Work and Derivative Works thereof.
46
+
47
+ "Contribution" shall mean, as submitted to the Licensor for inclusion
48
+ in the Work by the copyright owner or by an Individual or Legal Entity
49
+ authorized to submit on behalf of the copyright owner. For the purposes
50
+ of this definition, "submitted" means any form of electronic, verbal,
51
+ or written communication sent to the Licensor or its representatives,
52
+ including but not limited to communication on electronic mailing lists,
53
+ source code control systems, and issue tracking systems that are managed
54
+ by, or on behalf of, the Licensor for the purpose of submitting the Work,
55
+ but excluding communication that is conspicuously marked or otherwise
56
+ designated in writing by the copyright owner as "Not a Contribution."
57
+
58
+ "Contributor" shall mean Licensor and any Legal Entity on behalf of
59
+ whom a Contribution has been received by the Licensor and included
60
+ within the Work.
61
+
62
+ 2. Grant of Copyright License. Subject to the terms and conditions of
63
+ this License, each Contributor hereby grants to You a perpetual,
64
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
65
+ copyright license to reproduce, prepare Derivative Works of,
66
+ publicly display, publicly perform, sublicense, and distribute the
67
+ Work and such Derivative Works in Source or Object form.
68
+
69
+ 3. Grant of Patent License. Subject to the terms and conditions of
70
+ this License, each Contributor hereby grants to You a perpetual,
71
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
72
+ (except as stated in this section) patent license to make, have made,
73
+ use, offer to sell, sell, import, and otherwise transfer the Work,
74
+ where such license applies only to those patent claims licensable
75
+ by such Contributor that are necessarily infringed by their
76
+ Contribution(s) alone or by the combined work of their Contribution(s)
77
+ with the Work to which such Contribution(s) was submitted. If You
78
+ institute patent litigation against any entity (including a cross-claim
79
+ or counterclaim in a lawsuit) alleging that the Work or any patent
80
+ claims licensable by such Contributor constitute direct or contributory
81
+ patent infringement, then any patent licenses granted to You under
82
+ this License for that Work shall terminate as of the date such
83
+ litigation is filed.
84
+
85
+ 4. Redistribution. You may reproduce and distribute copies of the
86
+ Work or Derivative Works thereof in any medium, with or without
87
+ modifications, and in Source or Object form, provided that You
88
+ meet the following conditions:
89
+
90
+ (a) You must give any other recipients of the Work or Derivative
91
+ Works a copy of this License; and
92
+
93
+ (b) You must cause any modified files to carry prominent notices
94
+ stating that You changed the files; and
95
+
96
+ (c) You must retain, in the Source form of any Derivative Works
97
+ that You distribute, all copyright, patent, trademark, and
98
+ attribution notices from the Source form of the Work,
99
+ excluding those notices that do not pertain to any part of
100
+ the Derivative Works; and
101
+
102
+ (d) If the Work includes a "NOTICE" text file as part of its
103
+ distribution, You must include a readable copy of the
104
+ attribution notices contained within such NOTICE file, in
105
+ at least one of the following places: within a NOTICE text
106
+ file distributed as part of the Derivative Works; within
107
+ the Source form or documentation, if provided along with the
108
+ Derivative Works; or, within a display generated by the
109
+ Derivative Works, if and wherever such third-party notices
110
+ normally appear. The contents of the NOTICE file are for
111
+ informational purposes only and do not modify the License.
112
+ You may add Your own attribution notices within Derivative
113
+ Works that You distribute, alongside or in addition to the
114
+ NOTICE text from the Work, provided that such additional
115
+ attribution notices cannot be construed as modifying the License.
116
+
117
+ You may add Your own license statement for Your modifications and
118
+ may provide additional grant of rights to use, copy, modify, merge,
119
+ publish, distribute, sublicense, and/or sell copies of the
120
+ Derivative Works, and to permit persons to whom the Derivative Works
121
+ is furnished to do so.
122
+
123
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
124
+ any Contribution intentionally submitted for inclusion in the Work
125
+ by You to the Licensor shall be under the terms and conditions of
126
+ this License, without any additional terms or conditions.
127
+ Notwithstanding the above, nothing herein shall supersede or modify
128
+ the terms of any separate license agreement you may have executed
129
+ with Licensor regarding such Contributions.
130
+
131
+ 6. Trademarks. This License does not grant permission to use the trade
132
+ names, trademarks, service marks, or product names of the Licensor,
133
+ except as required for reasonable and customary use in describing the
134
+ origin of the Work and reproducing the content of the NOTICE file.
135
+
136
+ 7. Disclaimer of Warranty. Unless required by applicable law or
137
+ agreed to in writing, Licensor provides the Work (and each
138
+ Contributor provides its Contributions) on an "AS IS" BASIS,
139
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
140
+ implied, including, without limitation, any warranties or conditions
141
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
142
+ PARTICULAR PURPOSE. You are solely responsible for determining the
143
+ appropriateness of using or reproducing the Work and assume any
144
+ risks associated with Your exercise of permissions under this License.
145
+
146
+ 8. Limitation of Liability. In no event and under no legal theory,
147
+ whether in tort (including negligence), contract, or otherwise,
148
+ unless required by applicable law (such as deliberate and grossly
149
+ negligent acts) or agreed to in writing, shall any Contributor be
150
+ liable to You for damages, including any direct, indirect, special,
151
+ incidental, or exemplary damages of any character arising as a
152
+ result of this License or out of the use or inability to use the
153
+ Work (including but not limited to damages for loss of goodwill,
154
+ work stoppage, computer failure or malfunction, or all other
155
+ commercial damages or losses), even if such Contributor has been
156
+ advised of the possibility of such damages.
157
+
158
+ 9. Accepting Warranty or Liability. While redistributing the Work or
159
+ Derivative Works thereof, You may choose to offer, and charge a fee
160
+ for, acceptance of support, warranty, indemnity, or other liability
161
+ obligations and/or rights consistent with this License. However, in
162
+ accepting such obligations, You may offer such obligations only on
163
+ Your own behalf and on Your sole responsibility, not on behalf of
164
+ any other Contributor, and only if You agree to indemnify, defend,
165
+ and hold each Contributor harmless for any liability incurred by,
166
+ or claims asserted against, such Contributor by reason of your
167
+ accepting any such warranty or additional liability.
168
+
169
+ END OF TERMS AND CONDITIONS
170
+
171
+ Copyright 2026 Sergei Chicherin
172
+
173
+ Licensed under the Apache License, Version 2.0 (the "License");
174
+ you may not use this file except in compliance with the License.
175
+ You may obtain a copy of the License at
176
+
177
+ http://www.apache.org/licenses/LICENSE-2.0
178
+
179
+ Unless required by applicable law or agreed to in writing, software
180
+ distributed under the License is distributed on an "AS IS" BASIS,
181
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
182
+ See the License for the specific language governing permissions and
183
+ limitations under the License.
@@ -0,0 +1,479 @@
1
+ Metadata-Version: 2.4
2
+ Name: vibetrack
3
+ Version: 0.1a0
4
+ Summary: Lightweight experiment tracking — drop-in compatible with TensorBoard and W&B APIs.
5
+ Author-email: Sergei Chicherin <serenkiy@ieee.org>
6
+ License: Apache License
7
+ Version 2.0, January 2004
8
+ http://www.apache.org/licenses/
9
+
10
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
11
+
12
+ 1. Definitions.
13
+
14
+ "License" shall mean the terms and conditions for use, reproduction,
15
+ and distribution as defined by Sections 1 through 9 of this document.
16
+
17
+ "Licensor" shall mean the copyright owner or entity authorized by
18
+ the copyright owner that is granting the License.
19
+
20
+ "Legal Entity" shall mean the union of the acting entity and all
21
+ other entities that control, are controlled by, or are under common
22
+ control with that entity. For the purposes of this definition,
23
+ "control" means (i) the power, direct or indirect, to cause the
24
+ direction or management of such entity, whether by contract or
25
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
26
+ outstanding shares, or (iii) beneficial ownership of such entity.
27
+
28
+ "You" (or "Your") shall mean an individual or Legal Entity
29
+ exercising permissions granted by this License.
30
+
31
+ "Source" form shall mean the preferred form for making modifications,
32
+ including but not limited to software source code, documentation
33
+ source, and configuration files.
34
+
35
+ "Object" form shall mean any form resulting from mechanical
36
+ transformation or translation of a Source form, including but
37
+ not limited to compiled object code, generated documentation,
38
+ and conversions to other media types.
39
+
40
+ "Work" shall mean the work of authorship made available under
41
+ the License, as indicated by a copyright notice that is included in
42
+ or attached to the work (an example is provided in the Appendix below).
43
+
44
+ "Derivative Works" shall mean any work, whether in Source or Object
45
+ form, that is based on (or derived from) the Work and for which the
46
+ editorial revisions, annotations, elaborations, or other modifications
47
+ represent, as a whole, an original work of authorship. For the purposes
48
+ of this License, Derivative Works shall not include works that remain
49
+ separable from, or merely link (or bind by name) to the interfaces of,
50
+ the Work and Derivative Works thereof.
51
+
52
+ "Contribution" shall mean, as submitted to the Licensor for inclusion
53
+ in the Work by the copyright owner or by an Individual or Legal Entity
54
+ authorized to submit on behalf of the copyright owner. For the purposes
55
+ of this definition, "submitted" means any form of electronic, verbal,
56
+ or written communication sent to the Licensor or its representatives,
57
+ including but not limited to communication on electronic mailing lists,
58
+ source code control systems, and issue tracking systems that are managed
59
+ by, or on behalf of, the Licensor for the purpose of submitting the Work,
60
+ but excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any Legal Entity on behalf of
64
+ whom a Contribution has been received by the Licensor and included
65
+ within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by the combined work of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a cross-claim
84
+ or counterclaim in a lawsuit) alleging that the Work or any patent
85
+ claims licensable by such Contributor constitute direct or contributory
86
+ patent infringement, then any patent licenses granted to You under
87
+ this License for that Work shall terminate as of the date such
88
+ litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or Derivative
96
+ Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, You must include a readable copy of the
109
+ attribution notices contained within such NOTICE file, in
110
+ at least one of the following places: within a NOTICE text
111
+ file distributed as part of the Derivative Works; within
112
+ the Source form or documentation, if provided along with the
113
+ Derivative Works; or, within a display generated by the
114
+ Derivative Works, if and wherever such third-party notices
115
+ normally appear. The contents of the NOTICE file are for
116
+ informational purposes only and do not modify the License.
117
+ You may add Your own attribution notices within Derivative
118
+ Works that You distribute, alongside or in addition to the
119
+ NOTICE text from the Work, provided that such additional
120
+ attribution notices cannot be construed as modifying the License.
121
+
122
+ You may add Your own license statement for Your modifications and
123
+ may provide additional grant of rights to use, copy, modify, merge,
124
+ publish, distribute, sublicense, and/or sell copies of the
125
+ Derivative Works, and to permit persons to whom the Derivative Works
126
+ is furnished to do so.
127
+
128
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
129
+ any Contribution intentionally submitted for inclusion in the Work
130
+ by You to the Licensor shall be under the terms and conditions of
131
+ this License, without any additional terms or conditions.
132
+ Notwithstanding the above, nothing herein shall supersede or modify
133
+ the terms of any separate license agreement you may have executed
134
+ with Licensor regarding such Contributions.
135
+
136
+ 6. Trademarks. This License does not grant permission to use the trade
137
+ names, trademarks, service marks, or product names of the Licensor,
138
+ except as required for reasonable and customary use in describing the
139
+ origin of the Work and reproducing the content of the NOTICE file.
140
+
141
+ 7. Disclaimer of Warranty. Unless required by applicable law or
142
+ agreed to in writing, Licensor provides the Work (and each
143
+ Contributor provides its Contributions) on an "AS IS" BASIS,
144
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
145
+ implied, including, without limitation, any warranties or conditions
146
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
147
+ PARTICULAR PURPOSE. You are solely responsible for determining the
148
+ appropriateness of using or reproducing the Work and assume any
149
+ risks associated with Your exercise of permissions under this License.
150
+
151
+ 8. Limitation of Liability. In no event and under no legal theory,
152
+ whether in tort (including negligence), contract, or otherwise,
153
+ unless required by applicable law (such as deliberate and grossly
154
+ negligent acts) or agreed to in writing, shall any Contributor be
155
+ liable to You for damages, including any direct, indirect, special,
156
+ incidental, or exemplary damages of any character arising as a
157
+ result of this License or out of the use or inability to use the
158
+ Work (including but not limited to damages for loss of goodwill,
159
+ work stoppage, computer failure or malfunction, or all other
160
+ commercial damages or losses), even if such Contributor has been
161
+ advised of the possibility of such damages.
162
+
163
+ 9. Accepting Warranty or Liability. While redistributing the Work or
164
+ Derivative Works thereof, You may choose to offer, and charge a fee
165
+ for, acceptance of support, warranty, indemnity, or other liability
166
+ obligations and/or rights consistent with this License. However, in
167
+ accepting such obligations, You may offer such obligations only on
168
+ Your own behalf and on Your sole responsibility, not on behalf of
169
+ any other Contributor, and only if You agree to indemnify, defend,
170
+ and hold each Contributor harmless for any liability incurred by,
171
+ or claims asserted against, such Contributor by reason of your
172
+ accepting any such warranty or additional liability.
173
+
174
+ END OF TERMS AND CONDITIONS
175
+
176
+ Copyright 2026 Sergei Chicherin
177
+
178
+ Licensed under the Apache License, Version 2.0 (the "License");
179
+ you may not use this file except in compliance with the License.
180
+ You may obtain a copy of the License at
181
+
182
+ http://www.apache.org/licenses/LICENSE-2.0
183
+
184
+ Unless required by applicable law or agreed to in writing, software
185
+ distributed under the License is distributed on an "AS IS" BASIS,
186
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
187
+ See the License for the specific language governing permissions and
188
+ limitations under the License.
189
+
190
+ Project-URL: Homepage, https://github.com/chroneus/vibetrack
191
+ Project-URL: Bug Tracker, https://github.com/chroneus/vibetrack/issues
192
+ Classifier: Programming Language :: Python :: 3
193
+ Classifier: License :: OSI Approved :: Apache Software License
194
+ Classifier: Operating System :: OS Independent
195
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
196
+ Requires-Python: >=3.8
197
+ Description-Content-Type: text/markdown
198
+ License-File: LICENSE
199
+ Requires-Dist: fastapi>=0.100.0
200
+ Requires-Dist: uvicorn[standard]>=0.20.0
201
+ Requires-Dist: python-multipart>=0.0.5
202
+ Requires-Dist: mcp>=1.0
203
+ Requires-Dist: psutil>=5.9
204
+ Provides-Extra: all
205
+ Requires-Dist: fastapi>=0.100.0; extra == "all"
206
+ Requires-Dist: uvicorn[standard]>=0.20.0; extra == "all"
207
+ Requires-Dist: python-multipart>=0.0.5; extra == "all"
208
+ Requires-Dist: mcp>=1.0; extra == "all"
209
+ Requires-Dist: psutil>=5.9; extra == "all"
210
+ Requires-Dist: gradio>=3.0; extra == "all"
211
+ Requires-Dist: python-telegram-bot>=20.0; extra == "all"
212
+ Requires-Dist: pytest>=7.0; extra == "all"
213
+ Requires-Dist: pytest-cov>=4.0; extra == "all"
214
+ Requires-Dist: httpx>=0.24.0; extra == "all"
215
+ Dynamic: license-file
216
+
217
+ # vibetrack
218
+
219
+ Lightweight experiment tracking — drop-in compatible with TensorBoard and W&B APIs.
220
+
221
+ No cloud. No account. No signup. Just a single SQLite file.
222
+
223
+ ## Why vibetrack?
224
+
225
+ | | TensorBoard | W&B | vibetrack |
226
+ |---|---|---|---|
227
+ | Storage | tfevents files | Cloud (paid tiers) | Single SQLite DB |
228
+ | Account required | No | Yes | No |
229
+ | AI agent integration (MCP) | No | No | Built-in |
230
+ | Distributed torchrun support | Manual | Manual | Automatic (rank-0 only) |
231
+ | Single-port server (web + API + ingest) | No | N/A | Yes |
232
+ | Viewer backends | Web only | Web only | Web, Gradio, Telegram, Console, MCP |
233
+ | System metrics | Via plugin | Built-in | Built-in (CPU, GPU, memory, disk) |
234
+ | Remote HTTP logging | No | Yes (cloud) | Yes (self-hosted, token auth) |
235
+ | Zero mandatory dependencies | No | No | Yes |
236
+
237
+ ## Install
238
+
239
+ ```bash
240
+ pip install vibetrack # default
241
+ pip install vibetrack[all] # all optional backends
242
+ ```
243
+
244
+ ## Quick start
245
+
246
+ ### TensorBoard-style API
247
+
248
+ ```python
249
+ from vibetrack import SummaryWriter
250
+
251
+ writer = SummaryWriter("runs/exp1", project_folder="my_project")
252
+ for step in range(100):
253
+ writer.add_scalar("loss", 1.0 / (step + 1), step)
254
+ writer.add_scalar("acc", step / 100, step)
255
+ writer.close()
256
+ ```
257
+
258
+ ### W&B-style API
259
+
260
+ ```python
261
+ import vibetrack
262
+
263
+ vibetrack.init(project="my_project", name="run_1", config={"lr": 0.01, "epochs": 50})
264
+ for step in range(100):
265
+ vibetrack.log({"loss": 1.0 / (step + 1), "acc": step / 100})
266
+ vibetrack.finish()
267
+ ```
268
+
269
+ ### Launch the dashboard
270
+
271
+ ```bash
272
+ vibetrack
273
+ # -> Web UI + MCP server + ingest endpoint on http://0.0.0.0:6006
274
+ ```
275
+
276
+ ## API reference
277
+
278
+ ### SummaryWriter
279
+
280
+ ```python
281
+ from vibetrack import SummaryWriter
282
+
283
+ writer = SummaryWriter("runs/exp1", name="experiment_name", project_folder="project/")
284
+
285
+ # Scalars
286
+ writer.add_scalar("loss", 0.5, step=0)
287
+ writer.add_scalars("metrics", {"train_loss": 0.5, "val_loss": 0.6}, step=0)
288
+
289
+ # Images — accepts file paths, numpy arrays, or PIL Images
290
+ writer.add_image("samples", "path/to/image.png", step=0)
291
+
292
+ # Audio — accepts file paths or numpy waveforms
293
+ writer.add_audio("speech", waveform_array, step=0, sample_rate=16000)
294
+
295
+ # Video
296
+ writer.add_video("rollout", "path/to/video.mp4", step=0)
297
+
298
+ # Artifacts — any file with optional metadata
299
+ writer.add_artifact("checkpoint", "model.pt", step=0, metadata={"val_acc": 0.95})
300
+
301
+ # Text
302
+ writer.add_text("notes", "Training started with lr=0.01", step=0)
303
+
304
+ # Histograms
305
+ writer.add_histogram("weights", weight_tensor, step=0)
306
+
307
+ # Hyperparameters
308
+ writer.add_hparams({"lr": 0.01, "batch_size": 32}, {"best_acc": 0.95})
309
+
310
+ writer.close()
311
+ ```
312
+
313
+ ### W&B-compatible module API
314
+
315
+ ```python
316
+ import vibetrack
317
+ from vibetrack import Image, Audio, Video, Artifact
318
+
319
+ vibetrack.init(project="nlp", name="bert-finetune", config={"lr": 3e-5})
320
+
321
+ # Log scalars
322
+ vibetrack.log({"loss": 0.3, "acc": 0.92})
323
+
324
+ # Log media with wrapper types
325
+ vibetrack.log({"sample": Image("output.png")})
326
+ vibetrack.log({"audio": Audio("clip.wav", sample_rate=22050)})
327
+ vibetrack.log({"demo": Video("result.mp4")})
328
+ vibetrack.log({"model": Artifact("best_model.pt", metadata={"epoch": 10})})
329
+
330
+ # Access config
331
+ vibetrack.config["lr"] # 3e-5
332
+
333
+ vibetrack.finish()
334
+ ```
335
+
336
+ ### Comparison and analysis
337
+
338
+ ```python
339
+ from vibetrack import RunReader
340
+ from vibetrack.compare import compare_scalars, compare_hparams, summary_table
341
+
342
+ reader = RunReader("my_project/")
343
+ experiments = reader.experiments()
344
+
345
+ # Summary table — last value of each tag per experiment
346
+ summary_table(experiments, tags=["loss", "acc"])
347
+
348
+ # Compare scalars with smoothing
349
+ compare_scalars(experiments, "loss", smoothing="ema", weight=0.6)
350
+
351
+ # Side-by-side hyperparameter comparison
352
+ compare_hparams(experiments)
353
+ ```
354
+
355
+ ### Smoothing
356
+
357
+ ```python
358
+ from vibetrack import smooth, ema, moving_average, gaussian
359
+
360
+ smoothed = ema(values, weight=0.6) # Exponential moving average
361
+ smoothed = moving_average(values, window=10) # Uniform window
362
+ smoothed = gaussian(values, sigma=2.0) # Gaussian kernel
363
+ smoothed = smooth(values, method="ema", weight=0.6) # Unified dispatcher
364
+ ```
365
+
366
+ ## Distributed training (torchrun)
367
+
368
+ vibetrack automatically detects `RANK` / `LOCAL_RANK` environment variables. Only rank 0 logs data — all other ranks get a silent no-op writer.
369
+
370
+ ```bash
371
+ torchrun --nproc_per_node=4 --nnodes=2 train.py
372
+ ```
373
+
374
+ ```python
375
+ # train.py — no code changes needed
376
+ from vibetrack import SummaryWriter
377
+
378
+ writer = SummaryWriter("runs/distributed", project_folder="project/")
379
+ # Only rank 0 writes to the database. Other ranks silently skip.
380
+ writer.add_scalar("loss", loss.item(), step)
381
+ writer.close()
382
+ ```
383
+
384
+ Force all ranks to log:
385
+
386
+ ```python
387
+ writer = SummaryWriter("runs/distributed", rank="all")
388
+ ```
389
+
390
+ ## Remote logging over HTTP
391
+
392
+ vibetrack's built-in ingest endpoints accept metrics from remote machines:
393
+
394
+ ```bash
395
+ # Server (included in default web server)
396
+ vibetrack my_project/ --token mysecret
397
+ # -> Ingest at http://host:6006/{project}/listen/log
398
+ ```
399
+
400
+ ```python
401
+ # Remote client
402
+ import requests
403
+
404
+ requests.post("http://server:6006/my_project/listen/log", json={
405
+ "experiment": "remote_run",
406
+ "step": 42,
407
+ "scalars": {"loss": 0.3, "acc": 0.91},
408
+ "texts": {"note": "checkpoint saved"},
409
+ }, headers={"Authorization": "Bearer mysecret"})
410
+ ```
411
+
412
+ Upload media:
413
+
414
+ ```python
415
+ requests.post("http://server:6006/my_project/listen/media",
416
+ data={"experiment": "remote_run", "tag": "sample", "step": "0", "type": "image"},
417
+ files={"file": open("output.png", "rb")},
418
+ headers={"Authorization": "Bearer mysecret"},
419
+ )
420
+ ```
421
+
422
+ ## System metrics
423
+
424
+ Built-in collection of CPU, GPU, memory, and disk metrics. Runs in a background thread.
425
+
426
+ ```python
427
+ writer = SummaryWriter("runs/exp1", system_metrics_interval=3600) # every hour (default)
428
+ ```
429
+
430
+ Collected metrics: `system/cpu_percent`, `system/mem_used_gb`, `system/disk_free_gb`, `gpu/utilization`, `gpu/memory_used_gb`, `gpu/temperature`, and automatic alerts when resources are critically low.
431
+
432
+ ## MCP server (AI agent integration)
433
+
434
+ The web dashboard includes an MCP (Model Context Protocol) server at `/vibetrack_mcp`, enabling AI agents like Claude to query your experiment data directly.
435
+
436
+ **Available MCP tools:** `list_experiments`, `get_experiment_tags`, `get_scalars`, `get_texts`, `get_images`, `get_audio`, `get_hparams`, `get_histograms`, `summary`, `compare_hparams_tool`
437
+
438
+ **MCP resources:** `vibetrack://experiments`, `vibetrack://experiments/{name}`, `vibetrack://experiments/{name}/scalars/{tag}`, etc.
439
+
440
+ Standalone MCP server:
441
+
442
+ ```bash
443
+ vibetrack --viewer mcp --project-folder my_project/
444
+ ```
445
+
446
+
447
+
448
+ ## CLI
449
+
450
+ ```bash
451
+ vibetrack # default
452
+ vibetrack [PROJECT_FOLDER] # Launch dashboard (web + MCP + ingest)
453
+ vibetrack --port 8080 # Custom port
454
+ vibetrack --host 127.0.0.1 # Bind to localhost only (by default it is open on LAN IP)
455
+ vibetrack --token SECRET # Protect ingest endpoints
456
+ vibetrack --listen 0.0.0.0:9009 # Standalone server on separate port
457
+ vibetrack migrate PROJECT_FOLDER # Merge legacy per-run DBs into project DB
458
+ ```
459
+
460
+ ## Configuration
461
+
462
+ Settings are stored in `~/.vibetrack/config.json` (global) or per-project via the API:
463
+
464
+ ```json
465
+ {
466
+ "smoothing": "ema",
467
+ "smooth_weight": 0.6,
468
+ "system_metrics_interval": 3600,
469
+ "web": {
470
+ "theme": "light",
471
+ "auto_refresh": 5,
472
+ "image_play_fps": 2
473
+ }
474
+ }
475
+ ```
476
+
477
+ ## License
478
+
479
+ Apache 2.0