unitlab 2.2.0__tar.gz → 2.3.3__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.
- {unitlab-2.2.0/src/unitlab.egg-info → unitlab-2.3.3}/PKG-INFO +4 -3
- {unitlab-2.2.0 → unitlab-2.3.3}/README.md +29 -0
- {unitlab-2.2.0 → unitlab-2.3.3}/setup.py +4 -3
- unitlab-2.3.3/src/unitlab/client.py +633 -0
- {unitlab-2.2.0 → unitlab-2.3.3}/src/unitlab/main.py +67 -44
- unitlab-2.3.3/src/unitlab/tunnel_config.py +238 -0
- {unitlab-2.2.0 → unitlab-2.3.3}/src/unitlab/utils.py +3 -0
- {unitlab-2.2.0 → unitlab-2.3.3/src/unitlab.egg-info}/PKG-INFO +4 -3
- {unitlab-2.2.0 → unitlab-2.3.3}/src/unitlab.egg-info/SOURCES.txt +1 -1
- {unitlab-2.2.0 → unitlab-2.3.3}/src/unitlab.egg-info/requires.txt +2 -0
- unitlab-2.2.0/src/unitlab/client.py +0 -330
- unitlab-2.2.0/src/unitlab/dataset.py +0 -333
- {unitlab-2.2.0 → unitlab-2.3.3}/LICENSE.md +0 -0
- {unitlab-2.2.0 → unitlab-2.3.3}/setup.cfg +0 -0
- {unitlab-2.2.0 → unitlab-2.3.3}/src/unitlab/__init__.py +0 -0
- {unitlab-2.2.0 → unitlab-2.3.3}/src/unitlab/__main__.py +0 -0
- {unitlab-2.2.0 → unitlab-2.3.3}/src/unitlab/exceptions.py +0 -0
- {unitlab-2.2.0 → unitlab-2.3.3}/src/unitlab.egg-info/dependency_links.txt +0 -0
- {unitlab-2.2.0 → unitlab-2.3.3}/src/unitlab.egg-info/entry_points.txt +0 -0
- {unitlab-2.2.0 → unitlab-2.3.3}/src/unitlab.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: unitlab
|
3
|
-
Version: 2.
|
3
|
+
Version: 2.3.3
|
4
4
|
Home-page: https://github.com/teamunitlab/unitlab-sdk
|
5
5
|
Author: Unitlab Inc.
|
6
6
|
Author-email: team@unitlab.ai
|
@@ -9,12 +9,11 @@ Keywords: unitlab-sdk
|
|
9
9
|
Classifier: Development Status :: 4 - Beta
|
10
10
|
Classifier: Intended Audience :: Developers
|
11
11
|
Classifier: License :: OSI Approved :: MIT License
|
12
|
-
Classifier: Programming Language :: Python :: 3
|
13
|
-
Classifier: Programming Language :: Python :: 3.8
|
14
12
|
Classifier: Programming Language :: Python :: 3.9
|
15
13
|
Classifier: Programming Language :: Python :: 3.10
|
16
14
|
Classifier: Programming Language :: Python :: 3.11
|
17
15
|
Classifier: Programming Language :: Python :: 3.12
|
16
|
+
Classifier: Programming Language :: Python :: 3.13
|
18
17
|
License-File: LICENSE.md
|
19
18
|
Requires-Dist: aiohttp
|
20
19
|
Requires-Dist: aiofiles
|
@@ -22,3 +21,5 @@ Requires-Dist: requests
|
|
22
21
|
Requires-Dist: tqdm
|
23
22
|
Requires-Dist: typer
|
24
23
|
Requires-Dist: validators
|
24
|
+
Requires-Dist: psutil
|
25
|
+
Requires-Dist: pyyaml
|
@@ -26,6 +26,35 @@ Once you have successfully installed the Unitlab package, you can conveniently h
|
|
26
26
|
## Quickstart
|
27
27
|
Follow [the quickstart guide for the Python SDK](https://docs.unitlab.ai/cli-python-sdk/unitlab-python-sdk).
|
28
28
|
|
29
|
+
## CLI Commands
|
30
|
+
|
31
|
+
### Agent Commands
|
32
|
+
|
33
|
+
The agent module provides commands for running device agents with Jupyter, SSH tunnels, and metrics reporting.
|
34
|
+
|
35
|
+
#### Run Agent
|
36
|
+
|
37
|
+
Run a full device agent that sets up Jupyter notebooks, SSH tunnels, and system metrics reporting:
|
38
|
+
|
39
|
+
```bash
|
40
|
+
unitlab agent run --api-key YOUR_API_KEY [OPTIONS]
|
41
|
+
```
|
42
|
+
|
43
|
+
**Options:**
|
44
|
+
- `--api-key` (required): Your Unitlab API key
|
45
|
+
|
46
|
+
**Example:**
|
47
|
+
```bash
|
48
|
+
# Run with auto-generated device ID
|
49
|
+
unitlab agent run your-api-key-here
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
The agent will:
|
54
|
+
- Initialize Jupyter notebook server
|
55
|
+
- Set up SSH tunnels for remote access
|
56
|
+
- Collect and report system metrics
|
57
|
+
- Handle graceful shutdown on interruption
|
29
58
|
|
30
59
|
## Documentation
|
31
60
|
[The documentation](https://docs.unitlab.ai/) provides comprehensive instructions on how to utilize the Unilab SDK effectively.
|
@@ -2,7 +2,7 @@ from setuptools import find_packages, setup
|
|
2
2
|
|
3
3
|
setup(
|
4
4
|
name="unitlab",
|
5
|
-
version="2.
|
5
|
+
version="2.3.3",
|
6
6
|
license="MIT",
|
7
7
|
author="Unitlab Inc.",
|
8
8
|
author_email="team@unitlab.ai",
|
@@ -13,12 +13,11 @@ setup(
|
|
13
13
|
"Development Status :: 4 - Beta",
|
14
14
|
"Intended Audience :: Developers",
|
15
15
|
"License :: OSI Approved :: MIT License",
|
16
|
-
"Programming Language :: Python :: 3",
|
17
|
-
"Programming Language :: Python :: 3.8",
|
18
16
|
"Programming Language :: Python :: 3.9",
|
19
17
|
"Programming Language :: Python :: 3.10",
|
20
18
|
"Programming Language :: Python :: 3.11",
|
21
19
|
"Programming Language :: Python :: 3.12",
|
20
|
+
"Programming Language :: Python :: 3.13",
|
22
21
|
],
|
23
22
|
package_dir={"": "src"},
|
24
23
|
url="https://github.com/teamunitlab/unitlab-sdk",
|
@@ -30,6 +29,8 @@ setup(
|
|
30
29
|
"tqdm",
|
31
30
|
"typer",
|
32
31
|
"validators",
|
32
|
+
'psutil',
|
33
|
+
'pyyaml',
|
33
34
|
],
|
34
35
|
entry_points={
|
35
36
|
"console_scripts": ["unitlab=unitlab.main:app"],
|