esd-services-api-client 2.3.0__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.
@@ -1 +1 @@
1
- __version__ = '2.3.0'
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 submission_json:
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 azure.core.exceptions.HttpResponseError, deltalake.PyDeltaTableError:
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, azure.core.exceptions.ClientAuthenticationError:
60
+ case azure.core.exceptions.AzureError | azure.core.exceptions.ClientAuthenticationError:
53
61
  return FatalCachingError
54
62
  case _:
55
63
  return FatalCachingError
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: esd-services-api-client
3
- Version: 2.3.0
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.8,<3.0)
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
@@ -1,8 +1,8 @@
1
1
  esd_services_api_client/__init__.py,sha256=L-cEW1mVbnTJLCLG5V6Ucw7zBgx1zf0t1bYcQC1heyw,603
2
- esd_services_api_client/_version.py,sha256=HkuhK2leBUgujkTPPE8VZAlHBDxmueEzVb4sz0_wlyQ,22
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=WNmCiTXFRb3q56mrr7ZbqBHWDUxbfyWhiWlBFLUIOnc,11478
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=3Umb9bKsl8Yo5a3FMrdO_7JTk2mrYJf9MLR-_C0yzFo,3338
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
@@ -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.3.0.dist-info/LICENSE,sha256=0gS6zXsPp8qZhzi1xaGCIYPzb_0e8on7HCeFJe8fOpw,10693
51
- esd_services_api_client-2.3.0.dist-info/METADATA,sha256=1mfkOJj2J_h8Hu3i0CX-0GoIEiqjI70rS5V3_lkqb-k,1292
52
- esd_services_api_client-2.3.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
53
- esd_services_api_client-2.3.0.dist-info/RECORD,,
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,,