ml-dash 0.4.0__tar.gz → 0.5.0__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.
- ml_dash-0.5.0/LICENSE +21 -0
- ml_dash-0.5.0/PKG-INFO +237 -0
- ml_dash-0.5.0/README.md +178 -0
- ml_dash-0.5.0/pyproject.toml +54 -0
- ml_dash-0.5.0/src/ml_dash/__init__.py +58 -0
- ml_dash-0.5.0/src/ml_dash/client.py +562 -0
- ml_dash-0.5.0/src/ml_dash/experiment.py +916 -0
- ml_dash-0.5.0/src/ml_dash/files.py +313 -0
- ml_dash-0.5.0/src/ml_dash/log.py +181 -0
- ml_dash-0.5.0/src/ml_dash/metric.py +186 -0
- ml_dash-0.5.0/src/ml_dash/params.py +188 -0
- ml_dash-0.5.0/src/ml_dash/py.typed +0 -0
- ml_dash-0.5.0/src/ml_dash/storage.py +922 -0
- ml_dash-0.4.0/PKG-INFO +0 -1424
- ml_dash-0.4.0/README.md +0 -1401
- ml_dash-0.4.0/pyproject.toml +0 -62
- ml_dash-0.4.0/src/ml_dash/ARCHITECTURE.md +0 -382
- ml_dash-0.4.0/src/ml_dash/__init__.py +0 -14
- ml_dash-0.4.0/src/ml_dash/autolog.py +0 -32
- ml_dash-0.4.0/src/ml_dash/backends/__init__.py +0 -11
- ml_dash-0.4.0/src/ml_dash/backends/base.py +0 -124
- ml_dash-0.4.0/src/ml_dash/backends/dash_backend.py +0 -571
- ml_dash-0.4.0/src/ml_dash/backends/local_backend.py +0 -90
- ml_dash-0.4.0/src/ml_dash/components/__init__.py +0 -13
- ml_dash-0.4.0/src/ml_dash/components/files.py +0 -246
- ml_dash-0.4.0/src/ml_dash/components/logs.py +0 -104
- ml_dash-0.4.0/src/ml_dash/components/metrics.py +0 -169
- ml_dash-0.4.0/src/ml_dash/components/parameters.py +0 -144
- ml_dash-0.4.0/src/ml_dash/job_logger.py +0 -42
- ml_dash-0.4.0/src/ml_dash/ml_logger.py +0 -234
- ml_dash-0.4.0/src/ml_dash/run.py +0 -331
ml_dash-0.5.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Ge Yang, Tom Tao
|
|
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.
|
ml_dash-0.5.0/PKG-INFO
ADDED
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
Metadata-Version: 2.3
|
|
2
|
+
Name: ml-dash
|
|
3
|
+
Version: 0.5.0
|
|
4
|
+
Summary: ML experiment metricing and data storage
|
|
5
|
+
Keywords: machine-learning,experiment-metricing,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: pytest>=8.0.0 ; extra == 'dev'
|
|
42
|
+
Requires-Dist: pytest-asyncio>=0.23.0 ; extra == 'dev'
|
|
43
|
+
Requires-Dist: sphinx>=7.2.0 ; extra == 'dev'
|
|
44
|
+
Requires-Dist: furo>=2024.0.0 ; extra == 'dev'
|
|
45
|
+
Requires-Dist: sphinx-autodoc-typehints>=2.0.0 ; extra == 'dev'
|
|
46
|
+
Requires-Dist: sphinx-autobuild>=2024.0.0 ; extra == 'dev'
|
|
47
|
+
Requires-Dist: sphinx-copybutton>=0.5.0 ; extra == 'dev'
|
|
48
|
+
Requires-Dist: sphinx-design>=0.5.0 ; extra == 'dev'
|
|
49
|
+
Requires-Dist: sphinx-tabs>=3.4.0 ; extra == 'dev'
|
|
50
|
+
Requires-Dist: sphinxcontrib-mermaid>=0.9.0 ; extra == 'dev'
|
|
51
|
+
Requires-Dist: sphinxext-opengraph>=0.9.0 ; extra == 'dev'
|
|
52
|
+
Requires-Dist: myst-parser>=2.0.0 ; extra == 'dev'
|
|
53
|
+
Requires-Dist: linkify-it-py>=2.0.0 ; extra == 'dev'
|
|
54
|
+
Requires-Dist: ruff>=0.3.0 ; extra == 'dev'
|
|
55
|
+
Requires-Dist: mypy>=1.9.0 ; extra == 'dev'
|
|
56
|
+
Requires-Python: >=3.9
|
|
57
|
+
Provides-Extra: dev
|
|
58
|
+
Description-Content-Type: text/markdown
|
|
59
|
+
|
|
60
|
+
# ML-Dash
|
|
61
|
+
|
|
62
|
+
A simple and flexible SDK for ML experiment metricing and data storage.
|
|
63
|
+
|
|
64
|
+
## Features
|
|
65
|
+
|
|
66
|
+
- **Three Usage Styles**: Decorator, context manager, or direct instantiation
|
|
67
|
+
- **Dual Operation Modes**: Remote (API server) or local (filesystem)
|
|
68
|
+
- **Auto-creation**: Automatically creates namespace, project, and folder hierarchy
|
|
69
|
+
- **Upsert Behavior**: Updates existing experiments or creates new ones
|
|
70
|
+
- **Simple API**: Minimal configuration, maximum flexibility
|
|
71
|
+
|
|
72
|
+
## Installation
|
|
73
|
+
|
|
74
|
+
<table>
|
|
75
|
+
<tr>
|
|
76
|
+
<td>Using uv (recommended)</td>
|
|
77
|
+
<td>Using pip</td>
|
|
78
|
+
</tr>
|
|
79
|
+
<tr>
|
|
80
|
+
<td>
|
|
81
|
+
|
|
82
|
+
```bash
|
|
83
|
+
uv add ml-dash
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
</td>
|
|
87
|
+
<td>
|
|
88
|
+
|
|
89
|
+
```bash
|
|
90
|
+
pip install ml-dash
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
</td>
|
|
94
|
+
</tr>
|
|
95
|
+
</table>
|
|
96
|
+
|
|
97
|
+
## Quick Start
|
|
98
|
+
|
|
99
|
+
### Remote Mode (with API Server)
|
|
100
|
+
|
|
101
|
+
```python
|
|
102
|
+
from ml_dash import Experiment
|
|
103
|
+
|
|
104
|
+
with Experiment(
|
|
105
|
+
name="my-experiment",
|
|
106
|
+
project="my-project",
|
|
107
|
+
remote="https://cu3thurmv3.us-east-1.awsapprunner.com",
|
|
108
|
+
api_key="your-jwt-token"
|
|
109
|
+
) as experiment:
|
|
110
|
+
print(f"Experiment ID: {experiment.id}")
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
### Local Mode (Filesystem)
|
|
114
|
+
|
|
115
|
+
```python
|
|
116
|
+
from ml_dash import Experiment
|
|
117
|
+
|
|
118
|
+
with Experiment(
|
|
119
|
+
name="my-experiment",
|
|
120
|
+
project="my-project",
|
|
121
|
+
local_path=".ml-dash"
|
|
122
|
+
) as experiment:
|
|
123
|
+
pass # Your code here
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
See [examples/](examples/) for more complete examples.
|
|
127
|
+
|
|
128
|
+
## Development Setup
|
|
129
|
+
|
|
130
|
+
### Installing Dev Dependencies
|
|
131
|
+
|
|
132
|
+
To contribute to ML-Dash or run tests, install the development dependencies:
|
|
133
|
+
|
|
134
|
+
<table>
|
|
135
|
+
<tr>
|
|
136
|
+
<td>Using uv (recommended)</td>
|
|
137
|
+
<td>Using pip</td>
|
|
138
|
+
</tr>
|
|
139
|
+
<tr>
|
|
140
|
+
<td>
|
|
141
|
+
|
|
142
|
+
```bash
|
|
143
|
+
uv sync --extra dev
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
</td>
|
|
147
|
+
<td>
|
|
148
|
+
|
|
149
|
+
```bash
|
|
150
|
+
pip install -e ".[dev]"
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
</td>
|
|
154
|
+
</tr>
|
|
155
|
+
</table>
|
|
156
|
+
|
|
157
|
+
This installs:
|
|
158
|
+
- `pytest>=8.0.0` - Testing framework
|
|
159
|
+
- `pytest-asyncio>=0.23.0` - Async test support
|
|
160
|
+
- `sphinx>=7.2.0` - Documentation builder
|
|
161
|
+
- `sphinx-rtd-theme>=2.0.0` - Read the Docs theme
|
|
162
|
+
- `sphinx-autobuild>=2024.0.0` - Live preview for documentation
|
|
163
|
+
- `myst-parser>=2.0.0` - Markdown support for Sphinx
|
|
164
|
+
- `ruff>=0.3.0` - Linter and formatter
|
|
165
|
+
- `mypy>=1.9.0` - Type checker
|
|
166
|
+
|
|
167
|
+
### Running Tests
|
|
168
|
+
|
|
169
|
+
<table>
|
|
170
|
+
<tr>
|
|
171
|
+
<td>Using uv</td>
|
|
172
|
+
<td>Using pytest directly</td>
|
|
173
|
+
</tr>
|
|
174
|
+
<tr>
|
|
175
|
+
<td>
|
|
176
|
+
|
|
177
|
+
```bash
|
|
178
|
+
uv run pytest
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
</td>
|
|
182
|
+
<td>
|
|
183
|
+
|
|
184
|
+
```bash
|
|
185
|
+
pytest
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
</td>
|
|
189
|
+
</tr>
|
|
190
|
+
</table>
|
|
191
|
+
|
|
192
|
+
### Building Documentation
|
|
193
|
+
|
|
194
|
+
Documentation is built using Sphinx with Read the Docs theme.
|
|
195
|
+
|
|
196
|
+
<table>
|
|
197
|
+
<tr>
|
|
198
|
+
<td>Build docs</td>
|
|
199
|
+
<td>Live preview</td>
|
|
200
|
+
<td>Clean build</td>
|
|
201
|
+
</tr>
|
|
202
|
+
<tr>
|
|
203
|
+
<td>
|
|
204
|
+
|
|
205
|
+
```bash
|
|
206
|
+
uv run python -m sphinx -b html docs docs/_build/html
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
</td>
|
|
210
|
+
<td>
|
|
211
|
+
|
|
212
|
+
```bash
|
|
213
|
+
uv run sphinx-autobuild docs docs/_build/html
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
</td>
|
|
217
|
+
<td>
|
|
218
|
+
|
|
219
|
+
```bash
|
|
220
|
+
rm -rf docs/_build
|
|
221
|
+
```
|
|
222
|
+
|
|
223
|
+
</td>
|
|
224
|
+
</tr>
|
|
225
|
+
</table>
|
|
226
|
+
|
|
227
|
+
The live preview command starts a local server and automatically rebuilds when files change.
|
|
228
|
+
|
|
229
|
+
Alternatively, you can use the Makefile from within the docs directory:
|
|
230
|
+
|
|
231
|
+
```bash
|
|
232
|
+
cd docs
|
|
233
|
+
make html # Build HTML documentation
|
|
234
|
+
make clean # Clean build files
|
|
235
|
+
```
|
|
236
|
+
|
|
237
|
+
For maintainers, to build and publish a new release: `uv build && uv publish`
|
ml_dash-0.5.0/README.md
ADDED
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
# ML-Dash
|
|
2
|
+
|
|
3
|
+
A simple and flexible SDK for ML experiment metricing and data storage.
|
|
4
|
+
|
|
5
|
+
## Features
|
|
6
|
+
|
|
7
|
+
- **Three Usage Styles**: Decorator, context manager, or direct instantiation
|
|
8
|
+
- **Dual Operation Modes**: Remote (API server) or local (filesystem)
|
|
9
|
+
- **Auto-creation**: Automatically creates namespace, project, and folder hierarchy
|
|
10
|
+
- **Upsert Behavior**: Updates existing experiments or creates new ones
|
|
11
|
+
- **Simple API**: Minimal configuration, maximum flexibility
|
|
12
|
+
|
|
13
|
+
## Installation
|
|
14
|
+
|
|
15
|
+
<table>
|
|
16
|
+
<tr>
|
|
17
|
+
<td>Using uv (recommended)</td>
|
|
18
|
+
<td>Using pip</td>
|
|
19
|
+
</tr>
|
|
20
|
+
<tr>
|
|
21
|
+
<td>
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
uv add ml-dash
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
</td>
|
|
28
|
+
<td>
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
pip install ml-dash
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
</td>
|
|
35
|
+
</tr>
|
|
36
|
+
</table>
|
|
37
|
+
|
|
38
|
+
## Quick Start
|
|
39
|
+
|
|
40
|
+
### Remote Mode (with API Server)
|
|
41
|
+
|
|
42
|
+
```python
|
|
43
|
+
from ml_dash import Experiment
|
|
44
|
+
|
|
45
|
+
with Experiment(
|
|
46
|
+
name="my-experiment",
|
|
47
|
+
project="my-project",
|
|
48
|
+
remote="https://cu3thurmv3.us-east-1.awsapprunner.com",
|
|
49
|
+
api_key="your-jwt-token"
|
|
50
|
+
) as experiment:
|
|
51
|
+
print(f"Experiment ID: {experiment.id}")
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
### Local Mode (Filesystem)
|
|
55
|
+
|
|
56
|
+
```python
|
|
57
|
+
from ml_dash import Experiment
|
|
58
|
+
|
|
59
|
+
with Experiment(
|
|
60
|
+
name="my-experiment",
|
|
61
|
+
project="my-project",
|
|
62
|
+
local_path=".ml-dash"
|
|
63
|
+
) as experiment:
|
|
64
|
+
pass # Your code here
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
See [examples/](examples/) for more complete examples.
|
|
68
|
+
|
|
69
|
+
## Development Setup
|
|
70
|
+
|
|
71
|
+
### Installing Dev Dependencies
|
|
72
|
+
|
|
73
|
+
To contribute to ML-Dash or run tests, install the development dependencies:
|
|
74
|
+
|
|
75
|
+
<table>
|
|
76
|
+
<tr>
|
|
77
|
+
<td>Using uv (recommended)</td>
|
|
78
|
+
<td>Using pip</td>
|
|
79
|
+
</tr>
|
|
80
|
+
<tr>
|
|
81
|
+
<td>
|
|
82
|
+
|
|
83
|
+
```bash
|
|
84
|
+
uv sync --extra dev
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
</td>
|
|
88
|
+
<td>
|
|
89
|
+
|
|
90
|
+
```bash
|
|
91
|
+
pip install -e ".[dev]"
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
</td>
|
|
95
|
+
</tr>
|
|
96
|
+
</table>
|
|
97
|
+
|
|
98
|
+
This installs:
|
|
99
|
+
- `pytest>=8.0.0` - Testing framework
|
|
100
|
+
- `pytest-asyncio>=0.23.0` - Async test support
|
|
101
|
+
- `sphinx>=7.2.0` - Documentation builder
|
|
102
|
+
- `sphinx-rtd-theme>=2.0.0` - Read the Docs theme
|
|
103
|
+
- `sphinx-autobuild>=2024.0.0` - Live preview for documentation
|
|
104
|
+
- `myst-parser>=2.0.0` - Markdown support for Sphinx
|
|
105
|
+
- `ruff>=0.3.0` - Linter and formatter
|
|
106
|
+
- `mypy>=1.9.0` - Type checker
|
|
107
|
+
|
|
108
|
+
### Running Tests
|
|
109
|
+
|
|
110
|
+
<table>
|
|
111
|
+
<tr>
|
|
112
|
+
<td>Using uv</td>
|
|
113
|
+
<td>Using pytest directly</td>
|
|
114
|
+
</tr>
|
|
115
|
+
<tr>
|
|
116
|
+
<td>
|
|
117
|
+
|
|
118
|
+
```bash
|
|
119
|
+
uv run pytest
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
</td>
|
|
123
|
+
<td>
|
|
124
|
+
|
|
125
|
+
```bash
|
|
126
|
+
pytest
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
</td>
|
|
130
|
+
</tr>
|
|
131
|
+
</table>
|
|
132
|
+
|
|
133
|
+
### Building Documentation
|
|
134
|
+
|
|
135
|
+
Documentation is built using Sphinx with Read the Docs theme.
|
|
136
|
+
|
|
137
|
+
<table>
|
|
138
|
+
<tr>
|
|
139
|
+
<td>Build docs</td>
|
|
140
|
+
<td>Live preview</td>
|
|
141
|
+
<td>Clean build</td>
|
|
142
|
+
</tr>
|
|
143
|
+
<tr>
|
|
144
|
+
<td>
|
|
145
|
+
|
|
146
|
+
```bash
|
|
147
|
+
uv run python -m sphinx -b html docs docs/_build/html
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
</td>
|
|
151
|
+
<td>
|
|
152
|
+
|
|
153
|
+
```bash
|
|
154
|
+
uv run sphinx-autobuild docs docs/_build/html
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
</td>
|
|
158
|
+
<td>
|
|
159
|
+
|
|
160
|
+
```bash
|
|
161
|
+
rm -rf docs/_build
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
</td>
|
|
165
|
+
</tr>
|
|
166
|
+
</table>
|
|
167
|
+
|
|
168
|
+
The live preview command starts a local server and automatically rebuilds when files change.
|
|
169
|
+
|
|
170
|
+
Alternatively, you can use the Makefile from within the docs directory:
|
|
171
|
+
|
|
172
|
+
```bash
|
|
173
|
+
cd docs
|
|
174
|
+
make html # Build HTML documentation
|
|
175
|
+
make clean # Clean build files
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
For maintainers, to build and publish a new release: `uv build && uv publish`
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "ml-dash"
|
|
3
|
+
version = "0.5.0"
|
|
4
|
+
description = "ML experiment metricing and data storage"
|
|
5
|
+
readme = "README.md"
|
|
6
|
+
requires-python = ">=3.9"
|
|
7
|
+
license = {file = "LICENSE"}
|
|
8
|
+
authors = [
|
|
9
|
+
{name = "Ge Yang"},
|
|
10
|
+
{name = "Tom Tao"}
|
|
11
|
+
]
|
|
12
|
+
keywords = ["machine-learning", "experiment-metricing", "mlops", "data-storage"]
|
|
13
|
+
classifiers = [
|
|
14
|
+
"Development Status :: 4 - Beta",
|
|
15
|
+
"Intended Audience :: Developers",
|
|
16
|
+
"Intended Audience :: Science/Research",
|
|
17
|
+
"License :: OSI Approved :: MIT License",
|
|
18
|
+
"Programming Language :: Python :: 3",
|
|
19
|
+
"Programming Language :: Python :: 3.9",
|
|
20
|
+
"Programming Language :: Python :: 3.10",
|
|
21
|
+
"Programming Language :: Python :: 3.11",
|
|
22
|
+
"Programming Language :: Python :: 3.12",
|
|
23
|
+
"Programming Language :: Python :: 3.13",
|
|
24
|
+
"Topic :: Scientific/Engineering :: Artificial Intelligence",
|
|
25
|
+
]
|
|
26
|
+
dependencies = [
|
|
27
|
+
"httpx>=0.27.0",
|
|
28
|
+
"pyjwt>=2.8.0",
|
|
29
|
+
]
|
|
30
|
+
|
|
31
|
+
[project.optional-dependencies]
|
|
32
|
+
dev = [
|
|
33
|
+
"pytest>=8.0.0",
|
|
34
|
+
"pytest-asyncio>=0.23.0",
|
|
35
|
+
"sphinx>=7.2.0",
|
|
36
|
+
"furo>=2024.0.0",
|
|
37
|
+
"sphinx-autodoc-typehints>=2.0.0",
|
|
38
|
+
"sphinx-autobuild>=2024.0.0",
|
|
39
|
+
"sphinx-copybutton>=0.5.0",
|
|
40
|
+
"sphinx-design>=0.5.0",
|
|
41
|
+
"sphinx-tabs>=3.4.0",
|
|
42
|
+
"sphinxcontrib-mermaid>=0.9.0",
|
|
43
|
+
"sphinxext-opengraph>=0.9.0",
|
|
44
|
+
"myst-parser>=2.0.0",
|
|
45
|
+
"linkify-it-py>=2.0.0",
|
|
46
|
+
"ruff>=0.3.0",
|
|
47
|
+
"mypy>=1.9.0",
|
|
48
|
+
]
|
|
49
|
+
|
|
50
|
+
[tool.uv]
|
|
51
|
+
|
|
52
|
+
[build-system]
|
|
53
|
+
requires = ["uv_build>=0.9.2,<0.10.0"]
|
|
54
|
+
build-backend = "uv_build"
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"""
|
|
2
|
+
ML-Dash Python SDK
|
|
3
|
+
|
|
4
|
+
A simple and flexible SDK for ML experiment metricing and data storage.
|
|
5
|
+
|
|
6
|
+
Usage:
|
|
7
|
+
|
|
8
|
+
# Remote mode (API server)
|
|
9
|
+
from ml_dash import Experiment
|
|
10
|
+
|
|
11
|
+
with Experiment(
|
|
12
|
+
name="my-experiment",
|
|
13
|
+
project="my-project",
|
|
14
|
+
remote="http://localhost:3000",
|
|
15
|
+
api_key="your-jwt-token"
|
|
16
|
+
) as experiment:
|
|
17
|
+
experiment.log("Training started")
|
|
18
|
+
experiment.metric("loss", {"step": 0, "value": 0.5})
|
|
19
|
+
|
|
20
|
+
# Local mode (filesystem)
|
|
21
|
+
with Experiment(
|
|
22
|
+
name="my-experiment",
|
|
23
|
+
project="my-project",
|
|
24
|
+
local_path=".ml-dash"
|
|
25
|
+
) as experiment:
|
|
26
|
+
experiment.log("Training started")
|
|
27
|
+
|
|
28
|
+
# Decorator style
|
|
29
|
+
from ml_dash import ml_dash_experiment
|
|
30
|
+
|
|
31
|
+
@ml_dash_experiment(
|
|
32
|
+
name="my-experiment",
|
|
33
|
+
project="my-project",
|
|
34
|
+
remote="http://localhost:3000",
|
|
35
|
+
api_key="your-jwt-token"
|
|
36
|
+
)
|
|
37
|
+
def train_model(experiment):
|
|
38
|
+
experiment.log("Training started")
|
|
39
|
+
"""
|
|
40
|
+
|
|
41
|
+
from .experiment import Experiment, ml_dash_experiment, OperationMode
|
|
42
|
+
from .client import RemoteClient
|
|
43
|
+
from .storage import LocalStorage
|
|
44
|
+
from .log import LogLevel, LogBuilder
|
|
45
|
+
from .params import ParametersBuilder
|
|
46
|
+
|
|
47
|
+
__version__ = "0.1.0"
|
|
48
|
+
|
|
49
|
+
__all__ = [
|
|
50
|
+
"Experiment",
|
|
51
|
+
"ml_dash_experiment",
|
|
52
|
+
"OperationMode",
|
|
53
|
+
"RemoteClient",
|
|
54
|
+
"LocalStorage",
|
|
55
|
+
"LogLevel",
|
|
56
|
+
"LogBuilder",
|
|
57
|
+
"ParametersBuilder",
|
|
58
|
+
]
|