qwak-core 0.4.249__py3-none-any.whl → 0.4.251__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 +1 -1
- qwak/inner/tool/auth.py +10 -7
- {qwak_core-0.4.249.dist-info → qwak_core-0.4.251.dist-info}/METADATA +2 -2
- {qwak_core-0.4.249.dist-info → qwak_core-0.4.251.dist-info}/RECORD +6 -6
- {qwak_core-0.4.249.dist-info → qwak_core-0.4.251.dist-info}/WHEEL +1 -1
- qwak_services_mock/mocks/authentication_service.py +2 -3
qwak/__init__.py
CHANGED
qwak/inner/tool/auth.py
CHANGED
@@ -1,17 +1,20 @@
|
|
1
|
-
import
|
2
|
-
|
1
|
+
import warnings
|
2
|
+
from filelock import FileLock
|
3
|
+
from qwak.inner.di_configuration.session import Session
|
3
4
|
from abc import ABC, abstractmethod
|
4
5
|
from typing import Optional
|
5
|
-
|
6
|
-
import jwt
|
7
|
-
import requests # noqa E402
|
8
|
-
from filelock import FileLock
|
9
6
|
from frogml_storage.authentication._authentication_utils import get_credentials
|
10
7
|
from frogml_storage.authentication.models._auth_config import AuthConfig
|
11
8
|
|
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
|
12
16
|
from qwak.exceptions import QwakLoginException # noqa E402
|
13
17
|
from qwak.inner.const import QwakConstants # noqa E402
|
14
|
-
from qwak.inner.di_configuration.session import Session
|
15
18
|
|
16
19
|
|
17
20
|
class BaseAuthClient(ABC):
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: qwak-core
|
3
|
-
Version: 0.4.
|
3
|
+
Version: 0.4.251
|
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
|
37
36
|
Requires-Dist: pyspark (==3.4.2) ; extra == "feature-store"
|
37
|
+
Requires-Dist: python-jose[cryptography] (>=3.4.0)
|
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=
|
585
|
+
qwak/__init__.py,sha256=2yEk72q2bDA_ME1qOgW0Pm78DYAqj68_FjFRmm9MpEg,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=
|
840
|
+
qwak/inner/tool/auth.py,sha256=hplzXD9R-AvSDbFHdcAvKIQjy-S2btwUCoe_N7im8DA,6439
|
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=
|
1015
|
+
qwak_services_mock/mocks/authentication_service.py,sha256=79A8hmYUsg4i7EwyGG54CidbANlp-ub4f716BbLCaJQ,1166
|
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.
|
1060
|
-
qwak_core-0.4.
|
1061
|
-
qwak_core-0.4.
|
1059
|
+
qwak_core-0.4.251.dist-info/METADATA,sha256=GDckCZg74Tm38XQsGbjnUHGiRf0f-_N5j26QAqkhykg,2174
|
1060
|
+
qwak_core-0.4.251.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
1061
|
+
qwak_core-0.4.251.dist-info/RECORD,,
|
@@ -1,7 +1,5 @@
|
|
1
1
|
from datetime import datetime, timedelta
|
2
2
|
|
3
|
-
import jwt
|
4
|
-
|
5
3
|
from _qwak_proto.qwak.administration.v0.authentication.authentication_service_pb2 import (
|
6
4
|
AuthenticateRequest,
|
7
5
|
AuthenticateResponse,
|
@@ -9,6 +7,7 @@ from _qwak_proto.qwak.administration.v0.authentication.authentication_service_pb
|
|
9
7
|
from _qwak_proto.qwak.administration.v0.authentication.authentication_service_pb2_grpc import (
|
10
8
|
AuthenticationServiceServicer,
|
11
9
|
)
|
10
|
+
from jose import jwt
|
12
11
|
|
13
12
|
epoch = datetime.timestamp(datetime.utcnow() + timedelta(days=1))
|
14
13
|
|
@@ -23,7 +22,7 @@ _payload = {
|
|
23
22
|
"exp": epoch,
|
24
23
|
}
|
25
24
|
|
26
|
-
mock_jwt_token = jwt.encode(_payload,
|
25
|
+
mock_jwt_token = jwt.encode(_payload, "secret", algorithm="HS256")
|
27
26
|
|
28
27
|
|
29
28
|
class AuthenticationServiceMock(AuthenticationServiceServicer):
|