esd-services-api-client 2.5.10a140.dev3__py3-none-any.whl → 2.5.10a140.dev7__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/nexus/modules/__init__.py +5 -1
- esd_services_api_client/nexus/modules/astra_client_module.py +22 -26
- {esd_services_api_client-2.5.10a140.dev3.dist-info → esd_services_api_client-2.5.10a140.dev7.dist-info}/METADATA +1 -1
- {esd_services_api_client-2.5.10a140.dev3.dist-info → esd_services_api_client-2.5.10a140.dev7.dist-info}/RECORD +7 -7
- {esd_services_api_client-2.5.10a140.dev3.dist-info → esd_services_api_client-2.5.10a140.dev7.dist-info}/LICENSE +0 -0
- {esd_services_api_client-2.5.10a140.dev3.dist-info → esd_services_api_client-2.5.10a140.dev7.dist-info}/WHEEL +0 -0
@@ -1 +1 @@
|
|
1
|
-
__version__ = 'v2.5.10a140.
|
1
|
+
__version__ = 'v2.5.10a140.dev7'
|
@@ -17,4 +17,8 @@
|
|
17
17
|
Import index.
|
18
18
|
"""
|
19
19
|
|
20
|
-
|
20
|
+
try:
|
21
|
+
from esd_services_api_client.nexus.modules.mlflow_module import MlflowModule
|
22
|
+
except ModuleNotFoundError:
|
23
|
+
pass
|
24
|
+
from esd_services_api_client.nexus.modules.astra_client_module import AstraClientModule
|
@@ -23,7 +23,9 @@ from typing import final
|
|
23
23
|
from adapta.storage.distributed_object_store import AstraClient
|
24
24
|
from injector import Module, singleton, provider
|
25
25
|
|
26
|
-
from esd_services_api_client.nexus.exceptions.startup_error import
|
26
|
+
from esd_services_api_client.nexus.exceptions.startup_error import (
|
27
|
+
FatalStartupConfigurationError,
|
28
|
+
)
|
27
29
|
|
28
30
|
|
29
31
|
@final
|
@@ -38,30 +40,24 @@ class AstraClientModule(Module):
|
|
38
40
|
"""
|
39
41
|
DI factory method.
|
40
42
|
"""
|
41
|
-
missing_env_vars = []
|
42
43
|
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
client_name=os.getenv("CRYSTAL__ALGORITHM_NAME"),
|
63
|
-
keyspace=os.getenv("CRYSTAL__ASTRA_KEYSPACE"),
|
64
|
-
secure_connect_bundle_bytes=os.getenv("PROTEUS__ASTRA_BUNDLE_BYTES"),
|
65
|
-
client_id=os.getenv("PROTEUS__ASTRA_CLIENT_ID"),
|
66
|
-
client_secret=os.getenv("PROTEUS__ASTRA_CLIENT_SECRET"),
|
44
|
+
required_env_vars = [
|
45
|
+
"NEXUS__ALGORITHM_NAME",
|
46
|
+
"NEXUS__ASTRA_KEYSPACE",
|
47
|
+
"NEXUS__ASTRA_BUNDLE_BYTES",
|
48
|
+
"NEXUS__ASTRA_CLIENT_ID",
|
49
|
+
"NEXUS__ASTRA_CLIENT_SECRET",
|
50
|
+
]
|
51
|
+
|
52
|
+
if all(map(lambda v: v in os.environ, required_env_vars)):
|
53
|
+
return AstraClient(
|
54
|
+
client_name=os.getenv("NEXUS__ALGORITHM_NAME"),
|
55
|
+
keyspace=os.getenv("NEXUS__ASTRA_KEYSPACE"),
|
56
|
+
secure_connect_bundle_bytes=os.getenv("NEXUS__ASTRA_BUNDLE_BYTES"),
|
57
|
+
client_id=os.getenv("NEXUS__ASTRA_CLIENT_ID"),
|
58
|
+
client_secret=os.getenv("NEXUS__ASTRA_CLIENT_SECRET"),
|
59
|
+
)
|
60
|
+
|
61
|
+
raise FatalStartupConfigurationError(
|
62
|
+
f"Astra client requires these environment variables: {required_env_vars}"
|
67
63
|
)
|
@@ -1,5 +1,5 @@
|
|
1
1
|
esd_services_api_client/__init__.py,sha256=4LskDwFuAFMOjHtN3_-71G_VZ4MNfjMJ7wX2cHYxV-0,648
|
2
|
-
esd_services_api_client/_version.py,sha256=
|
2
|
+
esd_services_api_client/_version.py,sha256=wM_ctikkfofudVAiFYAeDfVss0rrvBJt6wKlv_QujhU,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
5
|
esd_services_api_client/beast/v3/_connector.py,sha256=VqxiCzJWKERh42aZAIphzmOEG5cdOcKM0DQzG7eQ_-8,11479
|
@@ -45,13 +45,13 @@ esd_services_api_client/nexus/input/__init__.py,sha256=ODYhZ791tPC4-eVxSRRlh8FLD
|
|
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
47
|
esd_services_api_client/nexus/input/payload_reader.py,sha256=Kq0xN1Shyqv71v6YkcrqVTDbmsEjZc8ithsXYpyu87M,2516
|
48
|
-
esd_services_api_client/nexus/modules/__init__.py,sha256=
|
49
|
-
esd_services_api_client/nexus/modules/astra_client_module.py,sha256=
|
48
|
+
esd_services_api_client/nexus/modules/__init__.py,sha256=Ngdc35K63JnK1197oyXXHEcSNZXdV4CXBWoviDUeR5U,839
|
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=j4x-wOSNZHkFco-ENlKtSm22d4WGHmuzKMnzvGQAtlQ,4849
|
53
53
|
esd_services_api_client/nexus/telemetry/user_telemetry_recorder.py,sha256=NOcb2l1SkMHinBXSrfbiBZSpufzhBWkuh3Px3NXrkcg,4997
|
54
|
-
esd_services_api_client-2.5.10a140.
|
55
|
-
esd_services_api_client-2.5.10a140.
|
56
|
-
esd_services_api_client-2.5.10a140.
|
57
|
-
esd_services_api_client-2.5.10a140.
|
54
|
+
esd_services_api_client-2.5.10a140.dev7.dist-info/LICENSE,sha256=0gS6zXsPp8qZhzi1xaGCIYPzb_0e8on7HCeFJe8fOpw,10693
|
55
|
+
esd_services_api_client-2.5.10a140.dev7.dist-info/METADATA,sha256=RnNkiSYJTylrX9tr8HZQ86sLxdXVIj5PcYhz34Jk3z0,1174
|
56
|
+
esd_services_api_client-2.5.10a140.dev7.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
|
57
|
+
esd_services_api_client-2.5.10a140.dev7.dist-info/RECORD,,
|
File without changes
|
File without changes
|