esd-services-api-client 2.6.2a158.dev4__py3-none-any.whl → 2.6.3a150.dev16__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__ = 'v2.6.2a158.dev4'
1
+ __version__ = 'v2.6.3a150.dev16'
@@ -220,6 +220,7 @@ class BeastConnector:
220
220
  f"Execution failed, please find request's log at: {self.base_url}/job/logs/{request_id}"
221
221
  )
222
222
 
223
+ # pylint: disable=too-many-positional-arguments
223
224
  @staticmethod
224
225
  def _report_backoff_failure(
225
226
  target: Any, args: Any, kwargs: Any, tries: int, elapsed: int, wait: int, **_
@@ -151,6 +151,7 @@ class CrystalConnector:
151
151
  def __exit__(self, exc_type, exc_val, exc_tb):
152
152
  self.dispose()
153
153
 
154
+ # pylint: disable=too-many-positional-arguments
154
155
  def create_run(
155
156
  self,
156
157
  algorithm: str,
@@ -44,6 +44,7 @@ class RemoteAlgorithm(NexusObject[TPayload, AlgorithmResult]):
44
44
  Base class for all algorithm implementations.
45
45
  """
46
46
 
47
+ # pylint: disable=too-many-positional-arguments
47
48
  @inject
48
49
  def __init__(
49
50
  self,
@@ -328,7 +328,9 @@ class Nexus:
328
328
  if not self._log_enricher
329
329
  else self._log_enricher(payload, self._run_args),
330
330
  fixed_template_delimiter=self._log_enrichment_delimiter,
331
- global_tags=self._log_tagger(payload, self._run_args),
331
+ global_tags=self._log_tagger(payload, self._run_args)
332
+ if self._log_tagger
333
+ else None,
332
334
  )
333
335
  # bind app-level LoggerFactory now
334
336
  self._injector.binder.bind(
@@ -353,7 +355,7 @@ class Nexus:
353
355
 
354
356
  root_logger.info(
355
357
  "Running algorithm {algorithm} on Nexus version {version}",
356
- algorithm=algorithm.__class__.__name__,
358
+ algorithm=algorithm.__class__.alias().upper(),
357
359
  version=__version__,
358
360
  )
359
361
 
@@ -372,7 +374,7 @@ class Nexus:
372
374
  root_logger.error(
373
375
  "Algorithm {algorithm} run failed on Nexus version {version}",
374
376
  ex,
375
- algorithm=algorithm.__class__.__name__,
377
+ algorithm=algorithm.__class__.alias().upper(),
376
378
  version=__version__,
377
379
  )
378
380
 
@@ -423,6 +425,9 @@ class Nexus:
423
425
 
424
426
  root_logger.stop()
425
427
 
428
+ if os.getenv("NEXUS__RAISE_ERROR_ON_COMPLETE") and ex is not None:
429
+ raise ex
430
+
426
431
  @classmethod
427
432
  def create(cls) -> "Nexus":
428
433
  """
@@ -1,6 +1,7 @@
1
1
  """
2
2
  Code infrastructure for manipulating payload received from Crystal SAS URI
3
3
  """
4
+ import os
4
5
 
5
6
  # Copyright (c) 2023-2024. ECCO Sneaks & Data
6
7
  #
@@ -62,8 +63,15 @@ class AlgorithmPayloadReader:
62
63
  self._http.close()
63
64
  self._http = None
64
65
 
65
- def __init__(self, payload_uri: str, payload_type: Type[AlgorithmPayload]):
66
- self._http = session_with_retries()
66
+ def __init__(
67
+ self,
68
+ payload_uri: str,
69
+ payload_type: Type[AlgorithmPayload],
70
+ ):
71
+ self._http = session_with_retries(
72
+ file_protocol_supported=os.getenv("NEXUS__SUPPORT_FILE_PROTOCOL_PAYLOADS")
73
+ is not None
74
+ )
67
75
  self._payload: Optional[AlgorithmPayload] = None
68
76
  self._payload_uri = payload_uri
69
77
  self._payload_type = payload_type
@@ -72,6 +72,7 @@ class UserTelemetryRecorder(Generic[TPayload, TResult], ABC):
72
72
  Base class for user-defined telemetry recorders.
73
73
  """
74
74
 
75
+ # pylint: disable=too-many-positional-arguments
75
76
  @inject
76
77
  def __init__(
77
78
  self,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: esd-services-api-client
3
- Version: 2.6.2a158.dev4
3
+ Version: 2.6.3a150.dev16
4
4
  Summary: Python clients for ESD services
5
5
  License: Apache 2.0
6
6
  Author: ECCO Sneaks & Data
@@ -13,7 +13,7 @@ Classifier: Programming Language :: Python :: 3
13
13
  Classifier: Programming Language :: Python :: 3.11
14
14
  Provides-Extra: azure
15
15
  Provides-Extra: nexus
16
- Requires-Dist: adapta[datadog,storage] (>=3.4,<3.5)
16
+ Requires-Dist: adapta[datadog,storage] (>=3.4.1,<3.5.0)
17
17
  Requires-Dist: azure-identity (>=1.7,<1.8) ; extra == "azure"
18
18
  Requires-Dist: dataclasses-json (>=0.6.0,<0.7.0)
19
19
  Requires-Dist: httpx (>=0.27.0,<0.28.0) ; extra == "nexus"
@@ -1,8 +1,8 @@
1
1
  esd_services_api_client/__init__.py,sha256=4LskDwFuAFMOjHtN3_-71G_VZ4MNfjMJ7wX2cHYxV-0,648
2
- esd_services_api_client/_version.py,sha256=6IrL2Ds-xihcP_KgqOdyGgWzR5nnU0GvoJI_wI3jJY0,32
2
+ esd_services_api_client/_version.py,sha256=QS_VjdnCilMw1bumwy93KuKeNXf9Y9XycOTN-xKRG4E,33
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=VqxiCzJWKERh42aZAIphzmOEG5cdOcKM0DQzG7eQ_-8,11479
5
+ esd_services_api_client/beast/v3/_connector.py,sha256=46XQdUIQVnWfs_Fn8soKeL59IryT5hnEYFYJdKSmFUY,11531
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
@@ -13,7 +13,7 @@ esd_services_api_client/boxer/_models.py,sha256=ursQIR_c9jcVfRKc0LH1OuVL2KFD6kqo
13
13
  esd_services_api_client/common/__init__.py,sha256=L-cEW1mVbnTJLCLG5V6Ucw7zBgx1zf0t1bYcQC1heyw,603
14
14
  esd_services_api_client/crystal/__init__.py,sha256=oeyJjdQ9EpTnIq6XnjPq5v0DWPdHqi4uEfRIcD1mNZA,792
15
15
  esd_services_api_client/crystal/_api_versions.py,sha256=GHbmV_5lP9fP72TZE0j_ZeQSeJjMRcRaBRxNJbz-MWQ,837
16
- esd_services_api_client/crystal/_connector.py,sha256=0CqBpPahozAnentM6ZZrH84s_D7SoWCShr5_cRQGMX8,13110
16
+ esd_services_api_client/crystal/_connector.py,sha256=46D6VBRLgz2Y1mm95Q8m4L7SJNYHzTKtzTVVtECuXrA,13162
17
17
  esd_services_api_client/crystal/_models.py,sha256=j8SEbwp_iAKjn06i-0f8npmhQhs2YJlmQ3eHwc2TwQE,4366
18
18
  esd_services_api_client/nexus/README.md,sha256=hNFV_fzAGrG6_1yXE3o_GuLTKIWEia2FfedMh-Sg0ew,10619
19
19
  esd_services_api_client/nexus/__init__.py,sha256=sOgKKq3_LZGbLmQMtMS7lDw2hv027qownTmNIRV0BB8,627
@@ -25,7 +25,7 @@ esd_services_api_client/nexus/abstractions/nexus_object.py,sha256=rLE42imCVGE6Px
25
25
  esd_services_api_client/nexus/abstractions/socket_provider.py,sha256=Rwa_aPErI4Es5AdyCd3EoGze7mg2D70u8kuc2UGEBaI,1729
26
26
  esd_services_api_client/nexus/algorithms/__init__.py,sha256=v4rPDf36r6AaHi_3K8isBKYU_fG8ct3w14KpUg2XRgg,976
27
27
  esd_services_api_client/nexus/algorithms/_baseline_algorithm.py,sha256=KUBkfDKIuxfa7IcVKau10ZZLIwrLbvVkNHjuIGkdjlQ,2947
28
- esd_services_api_client/nexus/algorithms/_remote_algorithm.py,sha256=uQFoUfgATcoPDHakVChxTtAYY51ov7tOizkLRlofebA,3962
28
+ esd_services_api_client/nexus/algorithms/_remote_algorithm.py,sha256=6aCxuR6Hiu2ScrC4O18nRbecAoKITtYAsWzUzY0vp0E,4014
29
29
  esd_services_api_client/nexus/algorithms/distributed.py,sha256=vkKSCsd480RKwrtu3uZ2iU1bh593fkgBcOBrcb9cLjA,1702
30
30
  esd_services_api_client/nexus/algorithms/forked_algorithm.py,sha256=VLKKNJvTa5rNjRFWCMk5w0ZZ8-4JoNegY7ldvVzMGDo,5873
31
31
  esd_services_api_client/nexus/algorithms/minimalistic.py,sha256=tSYXodIW-_Aje-_ZyYUoWAThcZIeE4_kMvMINsT4Lb8,1644
@@ -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=Lmkpq7Hy74EfMOi5vtjD82PpY7Lb84RVbXN5b82BxKs,15462
36
+ esd_services_api_client/nexus/core/app_core.py,sha256=DgyBB0t1_UvD9_PMjYyRL4Z6EYgBCkYVnhvW4CRp8-Q,15643
37
37
  esd_services_api_client/nexus/core/app_dependencies.py,sha256=1m7Oc9JCXyrU0qVZekYhpbXLQo20aQPQ-Bf8zEdjtqI,8704
38
38
  esd_services_api_client/nexus/core/serializers.py,sha256=0IfXadbR3G0mowqRQlIOP2LFjNs-P-Tr42Ia2G-ehtg,2275
39
39
  esd_services_api_client/nexus/exceptions/__init__.py,sha256=feN33VdqB5-2bD9aJesJl_OlsKrNNo3hZCnQgKuaU9k,696
@@ -44,14 +44,14 @@ esd_services_api_client/nexus/exceptions/startup_error.py,sha256=4Hughi57Ndi_a8Y
44
44
  esd_services_api_client/nexus/input/__init__.py,sha256=ODYhZ791tPC4-eVxSRRlh8FLDDICU7nByLH7c4TD4Xc,758
45
45
  esd_services_api_client/nexus/input/input_processor.py,sha256=vqzeQrtRFqBKTPSEiWX_JZJTF9itMwwvWjPnJVLrSwQ,3132
46
46
  esd_services_api_client/nexus/input/input_reader.py,sha256=aXNMGxrdUX5RDYR666GSGkcZqYMFYoZ8zGVDuUFFFZQ,3505
47
- esd_services_api_client/nexus/input/payload_reader.py,sha256=rd0h-XAzI90h7KxB-XSn7J4NulH3hjRwhVxRtmlV_S8,2520
47
+ esd_services_api_client/nexus/input/payload_reader.py,sha256=jlIJvqI10iRiZAB2RW9OdgH4OppG4iE3TWf2_Y3bO9Q,2681
48
48
  esd_services_api_client/nexus/modules/__init__.py,sha256=Ngdc35K63JnK1197oyXXHEcSNZXdV4CXBWoviDUeR5U,839
49
49
  esd_services_api_client/nexus/modules/astra_client_module.py,sha256=L8OhdSc7-BY2lnJi4f7FGwCYeBbQqLLo0nBZErRoPgY,1983
50
50
  esd_services_api_client/nexus/modules/mlflow_module.py,sha256=d4y8XetGF37md4dEpEO0CFPj2lDmK_f6LspUm4dRAW4,1331
51
51
  esd_services_api_client/nexus/telemetry/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
52
52
  esd_services_api_client/nexus/telemetry/recorder.py,sha256=-shxk2vYDTafJ0U3CzkHxIHBQtxVJ1ZNI4ST0p1YV2g,4801
53
- esd_services_api_client/nexus/telemetry/user_telemetry_recorder.py,sha256=E4bj0N4QDo9kSxf1XMSplCfSG29iDKg-UgrRY-nq_XE,5225
54
- esd_services_api_client-2.6.2a158.dev4.dist-info/LICENSE,sha256=0gS6zXsPp8qZhzi1xaGCIYPzb_0e8on7HCeFJe8fOpw,10693
55
- esd_services_api_client-2.6.2a158.dev4.dist-info/METADATA,sha256=Dd81wkzpY51WqdtqlXd1VivfGeRIBOaeSevaqr-L_WU,1067
56
- esd_services_api_client-2.6.2a158.dev4.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
57
- esd_services_api_client-2.6.2a158.dev4.dist-info/RECORD,,
53
+ esd_services_api_client/nexus/telemetry/user_telemetry_recorder.py,sha256=d58HGQUmS-x1C1cStCaEbmOkmtFRomDC5cGtW6q1zTc,5277
54
+ esd_services_api_client-2.6.3a150.dev16.dist-info/LICENSE,sha256=0gS6zXsPp8qZhzi1xaGCIYPzb_0e8on7HCeFJe8fOpw,10693
55
+ esd_services_api_client-2.6.3a150.dev16.dist-info/METADATA,sha256=EnJeUTCzfg-M1ChPYKexnyZEu1ldhaSCkDMX3a7qGXY,1072
56
+ esd_services_api_client-2.6.3a150.dev16.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
57
+ esd_services_api_client-2.6.3a150.dev16.dist-info/RECORD,,