qwak-sdk 0.5.80__py3-none-any.whl → 0.5.82__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 +14 -2
- qwak_sdk/commands/feature_store/register/_logic.py +12 -3
- qwak_sdk/commands/models/build/ui.py +7 -0
- {qwak_sdk-0.5.80.dist-info → qwak_sdk-0.5.82.dist-info}/METADATA +2 -2
- {qwak_sdk-0.5.80.dist-info → qwak_sdk-0.5.82.dist-info}/RECORD +8 -8
- {qwak_sdk-0.5.80.dist-info → qwak_sdk-0.5.82.dist-info}/WHEEL +0 -0
- {qwak_sdk-0.5.80.dist-info → qwak_sdk-0.5.82.dist-info}/entry_points.txt +0 -0
qwak_sdk/__init__.py
CHANGED
qwak_sdk/cli.py
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
from typing import Optional
|
|
2
|
+
|
|
1
3
|
import click
|
|
2
4
|
from packaging import version
|
|
3
5
|
from qwak.inner.di_configuration import UserAccountConfiguration
|
|
@@ -19,6 +21,7 @@ from qwak_sdk.commands.secrets.secrets_commands_group import secrets_commands_gr
|
|
|
19
21
|
from qwak_sdk.commands.workspaces.workspaces_commands_group import (
|
|
20
22
|
workspaces_commands_group,
|
|
21
23
|
)
|
|
24
|
+
from qwak_sdk.inner.tools.cli_tools import profile_setter_wrapper
|
|
22
25
|
from qwak_sdk.inner.tools.logger import setup_qwak_logger
|
|
23
26
|
|
|
24
27
|
version_option_kwargs = {}
|
|
@@ -40,14 +43,23 @@ def create_qwak_cli():
|
|
|
40
43
|
@click.option(
|
|
41
44
|
"--api-key", metavar="PASSWORD", required=False, help="Qwak assigned API key"
|
|
42
45
|
)
|
|
43
|
-
|
|
46
|
+
@click.option(
|
|
47
|
+
"--environment",
|
|
48
|
+
metavar="ENVIRONMENT",
|
|
49
|
+
default="default",
|
|
50
|
+
required=False,
|
|
51
|
+
is_eager=True,
|
|
52
|
+
help="Qwak environment's name",
|
|
53
|
+
)
|
|
54
|
+
@profile_setter_wrapper
|
|
55
|
+
def set_configuration(api_key: Optional[str], environment: str, **_):
|
|
44
56
|
if api_key is None:
|
|
45
57
|
api_key = click.prompt("Please enter your API key", type=str)
|
|
46
58
|
|
|
47
59
|
account_config = UserAccountConfiguration()
|
|
48
60
|
account_config.configure_user(UserAccount(api_key=api_key))
|
|
49
61
|
|
|
50
|
-
print("User successfully configured")
|
|
62
|
+
print(f"User successfully configured for the '{environment}' environment")
|
|
51
63
|
|
|
52
64
|
qwak_cli.add_command(projects_command_group)
|
|
53
65
|
qwak_cli.add_command(models_command_group)
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
from pathlib import Path
|
|
1
2
|
from typing import List, Optional, Tuple, cast
|
|
2
3
|
|
|
3
4
|
from _qwak_proto.qwak.feature_store.entities.entity_pb2 import (
|
|
@@ -89,7 +90,9 @@ def _register_data_sources(
|
|
|
89
90
|
with qwak_spinner(
|
|
90
91
|
begin_text="Finding Data Sources to register", print_callback=print
|
|
91
92
|
):
|
|
92
|
-
qwak_sources = extract_class_objects(
|
|
93
|
+
qwak_sources: List[Tuple[BaseSource, str]] = extract_class_objects(
|
|
94
|
+
qwak_python_files, BaseSource
|
|
95
|
+
)
|
|
93
96
|
|
|
94
97
|
print(f"👀 Found {len(qwak_sources)} Data Sources")
|
|
95
98
|
for data_source, source_file_path in qwak_sources:
|
|
@@ -115,7 +118,10 @@ def _register_data_sources(
|
|
|
115
118
|
f"Update existing Data Source '{data_source.name}' from source file '{source_file_path}'?",
|
|
116
119
|
force,
|
|
117
120
|
):
|
|
118
|
-
data_source_proto, _ = data_source._prepare_and_get(
|
|
121
|
+
data_source_proto, _ = data_source._prepare_and_get(
|
|
122
|
+
artifact_url=artifact_url,
|
|
123
|
+
source_definition_path=Path(source_file_path),
|
|
124
|
+
)
|
|
119
125
|
registry.update_data_source(
|
|
120
126
|
existing_source.data_source.data_source_definition.data_source_id,
|
|
121
127
|
data_source_proto,
|
|
@@ -125,7 +131,10 @@ def _register_data_sources(
|
|
|
125
131
|
f"Create Data Source '{data_source.name}' from source file '{source_file_path}'?",
|
|
126
132
|
force,
|
|
127
133
|
):
|
|
128
|
-
data_source_proto, _ = data_source._prepare_and_get(
|
|
134
|
+
data_source_proto, _ = data_source._prepare_and_get(
|
|
135
|
+
artifact_url=artifact_url,
|
|
136
|
+
source_definition_path=Path(source_file_path),
|
|
137
|
+
)
|
|
129
138
|
registry.create_data_source(data_source_proto)
|
|
130
139
|
print(DELIMITER)
|
|
131
140
|
|
|
@@ -264,6 +264,13 @@ from qwak_sdk.inner.tools.config_handler import config_handler
|
|
|
264
264
|
help="Timeout in minutes for the provision instance step",
|
|
265
265
|
default=120,
|
|
266
266
|
)
|
|
267
|
+
@click.option(
|
|
268
|
+
"-N",
|
|
269
|
+
"--name",
|
|
270
|
+
"build_name",
|
|
271
|
+
required=False,
|
|
272
|
+
help="The build's name",
|
|
273
|
+
)
|
|
267
274
|
@click.argument("uri", required=False)
|
|
268
275
|
def models_build(**kwargs):
|
|
269
276
|
return build(**kwargs)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: qwak-sdk
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.82
|
|
4
4
|
Summary: Qwak SDK and CLI for qwak models
|
|
5
5
|
License: Apache-2.0
|
|
6
6
|
Keywords: mlops,ml,deployment,serving,model
|
|
@@ -41,7 +41,7 @@ Requires-Dist: pyarrow (>=6.0.0,<11.0.0) ; extra == "batch" or extra == "feature
|
|
|
41
41
|
Requires-Dist: pyathena (>=2.2.0,!=2.18.0) ; extra == "feature-store"
|
|
42
42
|
Requires-Dist: pyspark (==3.4.2) ; extra == "feature-store"
|
|
43
43
|
Requires-Dist: python-json-logger (>=2.0.2)
|
|
44
|
-
Requires-Dist: qwak-core (==0.4.
|
|
44
|
+
Requires-Dist: qwak-core (==0.4.105)
|
|
45
45
|
Requires-Dist: qwak-inference (>=0.1.18,<0.2.0)
|
|
46
46
|
Requires-Dist: rich (>=13.0.0)
|
|
47
47
|
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=5WxdaiKUba1SxlVhvAfhCqKTvIv97ryFMadJWNOh6yw,135
|
|
2
|
+
qwak_sdk/cli.py,sha256=AFUAqablunsHasfY1ikhj9GYUARbQ5dR-sblxqa1id4,2841
|
|
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
|
|
@@ -92,7 +92,7 @@ qwak_sdk/commands/feature_store/list/ui.py,sha256=NuXnQ3cdXSDCFAcC2jmgx4sAdjNuyI
|
|
|
92
92
|
qwak_sdk/commands/feature_store/pause/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
93
93
|
qwak_sdk/commands/feature_store/pause/ui.py,sha256=C89yl4ly-RpyZub30q5xV5g1UDnI_GmHSndvXAkXkw4,695
|
|
94
94
|
qwak_sdk/commands/feature_store/register/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
95
|
-
qwak_sdk/commands/feature_store/register/_logic.py,sha256=
|
|
95
|
+
qwak_sdk/commands/feature_store/register/_logic.py,sha256=C_clkccTr36fUAYrjOG6-4m0qz4sc2nx351qdHtFbRI,13468
|
|
96
96
|
qwak_sdk/commands/feature_store/register/ui.py,sha256=F9bCsV13ZdmzHw470Bfso48LzjABLmYx5p8sISJNPh0,2997
|
|
97
97
|
qwak_sdk/commands/feature_store/resume/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
98
98
|
qwak_sdk/commands/feature_store/resume/ui.py,sha256=nI87xvA30qNQVJnT67lYJgwKGBtvZAurC6XX9ttpCZA,700
|
|
@@ -122,7 +122,7 @@ qwak_sdk/commands/models/build/_logic/util/protobuf_factory.py,sha256=ar_oY38w_x
|
|
|
122
122
|
qwak_sdk/commands/models/build/_logic/util/step_decorator.py,sha256=HLZyCGdqe3Ir7SaPWp1YNRHJpjXG-e-bbAvnOFysAVM,1913
|
|
123
123
|
qwak_sdk/commands/models/build/_logic/util/text.py,sha256=tH-v19Mt8l90sMVxku5XRtrderT0qdRqJ-jLijqannA,188
|
|
124
124
|
qwak_sdk/commands/models/build/_logic/wait_until_finished.py,sha256=DxIyNK-MFjxSh9xe7dJx-znmz8ZOqelK-cJQvr7YI9g,1220
|
|
125
|
-
qwak_sdk/commands/models/build/ui.py,sha256=
|
|
125
|
+
qwak_sdk/commands/models/build/ui.py,sha256=eQWoaA5zA3KsRUfNMA3XanLboVc2rO50l6FzdDomd1c,9869
|
|
126
126
|
qwak_sdk/commands/models/builds/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
127
127
|
qwak_sdk/commands/models/builds/builds_commands_group.py,sha256=0nSfTY8TracXG61rFboQWUTXJisHO6dgtJKeijy6ru8,491
|
|
128
128
|
qwak_sdk/commands/models/builds/cancel/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -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.82.dist-info/entry_points.txt,sha256=vSl0ELYDyj640oMM57u0AjBP87wtLYxCcGOendhEx80,47
|
|
323
|
+
qwak_sdk-0.5.82.dist-info/WHEEL,sha256=vVCvjcmxuUltf8cYhJ0sJMRDLr1XsPuxEId8YDzbyCY,88
|
|
324
|
+
qwak_sdk-0.5.82.dist-info/METADATA,sha256=v3Tkqf9G6556gBOX_jfQCW4ygXdgSb0N7D2S8Liw4fE,2978
|
|
325
|
+
qwak_sdk-0.5.82.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|