sima-cli 0.0.1__py3-none-any.whl → 0.0.11__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.
- sima_cli/__version__.py +1 -1
- sima_cli/auth/login.py +103 -0
- sima_cli/cli.py +105 -42
- sima_cli/download/downloader.py +30 -19
- sima_cli/model_zoo/model.py +148 -0
- sima_cli/update/local.py +94 -0
- sima_cli/update/remote.py +238 -0
- sima_cli/update/updater.py +323 -39
- sima_cli/utils/artifactory.py +63 -0
- sima_cli/utils/config.py +25 -19
- sima_cli/utils/config_loader.py +30 -0
- sima_cli-0.0.11.dist-info/METADATA +182 -0
- {sima_cli-0.0.1.dist-info → sima_cli-0.0.11.dist-info}/RECORD +17 -13
- {sima_cli-0.0.1.dist-info → sima_cli-0.0.11.dist-info}/WHEEL +1 -1
- sima_cli-0.0.1.dist-info/METADATA +0 -112
- {sima_cli-0.0.1.dist-info → sima_cli-0.0.11.dist-info}/entry_points.txt +0 -0
- {sima_cli-0.0.1.dist-info → sima_cli-0.0.11.dist-info}/licenses/LICENSE +0 -0
- {sima_cli-0.0.1.dist-info → sima_cli-0.0.11.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,182 @@
|
|
1
|
+
Metadata-Version: 2.4
|
2
|
+
Name: sima-cli
|
3
|
+
Version: 0.0.11
|
4
|
+
Summary: CLI tool for SiMa Developer Portal to download models, firmware, and apps.
|
5
|
+
Home-page: https://developer.sima.ai/
|
6
|
+
Author: SiMa.ai
|
7
|
+
Author-email: "Sima.ai" <support@sima.ai>
|
8
|
+
License-Expression: MIT
|
9
|
+
Project-URL: Homepage, https://developer.sima.ai/
|
10
|
+
Classifier: Programming Language :: Python :: 3
|
11
|
+
Classifier: Operating System :: OS Independent
|
12
|
+
Classifier: Development Status :: 3 - Alpha
|
13
|
+
Classifier: Intended Audience :: Developers
|
14
|
+
Classifier: Topic :: Software Development :: Build Tools
|
15
|
+
Classifier: Environment :: Console
|
16
|
+
Requires-Python: >=3.10
|
17
|
+
Description-Content-Type: text/markdown
|
18
|
+
License-File: LICENSE
|
19
|
+
Requires-Dist: requests
|
20
|
+
Requires-Dist: click
|
21
|
+
Requires-Dist: tqdm
|
22
|
+
Requires-Dist: pyyaml
|
23
|
+
Requires-Dist: paramiko
|
24
|
+
Dynamic: author
|
25
|
+
Dynamic: license-file
|
26
|
+
Dynamic: requires-python
|
27
|
+
|
28
|
+
# 🛠️ sima-cli – SiMa Developer Portal CLI Tool
|
29
|
+
|
30
|
+
`sima-cli` is a command-line interface (CLI) utility designed to interact with the SiMa Developer Portal. It supports downloading models and apps from the Model/App Zoo, performing firmware updates, and authenticating against internal or external environments.
|
31
|
+
|
32
|
+
---
|
33
|
+
|
34
|
+
## 📦 Installation
|
35
|
+
|
36
|
+
```bash
|
37
|
+
pip install sima-cli
|
38
|
+
```
|
39
|
+
|
40
|
+
---
|
41
|
+
|
42
|
+
## 🚀 Getting Started
|
43
|
+
|
44
|
+
```bash
|
45
|
+
sima-cli --help
|
46
|
+
```
|
47
|
+
|
48
|
+
### Global Option
|
49
|
+
|
50
|
+
- `--internal`: Use internal Artifactory resources (can also be set via `SIMA_CLI_INTERNAL=1`).
|
51
|
+
|
52
|
+
Environment detection output will appear like:
|
53
|
+
|
54
|
+
```
|
55
|
+
🔧 Environment: dev (sandbox) | Internal: True
|
56
|
+
```
|
57
|
+
|
58
|
+
If external mode is detected and not supported:
|
59
|
+
|
60
|
+
```
|
61
|
+
external environment is not supported yet..
|
62
|
+
```
|
63
|
+
|
64
|
+
---
|
65
|
+
|
66
|
+
## 🔐 Authentication
|
67
|
+
|
68
|
+
```bash
|
69
|
+
sima-cli login
|
70
|
+
```
|
71
|
+
|
72
|
+
Authenticates with the SiMa Developer Portal. Internal or external login is selected based on context.
|
73
|
+
|
74
|
+
---
|
75
|
+
|
76
|
+
## 📥 Download Resources
|
77
|
+
|
78
|
+
```bash
|
79
|
+
sima-cli download <URL> [-d DEST]
|
80
|
+
```
|
81
|
+
|
82
|
+
- Downloads a single file or an entire folder from the provided URL.
|
83
|
+
- Options:
|
84
|
+
- `-d`, `--dest`: Destination folder (default is current directory).
|
85
|
+
|
86
|
+
---
|
87
|
+
|
88
|
+
## 🔧 Firmware Update
|
89
|
+
|
90
|
+
```bash
|
91
|
+
sima-cli update <version_or_url> [--ip IP] [--board BOARD] [--passwd PASSWORD]
|
92
|
+
```
|
93
|
+
|
94
|
+
- Updates firmware either locally or over the network.
|
95
|
+
- Positional:
|
96
|
+
- `<version_or_url>`: Version string (e.g. `1.5.0`) or direct URL.
|
97
|
+
- Options:
|
98
|
+
- `--ip`: IP address of remote device (for network update).
|
99
|
+
- `--board`: Board type, one of `davinci`, `modalix` (default: `davinci`).
|
100
|
+
- `--passwd`: SSH password for remote board (default: `edgeai`).
|
101
|
+
|
102
|
+
---
|
103
|
+
|
104
|
+
## 🧠 Model Zoo
|
105
|
+
|
106
|
+
### List Models
|
107
|
+
|
108
|
+
```bash
|
109
|
+
sima-cli model-zoo list [--ver VERSION]
|
110
|
+
```
|
111
|
+
|
112
|
+
- Lists available models for a given SDK version.
|
113
|
+
|
114
|
+
### Get Model
|
115
|
+
|
116
|
+
```bash
|
117
|
+
sima-cli model-zoo get <MODEL_NAME> [--ver VERSION]
|
118
|
+
```
|
119
|
+
|
120
|
+
- Downloads the specified model.
|
121
|
+
|
122
|
+
---
|
123
|
+
|
124
|
+
## 📱 App Zoo
|
125
|
+
|
126
|
+
### List Apps
|
127
|
+
|
128
|
+
```bash
|
129
|
+
sima-cli app-zoo list [--ver VERSION]
|
130
|
+
```
|
131
|
+
|
132
|
+
- Lists available apps for a given SDK version.
|
133
|
+
|
134
|
+
### Get App
|
135
|
+
|
136
|
+
```bash
|
137
|
+
sima-cli app-zoo get <APP_NAME> [--ver VERSION]
|
138
|
+
```
|
139
|
+
|
140
|
+
- Downloads the specified app.
|
141
|
+
|
142
|
+
---
|
143
|
+
|
144
|
+
## 🌍 Environment Variable Support
|
145
|
+
|
146
|
+
Instead of using `--internal` flag every time, you can set:
|
147
|
+
|
148
|
+
```bash
|
149
|
+
export SIMA_CLI_INTERNAL=1
|
150
|
+
```
|
151
|
+
|
152
|
+
---
|
153
|
+
|
154
|
+
## 🧪 Examples
|
155
|
+
|
156
|
+
### Authenticate Internally
|
157
|
+
|
158
|
+
```bash
|
159
|
+
sima-cli --internal login
|
160
|
+
```
|
161
|
+
|
162
|
+
|
163
|
+
### Firmware Update on Davinci (MLSOC Gen 1) Board
|
164
|
+
|
165
|
+
```bash
|
166
|
+
sima-cli update 1.6.0_master_B1611 --ip 192.168.1.20
|
167
|
+
```
|
168
|
+
|
169
|
+
---
|
170
|
+
|
171
|
+
## 🧩 Requirements
|
172
|
+
|
173
|
+
- Python 3.8+
|
174
|
+
- Internal network access if using `--internal` features
|
175
|
+
|
176
|
+
---
|
177
|
+
|
178
|
+
## 📞 Support
|
179
|
+
|
180
|
+
Please reach out to **SiMa Support** (support@sima.ai) if you encounter issues with downloads or updates.
|
181
|
+
|
182
|
+
---
|
@@ -1,22 +1,26 @@
|
|
1
1
|
sima_cli/__init__.py,sha256=Nb2jSg9-CX1XvSc1c21U9qQ3atINxphuNkNfmR-9P3o,332
|
2
2
|
sima_cli/__main__.py,sha256=ehzD6AZ7zGytC2gLSvaJatxeD0jJdaEvNJvwYeGsWOg,69
|
3
|
-
sima_cli/__version__.py,sha256=
|
4
|
-
sima_cli/cli.py,sha256=
|
3
|
+
sima_cli/__version__.py,sha256=sGvIeMZm0sgBPjFQzdwrUk7MS8HYwQBhWImKqp6AiFg,49
|
4
|
+
sima_cli/cli.py,sha256=yLrzM-S4UsJXvWB3gLQb7YPAJTERwZUpavwM0F7TGQU,5702
|
5
5
|
sima_cli/app_zoo/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
6
6
|
sima_cli/app_zoo/app.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
7
7
|
sima_cli/auth/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
8
|
-
sima_cli/auth/login.py,sha256=
|
8
|
+
sima_cli/auth/login.py,sha256=HqnYEuYORI955Yc6WMnjbPW055Za0aswSUdKSeQ1kfI,3596
|
9
9
|
sima_cli/download/__init__.py,sha256=6y4O2FOCYFR2jdnQoVi3hRtEoZ0Gw6rydlTy1SGJ5FE,218
|
10
|
-
sima_cli/download/downloader.py,sha256=
|
10
|
+
sima_cli/download/downloader.py,sha256=zL8daM7Fqj1evzfQ9EHL1CVbuYL0_aQNhromqm7LkE0,4863
|
11
11
|
sima_cli/model_zoo/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
12
|
-
sima_cli/model_zoo/model.py,sha256=
|
12
|
+
sima_cli/model_zoo/model.py,sha256=WwtxyPiL0XAOFwH1JUK4aWnZpROHULTwfsnv0Y5_DpM,5223
|
13
13
|
sima_cli/update/__init__.py,sha256=0P-z-rSaev40IhfJXytK3AFWv2_sdQU4Ry6ei2sEus0,66
|
14
|
-
sima_cli/update/
|
14
|
+
sima_cli/update/local.py,sha256=s2K-FSeScHc4O5aUx2Uxo50BUg1auzEwNgfjrzKLzFQ,3025
|
15
|
+
sima_cli/update/remote.py,sha256=MFGanQvOQb76JRyiYccE7Tce2wABfixBoe_dJ0CH520,8395
|
16
|
+
sima_cli/update/updater.py,sha256=zCNqK50aBXuYw2ZtxzzNYoKRhqVSFx62BYAKe2S5YJo,13549
|
15
17
|
sima_cli/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
16
|
-
sima_cli/utils/
|
18
|
+
sima_cli/utils/artifactory.py,sha256=ZDw8dxbIvtUKS3c9tRHT5Y7LlFAkTp3p_ar5oqL6JIo,2375
|
19
|
+
sima_cli/utils/config.py,sha256=wE-cPQqY_gOqaP8t01xsRHD9tBUGk9MgBUm2GYYxI3E,1616
|
20
|
+
sima_cli/utils/config_loader.py,sha256=CcfjN1FbV-rppNXkmKVdfNpZqeSx1mCB8ylLhlJKAzU,922
|
17
21
|
sima_cli/utils/env.py,sha256=MjIHTioSvx8rQfHoLCAn5VzhaJwvXceTAcrmATXtn2Y,5487
|
18
22
|
sima_cli/utils/network.py,sha256=UvqxbqbWUczGFyO-t1SybG7Q-x9kjUVRNIn_D6APzy8,1252
|
19
|
-
sima_cli-0.0.
|
23
|
+
sima_cli-0.0.11.dist-info/licenses/LICENSE,sha256=a260OFuV4SsMZ6sQCkoYbtws_4o2deFtbnT9kg7Rfd4,1082
|
20
24
|
tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
21
25
|
tests/test_app_zoo.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
22
26
|
tests/test_auth.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -25,8 +29,8 @@ tests/test_download.py,sha256=t87DwxlHs26_ws9rpcHGwr_OrcRPd3hz6Zmm0vRee2U,4465
|
|
25
29
|
tests/test_firmware.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
26
30
|
tests/test_model_zoo.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
27
31
|
tests/test_utils.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
28
|
-
sima_cli-0.0.
|
29
|
-
sima_cli-0.0.
|
30
|
-
sima_cli-0.0.
|
31
|
-
sima_cli-0.0.
|
32
|
-
sima_cli-0.0.
|
32
|
+
sima_cli-0.0.11.dist-info/METADATA,sha256=zk5Ncrdtak-j0sh2dxDyB_WtX1JF4zHO55ZEcZfbmrw,3563
|
33
|
+
sima_cli-0.0.11.dist-info/WHEEL,sha256=SmOxYU7pzNKBqASvQJ7DjX3XGUF92lrGhMb3R6_iiqI,91
|
34
|
+
sima_cli-0.0.11.dist-info/entry_points.txt,sha256=xRYrDq1nCs6R8wEdB3c1kKuimxEjWJkHuCzArQPT0Xk,47
|
35
|
+
sima_cli-0.0.11.dist-info/top_level.txt,sha256=FtrbAUdHNohtEPteOblArxQNwoX9_t8qJQd59fagDlc,15
|
36
|
+
sima_cli-0.0.11.dist-info/RECORD,,
|
@@ -1,112 +0,0 @@
|
|
1
|
-
Metadata-Version: 2.4
|
2
|
-
Name: sima-cli
|
3
|
-
Version: 0.0.1
|
4
|
-
Summary: CLI tool for SiMa Developer Portal to download models, firmware, and apps.
|
5
|
-
Home-page: https://developer.sima.ai/
|
6
|
-
Author: SiMa.ai
|
7
|
-
Author-email: "Sima.ai" <support@sima.ai>
|
8
|
-
License: MIT
|
9
|
-
Project-URL: Homepage, https://developer.sima.ai/
|
10
|
-
Classifier: Programming Language :: Python :: 3
|
11
|
-
Classifier: License :: OSI Approved :: MIT License
|
12
|
-
Classifier: Operating System :: OS Independent
|
13
|
-
Classifier: Development Status :: 3 - Alpha
|
14
|
-
Classifier: Intended Audience :: Developers
|
15
|
-
Classifier: Topic :: Software Development :: Build Tools
|
16
|
-
Classifier: Environment :: Console
|
17
|
-
Requires-Python: >=3.10
|
18
|
-
Description-Content-Type: text/markdown
|
19
|
-
License-File: LICENSE
|
20
|
-
Requires-Dist: requests
|
21
|
-
Requires-Dist: click
|
22
|
-
Requires-Dist: tqdm
|
23
|
-
Dynamic: author
|
24
|
-
Dynamic: license-file
|
25
|
-
Dynamic: requires-python
|
26
|
-
|
27
|
-
# sima-cli
|
28
|
-
|
29
|
-
`sima-cli` is a lightweight command-line tool to interface with the SiMa Developer Portal. It allows users to authenticate, download models and firmware, and manage updates for SiMa devices.
|
30
|
-
|
31
|
-
## 🔧 Features
|
32
|
-
|
33
|
-
- Login with browser-based or manual authentication.
|
34
|
-
- Download resources via full URL or URI.
|
35
|
-
- List and download models and apps.
|
36
|
-
- Update firmware from version or URL.
|
37
|
-
- Automatically detects board vs PCIe host environment.
|
38
|
-
|
39
|
-
---
|
40
|
-
|
41
|
-
## 💻 For Developers
|
42
|
-
|
43
|
-
### 📁 Project Structure
|
44
|
-
|
45
|
-
```
|
46
|
-
sima-cli/
|
47
|
-
├── sima_cli/ # CLI source code
|
48
|
-
│ ├── cli.py # Main CLI entry point
|
49
|
-
│ ├── auth/ # Authentication logic
|
50
|
-
│ ├── download/ # Downloading logic
|
51
|
-
│ ├── firmware/ # Firmware update logic
|
52
|
-
│ ├── model_zoo/ # Model zoo interactions
|
53
|
-
│ ├── app_zoo/ # App zoo interactions
|
54
|
-
│ └── utils/ # Environment and config helpers
|
55
|
-
├── tests/ # Unit tests
|
56
|
-
├── pyproject.toml # Build config (PEP 517/518)
|
57
|
-
├── setup.cfg # Package config
|
58
|
-
├── requirements.txt # Dependencies
|
59
|
-
├── README.md # This file
|
60
|
-
```
|
61
|
-
|
62
|
-
---
|
63
|
-
|
64
|
-
### 🏗 Build Instructions
|
65
|
-
|
66
|
-
#### 1. Install dev dependencies
|
67
|
-
|
68
|
-
```bash
|
69
|
-
python -m venv venv
|
70
|
-
source venv/bin/activate
|
71
|
-
pip install -r requirements.txt
|
72
|
-
```
|
73
|
-
|
74
|
-
#### 2. Install package locally
|
75
|
-
|
76
|
-
```bash
|
77
|
-
pip install -e .
|
78
|
-
```
|
79
|
-
|
80
|
-
#### 3. Run CLI tool
|
81
|
-
|
82
|
-
```bash
|
83
|
-
sima-cli help
|
84
|
-
```
|
85
|
-
|
86
|
-
---
|
87
|
-
|
88
|
-
### 🧪 Run Tests
|
89
|
-
|
90
|
-
```bash
|
91
|
-
python -m unittest discover tests
|
92
|
-
```
|
93
|
-
|
94
|
-
---
|
95
|
-
|
96
|
-
### 📦 Build and Publish to PyPI
|
97
|
-
|
98
|
-
```bash
|
99
|
-
# Build wheel and sdist
|
100
|
-
python -m build
|
101
|
-
|
102
|
-
# Upload using Twine
|
103
|
-
twine upload dist/*
|
104
|
-
```
|
105
|
-
|
106
|
-
> ⚠ Make sure your version number is updated in `setup.cfg` or `pyproject.toml` before release.
|
107
|
-
|
108
|
-
---
|
109
|
-
|
110
|
-
### 🔗 Related Links
|
111
|
-
|
112
|
-
- [SiMa Developer Portal](https://developer.sima.ai/)
|
File without changes
|
File without changes
|
File without changes
|