modelslab-cli 0.1.4__py3-none-macosx_11_0_arm64.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.
- modelslab_cli/__init__.py +1 -0
- modelslab_cli/__main__.py +38 -0
- modelslab_cli/bin/modelslab +0 -0
- modelslab_cli-0.1.4.dist-info/METADATA +39 -0
- modelslab_cli-0.1.4.dist-info/RECORD +8 -0
- modelslab_cli-0.1.4.dist-info/WHEEL +4 -0
- modelslab_cli-0.1.4.dist-info/entry_points.txt +2 -0
- modelslab_cli-0.1.4.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""ModelsLab CLI."""
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"""Console entry point for the ModelsLab CLI."""
|
|
2
|
+
import os
|
|
3
|
+
import sys
|
|
4
|
+
from pathlib import Path
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
def _binary() -> Path:
|
|
8
|
+
exe = "modelslab.exe" if os.name == "nt" else "modelslab"
|
|
9
|
+
return Path(__file__).resolve().parent / "bin" / exe
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
def main() -> int:
|
|
13
|
+
binary = _binary()
|
|
14
|
+
|
|
15
|
+
if not binary.exists():
|
|
16
|
+
sys.stderr.write(
|
|
17
|
+
"ModelsLab CLI binary is missing from the installed package.\n"
|
|
18
|
+
"Reinstall with: pip install --force-reinstall modelslab-cli\n"
|
|
19
|
+
)
|
|
20
|
+
return 1
|
|
21
|
+
|
|
22
|
+
argv = [str(binary), *sys.argv[1:]]
|
|
23
|
+
|
|
24
|
+
if os.name == "nt":
|
|
25
|
+
# Windows has no exec that replaces the process in a way cmd respects;
|
|
26
|
+
# spawn and forward the exit code instead.
|
|
27
|
+
import subprocess
|
|
28
|
+
|
|
29
|
+
return subprocess.call(argv)
|
|
30
|
+
|
|
31
|
+
# Replace this process so signals, exit codes and TTY behaviour are the
|
|
32
|
+
# binary's own. A subprocess wrapper here would swallow SIGINT handling.
|
|
33
|
+
os.execv(str(binary), argv)
|
|
34
|
+
return 1 # unreachable; execv does not return
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
if __name__ == "__main__":
|
|
38
|
+
raise SystemExit(main())
|
|
Binary file
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: modelslab-cli
|
|
3
|
+
Version: 0.1.4
|
|
4
|
+
Summary: ModelsLab CLI — AI generation and account management from the terminal
|
|
5
|
+
Home-page: https://modelslab.sh
|
|
6
|
+
Author: ModelsLab
|
|
7
|
+
Author-email: support@modelslab.com
|
|
8
|
+
License: MIT
|
|
9
|
+
Project-URL: Source, https://github.com/ModelsLab/modelslab-cli
|
|
10
|
+
Project-URL: Documentation, https://docs.modelslab.com
|
|
11
|
+
Classifier: Development Status :: 4 - Beta
|
|
12
|
+
Classifier: Environment :: Console
|
|
13
|
+
Classifier: Intended Audience :: Developers
|
|
14
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
15
|
+
Classifier: Programming Language :: Go
|
|
16
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
17
|
+
Requires-Python: >=3.8
|
|
18
|
+
Description-Content-Type: text/markdown
|
|
19
|
+
|
|
20
|
+
# ModelsLab CLI
|
|
21
|
+
|
|
22
|
+
AI generation and account management from the terminal. One command surface over
|
|
23
|
+
the ModelsLab API: image, video, audio, 3D and LLM generation, plus authentication,
|
|
24
|
+
billing, wallet, subscriptions and model discovery.
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
npm install -g modelslab-cli
|
|
28
|
+
modelslab auth login
|
|
29
|
+
modelslab generate image --prompt "a lighthouse at dusk" --model flux
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
The package installs a prebuilt binary for your platform as an optional
|
|
33
|
+
dependency — nothing is compiled and no install script runs.
|
|
34
|
+
|
|
35
|
+
Supported: macOS (Intel, Apple Silicon), Linux (x64, arm64), Windows (x64, arm64).
|
|
36
|
+
|
|
37
|
+
- Docs: https://docs.modelslab.com
|
|
38
|
+
- Source: https://github.com/ModelsLab/modelslab-cli
|
|
39
|
+
- Other install methods (Homebrew, Scoop, shell): https://modelslab.sh
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
modelslab_cli/__init__.py,sha256=wntVws-tLdqAVH0fPBoDK5tsZJgU6cGuH2Ag1_GXfmo,21
|
|
2
|
+
modelslab_cli/__main__.py,sha256=5Nq3KUwS-cuYhyFQ41mJdFIBvrEfuuwuUuAms5sFx4s,1072
|
|
3
|
+
modelslab_cli/bin/modelslab,sha256=Mhfn32iFD5GJwcb6aZT8osrt1-gEB96ecOSGHZP9GdU,10532626
|
|
4
|
+
modelslab_cli-0.1.4.dist-info/METADATA,sha256=tvImKdboMC_oRIybMK5SWK5upe4KPN2mgsttY9PKGqw,1451
|
|
5
|
+
modelslab_cli-0.1.4.dist-info/WHEEL,sha256=gdOqYtNEYRS4fySvvydOoqHOB7CIrxn67ReO2ZpF-kw,123
|
|
6
|
+
modelslab_cli-0.1.4.dist-info/entry_points.txt,sha256=qQ-75xQ_2vv1TK7sV-LMgP2faz4kUYVPrelgQUulOQU,58
|
|
7
|
+
modelslab_cli-0.1.4.dist-info/top_level.txt,sha256=28R4VqgLPd2PZ_LQfUpqHsPPhKqKFPpf0NuNx8d_qFU,14
|
|
8
|
+
modelslab_cli-0.1.4.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
modelslab_cli
|