qwak-core 0.4.248__py3-none-any.whl → 0.4.249__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.
qwak/__init__.py CHANGED
@@ -1,7 +1,7 @@
1
1
  """Top-level package for qwak-core."""
2
2
 
3
3
  __author__ = "Qwak.ai"
4
- __version__ = "0.4.248"
4
+ __version__ = "0.4.249"
5
5
 
6
6
  from qwak.inner.di_configuration import wire_dependencies
7
7
  from qwak.model.experiment_tracking import log_metric, log_param
qwak/inner/tool/auth.py CHANGED
@@ -1,20 +1,17 @@
1
- import warnings
2
- from filelock import FileLock
3
- from qwak.inner.di_configuration.session import Session
1
+ import configparser # noqa E402
2
+ import json # noqa E402
4
3
  from abc import ABC, abstractmethod
5
4
  from typing import Optional
5
+
6
+ import jwt
7
+ import requests # noqa E402
8
+ from filelock import FileLock
6
9
  from frogml_storage.authentication._authentication_utils import get_credentials
7
10
  from frogml_storage.authentication.models._auth_config import AuthConfig
8
11
 
9
- warnings.filterwarnings(action="ignore", module=".*jose.*")
10
-
11
- import configparser # noqa E402
12
- import json # noqa E402
13
-
14
- import requests # noqa E402
15
- from jose import jwt # noqa E402
16
12
  from qwak.exceptions import QwakLoginException # noqa E402
17
13
  from qwak.inner.const import QwakConstants # noqa E402
14
+ from qwak.inner.di_configuration.session import Session
18
15
 
19
16
 
20
17
  class BaseAuthClient(ABC):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: qwak-core
3
- Version: 0.4.248
3
+ Version: 0.4.249
4
4
  Summary: Qwak Core contains the necessary objects and communication tools for using the Qwak Platform
5
5
  License: Apache-2.0
6
6
  Keywords: mlops,ml,deployment,serving,model
@@ -33,8 +33,8 @@ Requires-Dist: protobuf (>=3.10,<4) ; python_full_version >= "3.7.1" and python_
33
33
  Requires-Dist: protobuf (>=4.21.6) ; python_version >= "3.10"
34
34
  Requires-Dist: pyarrow (>=6.0.0) ; extra == "feature-store"
35
35
  Requires-Dist: pyathena (>=2.2.0,!=2.18.0) ; extra == "feature-store"
36
+ Requires-Dist: pyjwt
36
37
  Requires-Dist: pyspark (==3.4.2) ; extra == "feature-store"
37
- Requires-Dist: python-jose
38
38
  Requires-Dist: python-json-logger (>=2.0.2)
39
39
  Requires-Dist: requests
40
40
  Requires-Dist: retrying (==1.3.4)
@@ -582,7 +582,7 @@ _qwak_proto/qwak/workspace/workspace_pb2_grpc.py,sha256=1oboBPFxaTEXt9Aw7EAj8gXH
582
582
  _qwak_proto/qwak/workspace/workspace_service_pb2.py,sha256=AB3C9S_AbOD7Nx1Ni4j1rW6PNtYTV1zjiqFQk-goQ74,21429
583
583
  _qwak_proto/qwak/workspace/workspace_service_pb2.pyi,sha256=nKKCHwnovZhsy8TSVmdz-Vtl0nviOOoX56HD-41Xo08,13726
584
584
  _qwak_proto/qwak/workspace/workspace_service_pb2_grpc.py,sha256=yKGuexxTBza99Ihe0DSTniV2ZSd_AG47inHenqfi890,27193
585
- qwak/__init__.py,sha256=5N6mBzO1DFCpFv6gezURZqEuGMsOSAcu57c6E9MIo7g,587
585
+ qwak/__init__.py,sha256=3a-SBWVj7mewpO7vIuqjIomXkbNiBf2CbHM4o6av-_8,587
586
586
  qwak/automations/__init__.py,sha256=qFZRvCxUUn8gcxkJR0v19ulHW2oJ0x6-Rif7HiheDP4,1522
587
587
  qwak/automations/automation_executions.py,sha256=5MeH_epYYWb8NKXgAozwT_jPyyUDednBHG7izloi7RY,3228
588
588
  qwak/automations/automations.py,sha256=3yx8e2v0uSKDnXbqyknasyEoQ5vxGni6K40Hbi1_zkk,12599
@@ -837,7 +837,7 @@ qwak/inner/runtime_di/__init__.py,sha256=ylaHwo2Hlq3pmeziA0Ip87DMnkcuBffKKi0tTH7
837
837
  qwak/inner/runtime_di/containers.py,sha256=-AREM-IUAd9JhrhQablqixxpj4L9Tk1iQkK1fA5YbrA,545
838
838
  qwak/inner/singleton_meta.py,sha256=1cU99I0f9tjuMQLMJyLsK1oK3fZJMsO5-TbRHAMXqds,627
839
839
  qwak/inner/tool/__init__.py,sha256=DDoMZk7LIZNfu63Ft0mLE5wflwlQoghAJ1ZmMAcAeVE,74
840
- qwak/inner/tool/auth.py,sha256=hplzXD9R-AvSDbFHdcAvKIQjy-S2btwUCoe_N7im8DA,6439
840
+ qwak/inner/tool/auth.py,sha256=qlVakViyHDW3yzB90GTwLMSq5fc4ez0hryZuQM1JOV8,6339
841
841
  qwak/inner/tool/grpc/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
842
842
  qwak/inner/tool/grpc/grpc_auth.py,sha256=nHfIk2R5ljCvU8hsgk_X6grfNhVrbTvQe6uJffe5W5o,2291
843
843
  qwak/inner/tool/grpc/grpc_tools.py,sha256=ArtsEZz5V-YxOVE6vH_UHJwOn6gAJVIolda8hF6qwMs,7256
@@ -1012,7 +1012,7 @@ qwak_services_mock/mocks/alert_manager_service_api.py,sha256=X9VF5-zroUqo9SpeaG_
1012
1012
  qwak_services_mock/mocks/alert_registry_service_api.py,sha256=SZIOzQ-L9p7TIhziXUhpio8b4xtqTvAhR7c2JlMQXvc,2263
1013
1013
  qwak_services_mock/mocks/analytics_api.py,sha256=uzfObcytu9y_CYDT7ogilXJUOGLExQquJVL2kkATYE0,2129
1014
1014
  qwak_services_mock/mocks/audience_service_api.py,sha256=2PvXpzKBR-Dnu9Fmb70UJn-hNAlTCYQggpdiiBMM8Ik,2647
1015
- qwak_services_mock/mocks/authentication_service.py,sha256=79A8hmYUsg4i7EwyGG54CidbANlp-ub4f716BbLCaJQ,1166
1015
+ qwak_services_mock/mocks/authentication_service.py,sha256=LLCO45fMHqsKBWdgat384n_P5dgNdCywjxNkQUJ1m98,1161
1016
1016
  qwak_services_mock/mocks/automation_management_service.py,sha256=C9rYKMy0hzOTaKTCrTkE5jTnPSenVkLV8DCptBKr02U,8211
1017
1017
  qwak_services_mock/mocks/autoscaling_service_api.py,sha256=YgucRD3ZjhxqttNVSF_HL7u3aDo55LdRSEE7q0fxp3M,1019
1018
1018
  qwak_services_mock/mocks/batch_job_manager_service.py,sha256=HeUZulDtfIlSm2h4cLdByR0voJjOy97m4_YWldg7pqQ,13129
@@ -1056,6 +1056,6 @@ qwak_services_mock/mocks/workspace_manager_service_mock.py,sha256=O9ZSwln4T4kHVk
1056
1056
  qwak_services_mock/services_mock.py,sha256=zXtHcX8a_acz7ynxuCBxxVpHpde7aAGjIn6Uw52LY1s,19593
1057
1057
  qwak_services_mock/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1058
1058
  qwak_services_mock/utils/service_utils.py,sha256=ZlB0CnB1J6oBn6_m7fQO2U8tKoboHdUa6ljjkRMYNXU,265
1059
- qwak_core-0.4.248.dist-info/METADATA,sha256=V-53JLVMprm3wnTnnPBpn2DWt5N4PpJ33JR0muYz4Sc,2150
1060
- qwak_core-0.4.248.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
1061
- qwak_core-0.4.248.dist-info/RECORD,,
1059
+ qwak_core-0.4.249.dist-info/METADATA,sha256=c-sR09h4sXZ90eCBRwY2NRnO1xyxJEbDaa5gXPt3axs,2144
1060
+ qwak_core-0.4.249.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
1061
+ qwak_core-0.4.249.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: poetry-core 2.0.1
2
+ Generator: poetry-core 2.1.1
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
@@ -1,5 +1,7 @@
1
1
  from datetime import datetime, timedelta
2
2
 
3
+ import jwt
4
+
3
5
  from _qwak_proto.qwak.administration.v0.authentication.authentication_service_pb2 import (
4
6
  AuthenticateRequest,
5
7
  AuthenticateResponse,
@@ -7,7 +9,6 @@ from _qwak_proto.qwak.administration.v0.authentication.authentication_service_pb
7
9
  from _qwak_proto.qwak.administration.v0.authentication.authentication_service_pb2_grpc import (
8
10
  AuthenticationServiceServicer,
9
11
  )
10
- from jose import jwt
11
12
 
12
13
  epoch = datetime.timestamp(datetime.utcnow() + timedelta(days=1))
13
14
 
@@ -22,7 +23,7 @@ _payload = {
22
23
  "exp": epoch,
23
24
  }
24
25
 
25
- mock_jwt_token = jwt.encode(_payload, "secret", algorithm="HS256")
26
+ mock_jwt_token = jwt.encode(_payload, key="secret", algorithm="HS256")
26
27
 
27
28
 
28
29
  class AuthenticationServiceMock(AuthenticationServiceServicer):