qwak-sdk 0.5.85__py3-none-any.whl → 0.5.87__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 qwak-sdk might be problematic. Click here for more details.
- qwak_sdk/__init__.py +1 -1
- qwak_sdk/cli.py +65 -8
- {qwak_sdk-0.5.85.dist-info → qwak_sdk-0.5.87.dist-info}/METADATA +4 -8
- {qwak_sdk-0.5.85.dist-info → qwak_sdk-0.5.87.dist-info}/RECORD +6 -6
- {qwak_sdk-0.5.85.dist-info → qwak_sdk-0.5.87.dist-info}/WHEEL +1 -1
- {qwak_sdk-0.5.85.dist-info → qwak_sdk-0.5.87.dist-info}/entry_points.txt +0 -0
qwak_sdk/__init__.py
CHANGED
qwak_sdk/cli.py
CHANGED
|
@@ -4,6 +4,7 @@ import click
|
|
|
4
4
|
from packaging import version
|
|
5
5
|
from qwak.inner.di_configuration import UserAccountConfiguration
|
|
6
6
|
from qwak.inner.di_configuration.account import UserAccount
|
|
7
|
+
from qwak.inner.tool.auth import FrogMLAuthClient
|
|
7
8
|
|
|
8
9
|
from qwak_sdk import __version__ as sdk_version
|
|
9
10
|
from qwak_sdk.commands.admin.admin_commands_group import admin_commands_group
|
|
@@ -41,7 +42,32 @@ def create_qwak_cli():
|
|
|
41
42
|
|
|
42
43
|
@qwak_cli.command("configure", short_help="Configure the Qwak environment")
|
|
43
44
|
@click.option(
|
|
44
|
-
"--api-key",
|
|
45
|
+
"--api-key",
|
|
46
|
+
metavar="QWAK_API_KEY",
|
|
47
|
+
required=False,
|
|
48
|
+
help="Qwak assigned API key",
|
|
49
|
+
)
|
|
50
|
+
@click.option(
|
|
51
|
+
"--url", metavar="BASE_URL", required=False, help="Artifactory base url"
|
|
52
|
+
)
|
|
53
|
+
@click.option(
|
|
54
|
+
"--username", metavar="USERNAME", required=False, help="The user's username"
|
|
55
|
+
)
|
|
56
|
+
@click.option(
|
|
57
|
+
"--password", metavar="PASSWORD", required=False, help="The user's password"
|
|
58
|
+
)
|
|
59
|
+
@click.option(
|
|
60
|
+
"--token",
|
|
61
|
+
metavar="TOKEN",
|
|
62
|
+
required=False,
|
|
63
|
+
help="Access token to authenticate",
|
|
64
|
+
)
|
|
65
|
+
@click.option(
|
|
66
|
+
"--interactive",
|
|
67
|
+
metavar="INTERACTIVE",
|
|
68
|
+
required=False,
|
|
69
|
+
help="Login with interactive flow",
|
|
70
|
+
default=False,
|
|
45
71
|
)
|
|
46
72
|
@click.option(
|
|
47
73
|
"--environment",
|
|
@@ -51,15 +77,46 @@ def create_qwak_cli():
|
|
|
51
77
|
is_eager=True,
|
|
52
78
|
help="Qwak environment's name",
|
|
53
79
|
)
|
|
80
|
+
@click.option(
|
|
81
|
+
"--type",
|
|
82
|
+
metavar="TYPE",
|
|
83
|
+
default="qwak",
|
|
84
|
+
required=False,
|
|
85
|
+
type=click.Choice(["qwak", "jfrog"], case_sensitive=False),
|
|
86
|
+
is_eager=True,
|
|
87
|
+
help="Login type (qwak/jfrog)",
|
|
88
|
+
)
|
|
54
89
|
@profile_setter_wrapper
|
|
55
|
-
def set_configuration(
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
90
|
+
def set_configuration(
|
|
91
|
+
api_key: Optional[str],
|
|
92
|
+
url: Optional[str],
|
|
93
|
+
username: Optional[str],
|
|
94
|
+
password: Optional[str],
|
|
95
|
+
token: Optional[str],
|
|
96
|
+
interactive: bool,
|
|
97
|
+
environment: str,
|
|
98
|
+
type: str,
|
|
99
|
+
**_,
|
|
100
|
+
):
|
|
101
|
+
if type.lower() == "jfrog":
|
|
102
|
+
account_config = UserAccountConfiguration(auth_client=FrogMLAuthClient)
|
|
103
|
+
account_config.configure_user(
|
|
104
|
+
UserAccount(
|
|
105
|
+
url=url,
|
|
106
|
+
username=username,
|
|
107
|
+
password=password,
|
|
108
|
+
api_key=token,
|
|
109
|
+
anonymous=False,
|
|
110
|
+
is_interactive=interactive,
|
|
111
|
+
)
|
|
112
|
+
)
|
|
113
|
+
elif type.lower() == "qwak":
|
|
114
|
+
if api_key is None:
|
|
115
|
+
api_key = click.prompt("Please enter your API key", type=str)
|
|
61
116
|
|
|
62
|
-
|
|
117
|
+
account_config = UserAccountConfiguration()
|
|
118
|
+
account_config.configure_user(UserAccount(api_key=api_key))
|
|
119
|
+
print(f"User successfully configured for the '{environment}' environment")
|
|
63
120
|
|
|
64
121
|
qwak_cli.add_command(projects_command_group)
|
|
65
122
|
qwak_cli.add_command(models_command_group)
|
|
@@ -1,24 +1,20 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.3
|
|
2
2
|
Name: qwak-sdk
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.87
|
|
4
4
|
Summary: Qwak SDK and CLI for qwak models
|
|
5
5
|
License: Apache-2.0
|
|
6
6
|
Keywords: mlops,ml,deployment,serving,model
|
|
7
7
|
Author: Qwak
|
|
8
8
|
Author-email: info@qwak.com
|
|
9
|
-
Requires-Python: >=3.
|
|
9
|
+
Requires-Python: >=3.9,<3.12
|
|
10
10
|
Classifier: License :: OSI Approved :: Apache Software License
|
|
11
11
|
Classifier: Operating System :: OS Independent
|
|
12
12
|
Classifier: Programming Language :: Python :: 3
|
|
13
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
14
13
|
Classifier: Programming Language :: Python :: 3.9
|
|
15
14
|
Classifier: Programming Language :: Python :: 3.10
|
|
16
15
|
Classifier: Programming Language :: Python :: 3.11
|
|
17
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
18
|
-
Classifier: Programming Language :: Python :: 3.11
|
|
19
16
|
Classifier: Programming Language :: Python :: 3.7
|
|
20
17
|
Classifier: Programming Language :: Python :: 3.8
|
|
21
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
22
18
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
23
19
|
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
24
20
|
Provides-Extra: batch
|
|
@@ -41,7 +37,7 @@ Requires-Dist: pyarrow (>=6.0.0,<11.0.0) ; extra == "batch" or extra == "feature
|
|
|
41
37
|
Requires-Dist: pyathena (>=2.2.0,!=2.18.0) ; extra == "feature-store"
|
|
42
38
|
Requires-Dist: pyspark (==3.4.2) ; extra == "feature-store"
|
|
43
39
|
Requires-Dist: python-json-logger (>=2.0.2)
|
|
44
|
-
Requires-Dist: qwak-core (==0.4.
|
|
40
|
+
Requires-Dist: qwak-core (==0.4.180)
|
|
45
41
|
Requires-Dist: qwak-inference (>=0.1.18,<0.2.0)
|
|
46
42
|
Requires-Dist: rich (>=13.0.0)
|
|
47
43
|
Requires-Dist: tabulate (>=0.8.0)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
qwak_sdk/__init__.py,sha256=
|
|
2
|
-
qwak_sdk/cli.py,sha256=
|
|
1
|
+
qwak_sdk/__init__.py,sha256=jo5nEmqxiLv-oPqC7yz-6Y8fDeIleT69xAaNo6gE9Nw,135
|
|
2
|
+
qwak_sdk/cli.py,sha256=frMefF0AmLI1g5A9aADNueUkMDjRHikKlmXIA2i4kYA,4510
|
|
3
3
|
qwak_sdk/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
4
|
qwak_sdk/commands/_logic/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
5
|
qwak_sdk/commands/_logic/tools.py,sha256=uJOSfpifONXjFJjaHvm_7ivTs8K0PO56YoxhU0dktPU,239
|
|
@@ -319,7 +319,7 @@ qwak_sdk/tools/colors.py,sha256=7pui_GGjC4uZKYFsIyXaJjYsjLxJVHb4OrfTgr93hqo,287
|
|
|
319
319
|
qwak_sdk/tools/files.py,sha256=AyKJTOy7NhvP3SrqwIw_lxYNCOy1CvLgMmSJpWZ0OKM,2257
|
|
320
320
|
qwak_sdk/tools/log_handling.py,sha256=Aa1EmxUPCX8YWiZRutUvnqPv6K_z1zoGMwIWsEv24mM,6327
|
|
321
321
|
qwak_sdk/tools/utils.py,sha256=SHmU4r_m2ABZyFYMC03P17GvltPbYbmB39hvalIZEtI,1168
|
|
322
|
-
qwak_sdk-0.5.
|
|
323
|
-
qwak_sdk-0.5.
|
|
324
|
-
qwak_sdk-0.5.
|
|
325
|
-
qwak_sdk-0.5.
|
|
322
|
+
qwak_sdk-0.5.87.dist-info/METADATA,sha256=x3I9wEw0oYlrmhNnKVJOHhL0ovEOSU3fT7NfY9H6YBg,2774
|
|
323
|
+
qwak_sdk-0.5.87.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
|
|
324
|
+
qwak_sdk-0.5.87.dist-info/entry_points.txt,sha256=vSl0ELYDyj640oMM57u0AjBP87wtLYxCcGOendhEx80,47
|
|
325
|
+
qwak_sdk-0.5.87.dist-info/RECORD,,
|
|
File without changes
|