ml-dash 0.6.1__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,248 @@
1
+ Metadata-Version: 2.3
2
+ Name: ml-dash
3
+ Version: 0.6.1
4
+ Summary: ML experiment tracking and data storage
5
+ Keywords: machine-learning,experiment-tracking,mlops,data-storage
6
+ Author: Ge Yang, Tom Tao
7
+ License: MIT License
8
+
9
+ Copyright (c) 2025 Ge Yang, Tom Tao
10
+
11
+ Permission is hereby granted, free of charge, to any person obtaining a copy
12
+ of this software and associated documentation files (the "Software"), to deal
13
+ in the Software without restriction, including without limitation the rights
14
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15
+ copies of the Software, and to permit persons to whom the Software is
16
+ furnished to do so, subject to the following conditions:
17
+
18
+ The above copyright notice and this permission notice shall be included in all
19
+ copies or substantial portions of the Software.
20
+
21
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
27
+ SOFTWARE.
28
+ Classifier: Development Status :: 4 - Beta
29
+ Classifier: Intended Audience :: Developers
30
+ Classifier: Intended Audience :: Science/Research
31
+ Classifier: License :: OSI Approved :: MIT License
32
+ Classifier: Programming Language :: Python :: 3
33
+ Classifier: Programming Language :: Python :: 3.9
34
+ Classifier: Programming Language :: Python :: 3.10
35
+ Classifier: Programming Language :: Python :: 3.11
36
+ Classifier: Programming Language :: Python :: 3.12
37
+ Classifier: Programming Language :: Python :: 3.13
38
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
39
+ Requires-Dist: httpx>=0.27.0
40
+ Requires-Dist: pyjwt>=2.8.0
41
+ Requires-Dist: imageio>=2.31.0
42
+ Requires-Dist: imageio-ffmpeg>=0.4.9
43
+ Requires-Dist: scikit-image>=0.21.0
44
+ Requires-Dist: rich>=13.0.0
45
+ Requires-Dist: cryptography>=42.0.0
46
+ Requires-Dist: keyring>=25.0.0 ; extra == 'auth'
47
+ Requires-Dist: qrcode>=8.0.0 ; extra == 'auth'
48
+ Requires-Dist: pytest>=8.0.0 ; extra == 'dev'
49
+ Requires-Dist: pytest-asyncio>=0.23.0 ; extra == 'dev'
50
+ Requires-Dist: sphinx>=7.2.0 ; extra == 'dev'
51
+ Requires-Dist: furo>=2024.0.0 ; extra == 'dev'
52
+ Requires-Dist: sphinx-autodoc-typehints>=2.0.0 ; extra == 'dev'
53
+ Requires-Dist: sphinx-autobuild>=2024.0.0 ; extra == 'dev'
54
+ Requires-Dist: sphinx-copybutton>=0.5.0 ; extra == 'dev'
55
+ Requires-Dist: sphinx-design>=0.5.0 ; extra == 'dev'
56
+ Requires-Dist: sphinx-tabs>=3.4.0 ; extra == 'dev'
57
+ Requires-Dist: sphinxcontrib-mermaid>=0.9.0 ; extra == 'dev'
58
+ Requires-Dist: sphinxext-opengraph>=0.9.0 ; extra == 'dev'
59
+ Requires-Dist: myst-parser>=2.0.0 ; extra == 'dev'
60
+ Requires-Dist: linkify-it-py>=2.0.0 ; extra == 'dev'
61
+ Requires-Dist: ruff>=0.3.0 ; extra == 'dev'
62
+ Requires-Dist: mypy>=1.9.0 ; extra == 'dev'
63
+ Requires-Python: >=3.9
64
+ Provides-Extra: auth
65
+ Provides-Extra: dev
66
+ Description-Content-Type: text/markdown
67
+
68
+ # ML-Dash
69
+
70
+ A simple and flexible SDK for ML experiment metricing and data storage.
71
+
72
+ ## Features
73
+
74
+ - **Three Usage Styles**: Decorator, context manager, or direct instantiation
75
+ - **Dual Operation Modes**: Remote (API server) or local (filesystem)
76
+ - **Auto-creation**: Automatically creates namespace, project, and folder hierarchy
77
+ - **Upsert Behavior**: Updates existing experiments or creates new ones
78
+ - **Experiment Lifecycle**: Automatic status tracking (RUNNING, COMPLETED, FAILED, CANCELLED)
79
+ - **Organized File Storage**: Prefix-based file organization with unique snowflake IDs
80
+ - **Rich Metadata**: Tags, bindrs, descriptions, and custom metadata support
81
+ - **Simple API**: Minimal configuration, maximum flexibility
82
+
83
+ ## Installation
84
+
85
+ <table>
86
+ <tr>
87
+ <td>Using uv (recommended)</td>
88
+ <td>Using pip</td>
89
+ </tr>
90
+ <tr>
91
+ <td>
92
+
93
+ ```bash
94
+ uv add ml-dash
95
+ ```
96
+
97
+ </td>
98
+ <td>
99
+
100
+ ```bash
101
+ pip install ml-dash
102
+ ```
103
+
104
+ </td>
105
+ </tr>
106
+ </table>
107
+
108
+ ## Getting Started
109
+
110
+ ### Remote Mode (with API Server)
111
+
112
+ ```python
113
+ from ml_dash import Experiment
114
+
115
+ with Experiment(
116
+ name="my-experiment",
117
+ project="my-project",
118
+ remote="https://api.dash.ml",
119
+ api_key="your-jwt-token"
120
+ ) as experiment:
121
+ print(f"Experiment ID: {experiment.id}")
122
+ ```
123
+
124
+ ### Local Mode (Filesystem)
125
+
126
+ ```python
127
+ from ml_dash import Experiment
128
+
129
+ with Experiment(
130
+ name="my-experiment",
131
+ project="my-project",
132
+ local_path=".ml-dash"
133
+ ) as experiment:
134
+ pass # Your code here
135
+ ```
136
+
137
+ See [examples/](examples/) for more complete examples.
138
+
139
+ ## Development Setup
140
+
141
+ ### Installing Dev Dependencies
142
+
143
+ To contribute to ML-Dash or run tests, install the development dependencies:
144
+
145
+ <table>
146
+ <tr>
147
+ <td>Using uv (recommended)</td>
148
+ <td>Using pip</td>
149
+ </tr>
150
+ <tr>
151
+ <td>
152
+
153
+ ```bash
154
+ uv sync --extra dev
155
+ ```
156
+
157
+ </td>
158
+ <td>
159
+
160
+ ```bash
161
+ pip install -e ".[dev]"
162
+ ```
163
+
164
+ </td>
165
+ </tr>
166
+ </table>
167
+
168
+ This installs:
169
+ - `pytest>=8.0.0` - Testing framework
170
+ - `pytest-asyncio>=0.23.0` - Async test support
171
+ - `sphinx>=7.2.0` - Documentation builder
172
+ - `sphinx-rtd-theme>=2.0.0` - Read the Docs theme
173
+ - `sphinx-autobuild>=2024.0.0` - Live preview for documentation
174
+ - `myst-parser>=2.0.0` - Markdown support for Sphinx
175
+ - `ruff>=0.3.0` - Linter and formatter
176
+ - `mypy>=1.9.0` - Type checker
177
+
178
+ ### Running Tests
179
+
180
+ <table>
181
+ <tr>
182
+ <td>Using uv</td>
183
+ <td>Using pytest directly</td>
184
+ </tr>
185
+ <tr>
186
+ <td>
187
+
188
+ ```bash
189
+ uv run pytest
190
+ ```
191
+
192
+ </td>
193
+ <td>
194
+
195
+ ```bash
196
+ pytest
197
+ ```
198
+
199
+ </td>
200
+ </tr>
201
+ </table>
202
+
203
+ ### Building Documentation
204
+
205
+ Documentation is built using Sphinx with Read the Docs theme.
206
+
207
+ <table>
208
+ <tr>
209
+ <td>Build docs</td>
210
+ <td>Live preview</td>
211
+ <td>Clean build</td>
212
+ </tr>
213
+ <tr>
214
+ <td>
215
+
216
+ ```bash
217
+ uv run python -m sphinx -b html docs docs/_build/html
218
+ ```
219
+
220
+ </td>
221
+ <td>
222
+
223
+ ```bash
224
+ uv run sphinx-autobuild docs docs/_build/html
225
+ ```
226
+
227
+ </td>
228
+ <td>
229
+
230
+ ```bash
231
+ rm -rf docs/_build
232
+ ```
233
+
234
+ </td>
235
+ </tr>
236
+ </table>
237
+
238
+ The live preview command starts a local server and automatically rebuilds when files change.
239
+
240
+ Alternatively, you can use the Makefile from within the docs directory:
241
+
242
+ ```bash
243
+ cd docs
244
+ make html # Build HTML documentation
245
+ make clean # Clean build files
246
+ ```
247
+
248
+ For maintainers, to build and publish a new release: `uv build && uv publish`
@@ -0,0 +1,29 @@
1
+ ml_dash/__init__.py,sha256=eO526uX_T_Y5tySTVw2ZN-QCR46120gYPD6DWhenMUw,2228
2
+ ml_dash/auth/__init__.py,sha256=3lwM-Y8UBHPU1gFW2JNpmXlPVTnkGudWLKNFFKulQfo,1200
3
+ ml_dash/auth/constants.py,sha256=ku4QzQUMNjvyJwjy7AUdywMAZd59jXSxNHZxDiagUWU,280
4
+ ml_dash/auth/device_flow.py,sha256=DQOdPNlZCuU1umZOA_A6WXdRM3zWphnyo9IntToBl_A,7921
5
+ ml_dash/auth/device_secret.py,sha256=qUsz6M9S1GEIukvmz57eJEp57srSx74O4MU9mZEeDlE,1158
6
+ ml_dash/auth/exceptions.py,sha256=IeBwUzoaTyFtPwd4quFOIel49inIzuabe_ChEeEXEWI,725
7
+ ml_dash/auth/token_storage.py,sha256=vuWDAhQPdjUwNTJAdoWP-EUDudIJVTNdWkWnvgS4Qgc,8217
8
+ ml_dash/auto_start.py,sha256=5_SIc0jyZEptGKuF5Lu910RnKcmVh03HM6QrrFST8WA,1440
9
+ ml_dash/cli.py,sha256=r55bNa3T_guMnSl2dwsj0WF9Ln-vOGsBmbrooMKYhRI,2103
10
+ ml_dash/cli_commands/__init__.py,sha256=bjAmV7MsW-bhtW_4SnLJ0Cfkt9h82vMDC8ebW1Ke8KE,38
11
+ ml_dash/cli_commands/download.py,sha256=jOUx2aejA_Hz4ttuL8ubFY3pI4j39fYtdn-sZyrYCrE,28674
12
+ ml_dash/cli_commands/list.py,sha256=0G0XMJ8cH8_k37IEjwq20t6obT-tKxZPTxr221UF8KA,9757
13
+ ml_dash/cli_commands/login.py,sha256=0v8UPj_Y-uYmNDfc8Zv6xddFJPx3_VgVNeESYO700b0,7173
14
+ ml_dash/cli_commands/logout.py,sha256=lTUUNyRXqvo61qNkCd4KBrPUujDAHnNqsHkU6bHie0U,1332
15
+ ml_dash/cli_commands/upload.py,sha256=4O9iZOQDOiiBBsoDG1Cr8BqeBGSZZSfc3i-5FERjFtU,46439
16
+ ml_dash/client.py,sha256=0jM3HzNyFy-QBN7ZLXQTuiIuiTuh4K1Zdldb4Eny0NY,29531
17
+ ml_dash/config.py,sha256=aNqX_HT2Yo-BzjFexQ97gQK9xOiBUwuJJ65dKM3oJjs,3481
18
+ ml_dash/experiment.py,sha256=qEwPq8U6YXw-bmEBOZX0yL-4Y8TTZYuFsKtMarq8duA,33913
19
+ ml_dash/files.py,sha256=p9s15eqgGAf-6bZntXkd_YicS6GjSGzEKAN_YoMuAXQ,26541
20
+ ml_dash/log.py,sha256=0yXaNnFwYeBI3tRLHX3kkqWRpg0MbSGwmgjnOfsElCk,5350
21
+ ml_dash/metric.py,sha256=vz3YwO1YBWZ797l7TzD5m9WwNBBXlrATyRRzSti8QS0,17194
22
+ ml_dash/params.py,sha256=S4wHQfv0EQRXRrFbKLuEKTQOLp5eqnALcIk1pZNroBM,9124
23
+ ml_dash/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
24
+ ml_dash/remote_auto_start.py,sha256=BAsTu41e9SboeSCn9N2vn4ftoYeUVklcAcNM45HJVGA,1610
25
+ ml_dash/storage.py,sha256=OTMMHSLYHk_MBfo8PyMQBHD8AZ2TFTS8KSMhVhpG-hg,39493
26
+ ml_dash-0.6.1.dist-info/WHEEL,sha256=z-mOpxbJHqy3cq6SvUThBZdaLGFZzdZPtgWLcP2NKjQ,79
27
+ ml_dash-0.6.1.dist-info/entry_points.txt,sha256=dYs2EHX1uRNO7AQGNnVaJJpgiy0Z9q7tiy4fHSyaf3Q,46
28
+ ml_dash-0.6.1.dist-info/METADATA,sha256=0hRUQtm5iwiniAfYZJu9mnkJVUFnPQUPow7Va8VFqLI,6328
29
+ ml_dash-0.6.1.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: uv 0.9.15
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,3 @@
1
+ [console_scripts]
2
+ ml-dash = ml_dash.cli:main
3
+