ve-tos-cli 1.0.0__py3-none-win_amd64.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.
- ve_tos_cli-1.0.0.dist-info/METADATA +11 -0
- ve_tos_cli-1.0.0.dist-info/RECORD +8 -0
- ve_tos_cli-1.0.0.dist-info/WHEEL +5 -0
- ve_tos_cli-1.0.0.dist-info/entry_points.txt +2 -0
- ve_tos_cli-1.0.0.dist-info/top_level.txt +1 -0
- ve_tos_cli_package/__init__.py +1 -0
- ve_tos_cli_package/bin/ve-tos-cli.exe +0 -0
- ve_tos_cli_package/launcher.py +38 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: ve-tos-cli
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: Dedicated TOS command-line interface for Volcengine storage services
|
|
5
|
+
License: Apache-2.0
|
|
6
|
+
Requires-Python: >=3.8
|
|
7
|
+
Description-Content-Type: text/markdown
|
|
8
|
+
|
|
9
|
+
# ve-tos-cli
|
|
10
|
+
|
|
11
|
+
Thin PyPI package for Volcengine storage CLI binaries.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
ve_tos_cli_package/__init__.py,sha256=vm0g-xJKQ0V2leIoWluBahcv7MxomUsz-Y0De_uMX94,48
|
|
2
|
+
ve_tos_cli_package/launcher.py,sha256=oTYsF8qVRjhDrAl_GoHetyqB5E2vp7mYdCbQ7bCbTzQ,959
|
|
3
|
+
ve_tos_cli_package/bin/ve-tos-cli.exe,sha256=BbhZb6SRE2kvBqJaH2bO7cYbnu2lR-ikqEAkc-wA3mc,25379328
|
|
4
|
+
ve_tos_cli-1.0.0.dist-info/METADATA,sha256=HvIagyL7EsLa8yv0uCiOVqIdN0AgsCsLhBr_J99-Syw,285
|
|
5
|
+
ve_tos_cli-1.0.0.dist-info/WHEEL,sha256=GjDPPQwEcripVP6P2r3RxLa-h5Lb9ifGB7FYYtbLDT0,98
|
|
6
|
+
ve_tos_cli-1.0.0.dist-info/entry_points.txt,sha256=CZwBgvm2uaGf_wLFwiUsjm4OzkJXbgl1iNrzDsCUQEM,64
|
|
7
|
+
ve_tos_cli-1.0.0.dist-info/top_level.txt,sha256=DKf2scF1oia2aNqOjrCiS76T_5pvleBM_G6PNwuDCCY,19
|
|
8
|
+
ve_tos_cli-1.0.0.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ve_tos_cli_package
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""Packaged Volcengine storage CLI launcher."""
|
|
Binary file
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"""Console-script launcher for packaged Volcengine storage CLI binaries."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import os
|
|
6
|
+
import subprocess
|
|
7
|
+
import sys
|
|
8
|
+
from pathlib import Path
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
COMMAND_ALIASES = {
|
|
12
|
+
"ve-tos-cli": "ve-tos-cli",
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def _binary_path(command_name: str) -> Path:
|
|
17
|
+
suffix = ".exe" if os.name == "nt" else ""
|
|
18
|
+
return Path(__file__).with_name("bin") / f"{command_name}{suffix}"
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
def run(command_name: str) -> int:
|
|
22
|
+
binary_path = _binary_path(command_name)
|
|
23
|
+
if not binary_path.exists():
|
|
24
|
+
print(f"{command_name} binary is missing from the installed wheel", file=sys.stderr)
|
|
25
|
+
return 1
|
|
26
|
+
|
|
27
|
+
argv = [str(binary_path), *sys.argv[1:]]
|
|
28
|
+
if os.name == "nt":
|
|
29
|
+
return subprocess.run(argv, check=False).returncode
|
|
30
|
+
|
|
31
|
+
os.execv(str(binary_path), argv)
|
|
32
|
+
return 1
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
def main() -> int:
|
|
36
|
+
entry_name = Path(sys.argv[0]).name
|
|
37
|
+
command_name = COMMAND_ALIASES.get(entry_name, "ve-tos-cli")
|
|
38
|
+
return run(command_name)
|