backend.ai-cli 25.1.1__py3-none-any.whl → 25.3.0__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.
Potentially problematic release.
This version of backend.ai-cli might be problematic. Click here for more details.
- ai/backend/cli/VERSION +1 -1
- ai/backend/cli/params.py +20 -21
- {backend.ai_cli-25.1.1.dist-info → backend.ai_cli-25.3.0.dist-info}/METADATA +2 -2
- {backend.ai_cli-25.1.1.dist-info → backend.ai_cli-25.3.0.dist-info}/RECORD +8 -8
- {backend.ai_cli-25.1.1.dist-info → backend.ai_cli-25.3.0.dist-info}/WHEEL +0 -0
- {backend.ai_cli-25.1.1.dist-info → backend.ai_cli-25.3.0.dist-info}/entry_points.txt +0 -0
- {backend.ai_cli-25.1.1.dist-info → backend.ai_cli-25.3.0.dist-info}/namespace_packages.txt +0 -0
- {backend.ai_cli-25.1.1.dist-info → backend.ai_cli-25.3.0.dist-info}/top_level.txt +0 -0
ai/backend/cli/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
25.
|
|
1
|
+
25.3.0
|
ai/backend/cli/params.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import json
|
|
2
2
|
import re
|
|
3
|
-
from collections.abc import Mapping
|
|
3
|
+
from collections.abc import Mapping
|
|
4
4
|
from decimal import Decimal
|
|
5
5
|
from typing import (
|
|
6
6
|
Any,
|
|
@@ -208,25 +208,6 @@ class RangeExprOptionType(click.ParamType):
|
|
|
208
208
|
self.fail(str(e), param, ctx)
|
|
209
209
|
|
|
210
210
|
|
|
211
|
-
class CommaSeparatedListType(click.ParamType):
|
|
212
|
-
name = "List Expression"
|
|
213
|
-
|
|
214
|
-
@override
|
|
215
|
-
def convert(
|
|
216
|
-
self,
|
|
217
|
-
value: str,
|
|
218
|
-
param: Optional[click.Parameter],
|
|
219
|
-
ctx: Optional[click.Context],
|
|
220
|
-
) -> Sequence[str]:
|
|
221
|
-
try:
|
|
222
|
-
if isinstance(value, int):
|
|
223
|
-
return value
|
|
224
|
-
elif isinstance(value, str):
|
|
225
|
-
return value.split(",")
|
|
226
|
-
except ValueError as e:
|
|
227
|
-
self.fail(repr(e), param, ctx)
|
|
228
|
-
|
|
229
|
-
|
|
230
211
|
T = TypeVar("T")
|
|
231
212
|
|
|
232
213
|
|
|
@@ -237,10 +218,28 @@ class SingleValueConstructorType(Protocol):
|
|
|
237
218
|
TScalar = TypeVar("TScalar", bound=SingleValueConstructorType | click.ParamType)
|
|
238
219
|
|
|
239
220
|
|
|
221
|
+
class CommaSeparatedListType(click.ParamType, Generic[TScalar]):
|
|
222
|
+
name = "List Expression"
|
|
223
|
+
|
|
224
|
+
def __init__(self, type_: Optional[type[TScalar]] = None) -> None:
|
|
225
|
+
super().__init__()
|
|
226
|
+
self.type_ = type_ if type_ is not None else str
|
|
227
|
+
|
|
228
|
+
def convert(self, arg, param, ctx):
|
|
229
|
+
try:
|
|
230
|
+
match arg:
|
|
231
|
+
case int():
|
|
232
|
+
return arg
|
|
233
|
+
case str():
|
|
234
|
+
return [self.type_(elem) for elem in arg.split(",")]
|
|
235
|
+
except ValueError as e:
|
|
236
|
+
self.fail(repr(e), param, ctx)
|
|
237
|
+
|
|
238
|
+
|
|
240
239
|
class OptionalType(click.ParamType, Generic[TScalar]):
|
|
241
240
|
name = "Optional Type Wrapper"
|
|
242
241
|
|
|
243
|
-
def __init__(self, type_: type[TScalar] | click.ParamType) -> None:
|
|
242
|
+
def __init__(self, type_: type[TScalar] | type[click.ParamType] | click.ParamType) -> None:
|
|
244
243
|
super().__init__()
|
|
245
244
|
self.type_ = type_
|
|
246
245
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: backend.ai-cli
|
|
3
|
-
Version: 25.
|
|
3
|
+
Version: 25.3.0
|
|
4
4
|
Summary: Backend.AI Command Line Interface Helper
|
|
5
5
|
Home-page: https://github.com/lablup/backend.ai
|
|
6
6
|
Author: Lablup Inc. and contributors
|
|
@@ -21,7 +21,7 @@ Classifier: License :: OSI Approved :: MIT License
|
|
|
21
21
|
Requires-Python: >=3.12,<3.13
|
|
22
22
|
Description-Content-Type: text/markdown
|
|
23
23
|
Requires-Dist: attrs>=24.2
|
|
24
|
-
Requires-Dist: backend.ai-plugin==25.
|
|
24
|
+
Requires-Dist: backend.ai-plugin==25.3.0
|
|
25
25
|
Requires-Dist: click~=8.1.7
|
|
26
26
|
Requires-Dist: trafaret~=2.1
|
|
27
27
|
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
ai/backend/cli/VERSION,sha256=
|
|
1
|
+
ai/backend/cli/VERSION,sha256=uAR3ScH_ZFAMB-0orH5ubFBrJN40uP6WZBb_U78eUeE,6
|
|
2
2
|
ai/backend/cli/__init__.py,sha256=cID1jLnC_vj48GgMN6Yb1FA3JsQ95zNmCHmRYE8TFhY,22
|
|
3
3
|
ai/backend/cli/__main__.py,sha256=Rp61ckhVRXFk_0BywIRgbiOzkR_gLq2cyyiDyLsB8UI,291
|
|
4
4
|
ai/backend/cli/extensions.py,sha256=twjloigQl4VTBU8gP6YMZNGi3dUDW4V_i-yVX12HRH0,5125
|
|
5
5
|
ai/backend/cli/interaction.py,sha256=L-6kvJbxMw9YeO_NT78wortS_Db0Qx9W8XiY56JgorI,4982
|
|
6
6
|
ai/backend/cli/loader.py,sha256=yWyNyvFJORtFFQfcL-vqwD5NbRxAHxS_uH1878r9EIA,1140
|
|
7
7
|
ai/backend/cli/main.py,sha256=8HpGUH5k0uv6lKVqKoctW3vd9hm1xo_j06HSCvyRvgw,707
|
|
8
|
-
ai/backend/cli/params.py,sha256=
|
|
8
|
+
ai/backend/cli/params.py,sha256=QYkwfgmpRmgM6U6hjgKUzE3Io981CVTigtSl_Tm8ehQ,7561
|
|
9
9
|
ai/backend/cli/py.typed,sha256=QJeIkjairybCkwM_65ZMTPEYwCJODQY_7AqJ6dBWnvI,11
|
|
10
10
|
ai/backend/cli/types.py,sha256=mThxfeGD6MsHt0OkMdw1LvjufENHYbYZXcgRVNpmD5o,734
|
|
11
|
-
backend.ai_cli-25.
|
|
12
|
-
backend.ai_cli-25.
|
|
13
|
-
backend.ai_cli-25.
|
|
14
|
-
backend.ai_cli-25.
|
|
15
|
-
backend.ai_cli-25.
|
|
16
|
-
backend.ai_cli-25.
|
|
11
|
+
backend.ai_cli-25.3.0.dist-info/METADATA,sha256=bQCQul5IdffyvCNTluVoSZFswmeqaqBQqzAvhlrBILs,1730
|
|
12
|
+
backend.ai_cli-25.3.0.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
|
|
13
|
+
backend.ai_cli-25.3.0.dist-info/entry_points.txt,sha256=lOiEpT48ETF_ht5fFVQugAjZSuZr-wkGYZzfC5YTnuY,60
|
|
14
|
+
backend.ai_cli-25.3.0.dist-info/namespace_packages.txt,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
15
|
+
backend.ai_cli-25.3.0.dist-info/top_level.txt,sha256=TJAp5TUfTUztZSUatbygths7CWRrFfnOMCtZ-DIcw6c,3
|
|
16
|
+
backend.ai_cli-25.3.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|