esd-services-api-client 2.2.6a114.dev7__py3-none-any.whl → 2.3.1__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.
- esd_services_api_client/_version.py +1 -1
- esd_services_api_client/beast/v3/_connector.py +3 -2
- esd_services_api_client/nexus/abstractions/algrorithm_cache.py +11 -3
- esd_services_api_client/nexus/core/app_core.py +1 -3
- {esd_services_api_client-2.2.6a114.dev7.dist-info → esd_services_api_client-2.3.1.dist-info}/METADATA +2 -3
- {esd_services_api_client-2.2.6a114.dev7.dist-info → esd_services_api_client-2.3.1.dist-info}/RECORD +8 -8
- {esd_services_api_client-2.2.6a114.dev7.dist-info → esd_services_api_client-2.3.1.dist-info}/LICENSE +0 -0
- {esd_services_api_client-2.2.6a114.dev7.dist-info → esd_services_api_client-2.3.1.dist-info}/WHEEL +0 -0
@@ -1 +1 @@
|
|
1
|
-
__version__ = '
|
1
|
+
__version__ = '2.3.1'
|
@@ -105,9 +105,10 @@ class BeastConnector:
|
|
105
105
|
submission_result = self.http.post(
|
106
106
|
f"{self.base_url}/job/submit/{spark_job_name}", json=request_json
|
107
107
|
)
|
108
|
-
submission_json = submission_result.json()
|
109
108
|
|
110
|
-
if submission_result.status_code == 202 and
|
109
|
+
if submission_result.status_code == 202 and (
|
110
|
+
submission_json := submission_result.json()
|
111
|
+
):
|
111
112
|
print(
|
112
113
|
f"Beast has accepted the request, stage: {submission_json['lifeCycleStage']}, id: {submission_json['id']}"
|
113
114
|
)
|
@@ -21,7 +21,7 @@ import asyncio
|
|
21
21
|
from typing import final, Type
|
22
22
|
|
23
23
|
import azure.core.exceptions
|
24
|
-
import deltalake
|
24
|
+
import deltalake.exceptions
|
25
25
|
|
26
26
|
from esd_services_api_client.nexus.abstractions.input_object import InputObject
|
27
27
|
from esd_services_api_client.nexus.abstractions.nexus_object import TResult, TPayload
|
@@ -46,10 +46,18 @@ class InputCache:
|
|
46
46
|
"""
|
47
47
|
Resolve base exception into a specific Nexus exception.
|
48
48
|
"""
|
49
|
+
|
49
50
|
match type(ex):
|
50
|
-
case
|
51
|
+
case (
|
52
|
+
azure.core.exceptions.HttpResponseError
|
53
|
+
| deltalake.exceptions.TableNotFoundError
|
54
|
+
| deltalake.exceptions.DeltaProtocolError
|
55
|
+
| deltalake.exceptions.CommitFailedError
|
56
|
+
| deltalake.exceptions.DeltaProtocolError
|
57
|
+
| deltalake.exceptions.SchemaMismatchError
|
58
|
+
):
|
51
59
|
return TransientCachingError
|
52
|
-
case azure.core.exceptions.AzureError
|
60
|
+
case azure.core.exceptions.AzureError | azure.core.exceptions.ClientAuthenticationError:
|
53
61
|
return FatalCachingError
|
54
62
|
case _:
|
55
63
|
return FatalCachingError
|
@@ -216,9 +216,7 @@ class Nexus:
|
|
216
216
|
storage_client.save_data_as_blob(
|
217
217
|
data=result_,
|
218
218
|
blob_path=blob_path,
|
219
|
-
serialization_format=serializer.get_serialization_format(
|
220
|
-
result_
|
221
|
-
),
|
219
|
+
serialization_format=serializer.get_serialization_format(result_),
|
222
220
|
overwrite=True,
|
223
221
|
)
|
224
222
|
return storage_client.get_blob_uri(blob_path=blob_path)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: esd-services-api-client
|
3
|
-
Version: 2.
|
3
|
+
Version: 2.3.1
|
4
4
|
Summary: Python clients for ESD services
|
5
5
|
Home-page: https://github.com/SneaksAndData/esd-services-api-client
|
6
6
|
License: Apache 2.0
|
@@ -16,12 +16,11 @@ Classifier: Programming Language :: Python :: 3.10
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.11
|
17
17
|
Provides-Extra: azure
|
18
18
|
Provides-Extra: nexus
|
19
|
-
Requires-Dist: adapta[azure,datadog,storage] (>=2.
|
19
|
+
Requires-Dist: adapta[azure,datadog,storage] (>=2.11,<3.0)
|
20
20
|
Requires-Dist: azure-identity (>=1.7,<1.8) ; extra == "azure"
|
21
21
|
Requires-Dist: dataclasses-json (>=0.6.0,<0.7.0)
|
22
22
|
Requires-Dist: httpx (>=0.26.0,<0.27.0) ; extra == "nexus"
|
23
23
|
Requires-Dist: injector (>=0.21.0,<0.22.0) ; extra == "nexus"
|
24
|
-
Requires-Dist: polars (>=0.20.7,<0.21.0) ; extra == "nexus"
|
25
24
|
Requires-Dist: pycryptodome (>=3.15,<3.16)
|
26
25
|
Requires-Dist: pyjwt (>=2.4.0,<2.5.0)
|
27
26
|
Project-URL: Repository, https://github.com/SneaksAndData/esd-services-api-client
|
{esd_services_api_client-2.2.6a114.dev7.dist-info → esd_services_api_client-2.3.1.dist-info}/RECORD
RENAMED
@@ -1,8 +1,8 @@
|
|
1
1
|
esd_services_api_client/__init__.py,sha256=L-cEW1mVbnTJLCLG5V6Ucw7zBgx1zf0t1bYcQC1heyw,603
|
2
|
-
esd_services_api_client/_version.py,sha256=
|
2
|
+
esd_services_api_client/_version.py,sha256=0Ns5BhVD3XOEWhtSUJ76K319NapPiQfZKsWZRt-kZOk,22
|
3
3
|
esd_services_api_client/beast/__init__.py,sha256=zNhXcHSP5w4P9quM1XP4oXVJEccvC_VScG41TZ0GzZ8,723
|
4
4
|
esd_services_api_client/beast/v3/__init__.py,sha256=FtumtInoDyCCRE424Llqv8QZLRuwXzj-smyfu1od1nc,754
|
5
|
-
esd_services_api_client/beast/v3/_connector.py,sha256=
|
5
|
+
esd_services_api_client/beast/v3/_connector.py,sha256=VqxiCzJWKERh42aZAIphzmOEG5cdOcKM0DQzG7eQ_-8,11479
|
6
6
|
esd_services_api_client/beast/v3/_models.py,sha256=UyBAEtJhDtF_qPE6TB9QWoffvNk1nY-AXm9bMTVBT2U,6766
|
7
7
|
esd_services_api_client/boxer/README.md,sha256=-MAhYUPvmEMcgx_lo_2PlH_gZI1lndGv8fnDQYIpurU,3618
|
8
8
|
esd_services_api_client/boxer/__init__.py,sha256=yDEcfL-9q0H91UWr-al-1iMJtVLv-oIXky6hUmFZs0g,785
|
@@ -18,7 +18,7 @@ esd_services_api_client/crystal/_models.py,sha256=j8SEbwp_iAKjn06i-0f8npmhQhs2YJ
|
|
18
18
|
esd_services_api_client/nexus/README.md,sha256=QQgvkhRwZtktxlzTmHkbp8KNnUvDvFGEVqvSM1QgpU8,9393
|
19
19
|
esd_services_api_client/nexus/__init__.py,sha256=sOgKKq3_LZGbLmQMtMS7lDw2hv027qownTmNIRV0BB8,627
|
20
20
|
esd_services_api_client/nexus/abstractions/__init__.py,sha256=sOgKKq3_LZGbLmQMtMS7lDw2hv027qownTmNIRV0BB8,627
|
21
|
-
esd_services_api_client/nexus/abstractions/algrorithm_cache.py,sha256=
|
21
|
+
esd_services_api_client/nexus/abstractions/algrorithm_cache.py,sha256=6GevJJ7mf1c_PImhKQ_4_6n652VyHlgK_12LNidirxs,3644
|
22
22
|
esd_services_api_client/nexus/abstractions/input_object.py,sha256=RUKnhekuZwd_RVvnLGAxHa4wYDFJf6wEwWQI9f-o0lM,1761
|
23
23
|
esd_services_api_client/nexus/abstractions/logger_factory.py,sha256=9biONvCqNrP__yrmeRkoDL05TMA5v-LyrcKwgiKG59U,2019
|
24
24
|
esd_services_api_client/nexus/abstractions/nexus_object.py,sha256=jvLIIFsu3fXK9NuJX3K67ipZOZoeAq1rSQMHpQpKZLY,3038
|
@@ -33,7 +33,7 @@ esd_services_api_client/nexus/algorithms/recursive.py,sha256=uaCCl4q-st_KqbcmkdO
|
|
33
33
|
esd_services_api_client/nexus/configurations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
34
34
|
esd_services_api_client/nexus/configurations/algorithm_configuration.py,sha256=eE7diX2PATCGkmqhvFOcZwXrr6vns4fqnJGmgNvhhZM,1091
|
35
35
|
esd_services_api_client/nexus/core/__init__.py,sha256=sOgKKq3_LZGbLmQMtMS7lDw2hv027qownTmNIRV0BB8,627
|
36
|
-
esd_services_api_client/nexus/core/app_core.py,sha256=
|
36
|
+
esd_services_api_client/nexus/core/app_core.py,sha256=AZKDw-YuIMzDc2Q55m-Nl7TmjW4poSnep9cpv9N5IbU,10149
|
37
37
|
esd_services_api_client/nexus/core/app_dependencies.py,sha256=dDmgPBJbPzvAWAkKCSPKT1i5fP5cAPDxVL6K27Bp_nI,8561
|
38
38
|
esd_services_api_client/nexus/core/serializers.py,sha256=Vk9FaEeDHXx3S7rPlYoWzsOcN6gzLzemsrjq6ytfaI0,2217
|
39
39
|
esd_services_api_client/nexus/exceptions/__init__.py,sha256=feN33VdqB5-2bD9aJesJl_OlsKrNNo3hZCnQgKuaU9k,696
|
@@ -47,7 +47,7 @@ esd_services_api_client/nexus/input/input_reader.py,sha256=aXNMGxrdUX5RDYR666GSG
|
|
47
47
|
esd_services_api_client/nexus/input/payload_reader.py,sha256=Kq0xN1Shyqv71v6YkcrqVTDbmsEjZc8ithsXYpyu87M,2516
|
48
48
|
esd_services_api_client/nexus/telemetry/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
49
49
|
esd_services_api_client/nexus/telemetry/recorder.py,sha256=2-u7tuFmSDHuA7qOo6PalnkkOZ8qnHLQF1F9SiVVme0,3702
|
50
|
-
esd_services_api_client-2.
|
51
|
-
esd_services_api_client-2.
|
52
|
-
esd_services_api_client-2.
|
53
|
-
esd_services_api_client-2.
|
50
|
+
esd_services_api_client-2.3.1.dist-info/LICENSE,sha256=0gS6zXsPp8qZhzi1xaGCIYPzb_0e8on7HCeFJe8fOpw,10693
|
51
|
+
esd_services_api_client-2.3.1.dist-info/METADATA,sha256=cBMLzbsSqKsoukaJyedvxQYgTCA6EGjtShA5X5hrDOU,1233
|
52
|
+
esd_services_api_client-2.3.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
53
|
+
esd_services_api_client-2.3.1.dist-info/RECORD,,
|
{esd_services_api_client-2.2.6a114.dev7.dist-info → esd_services_api_client-2.3.1.dist-info}/LICENSE
RENAMED
File without changes
|
{esd_services_api_client-2.2.6a114.dev7.dist-info → esd_services_api_client-2.3.1.dist-info}/WHEEL
RENAMED
File without changes
|