esd-services-api-client 2.5.9a138.dev3__tar.gz → 2.5.10a140.dev5__tar.gz
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-2.5.9a138.dev3 → esd_services_api_client-2.5.10a140.dev5}/PKG-INFO +1 -1
- esd_services_api_client-2.5.10a140.dev5/esd_services_api_client/_version.py +1 -0
- {esd_services_api_client-2.5.9a138.dev3 → esd_services_api_client-2.5.10a140.dev5}/esd_services_api_client/nexus/core/app_core.py +3 -3
- {esd_services_api_client-2.5.9a138.dev3 → esd_services_api_client-2.5.10a140.dev5}/esd_services_api_client/nexus/core/app_dependencies.py +2 -2
- esd_services_api_client-2.5.10a140.dev5/esd_services_api_client/nexus/modules/__init__.py +21 -0
- esd_services_api_client-2.5.10a140.dev5/esd_services_api_client/nexus/modules/astra_client_module.py +69 -0
- esd_services_api_client-2.5.10a140.dev5/esd_services_api_client/nexus/modules/mlflow_module.py +43 -0
- {esd_services_api_client-2.5.9a138.dev3 → esd_services_api_client-2.5.10a140.dev5}/pyproject.toml +1 -1
- esd_services_api_client-2.5.9a138.dev3/esd_services_api_client/_version.py +0 -1
- {esd_services_api_client-2.5.9a138.dev3 → esd_services_api_client-2.5.10a140.dev5}/LICENSE +0 -0
- {esd_services_api_client-2.5.9a138.dev3 → esd_services_api_client-2.5.10a140.dev5}/README.md +0 -0
- {esd_services_api_client-2.5.9a138.dev3 → esd_services_api_client-2.5.10a140.dev5}/esd_services_api_client/__init__.py +0 -0
- {esd_services_api_client-2.5.9a138.dev3 → esd_services_api_client-2.5.10a140.dev5}/esd_services_api_client/beast/__init__.py +0 -0
- {esd_services_api_client-2.5.9a138.dev3 → esd_services_api_client-2.5.10a140.dev5}/esd_services_api_client/beast/v3/__init__.py +0 -0
- {esd_services_api_client-2.5.9a138.dev3 → esd_services_api_client-2.5.10a140.dev5}/esd_services_api_client/beast/v3/_connector.py +0 -0
- {esd_services_api_client-2.5.9a138.dev3 → esd_services_api_client-2.5.10a140.dev5}/esd_services_api_client/beast/v3/_models.py +0 -0
- {esd_services_api_client-2.5.9a138.dev3 → esd_services_api_client-2.5.10a140.dev5}/esd_services_api_client/boxer/README.md +0 -0
- {esd_services_api_client-2.5.9a138.dev3 → esd_services_api_client-2.5.10a140.dev5}/esd_services_api_client/boxer/__init__.py +0 -0
- {esd_services_api_client-2.5.9a138.dev3 → esd_services_api_client-2.5.10a140.dev5}/esd_services_api_client/boxer/_auth.py +0 -0
- {esd_services_api_client-2.5.9a138.dev3 → esd_services_api_client-2.5.10a140.dev5}/esd_services_api_client/boxer/_base.py +0 -0
- {esd_services_api_client-2.5.9a138.dev3 → esd_services_api_client-2.5.10a140.dev5}/esd_services_api_client/boxer/_connector.py +0 -0
- {esd_services_api_client-2.5.9a138.dev3 → esd_services_api_client-2.5.10a140.dev5}/esd_services_api_client/boxer/_models.py +0 -0
- {esd_services_api_client-2.5.9a138.dev3 → esd_services_api_client-2.5.10a140.dev5}/esd_services_api_client/common/__init__.py +0 -0
- {esd_services_api_client-2.5.9a138.dev3 → esd_services_api_client-2.5.10a140.dev5}/esd_services_api_client/crystal/__init__.py +0 -0
- {esd_services_api_client-2.5.9a138.dev3 → esd_services_api_client-2.5.10a140.dev5}/esd_services_api_client/crystal/_api_versions.py +0 -0
- {esd_services_api_client-2.5.9a138.dev3 → esd_services_api_client-2.5.10a140.dev5}/esd_services_api_client/crystal/_connector.py +0 -0
- {esd_services_api_client-2.5.9a138.dev3 → esd_services_api_client-2.5.10a140.dev5}/esd_services_api_client/crystal/_models.py +0 -0
- {esd_services_api_client-2.5.9a138.dev3 → esd_services_api_client-2.5.10a140.dev5}/esd_services_api_client/nexus/README.md +0 -0
- {esd_services_api_client-2.5.9a138.dev3 → esd_services_api_client-2.5.10a140.dev5}/esd_services_api_client/nexus/__init__.py +0 -0
- {esd_services_api_client-2.5.9a138.dev3 → esd_services_api_client-2.5.10a140.dev5}/esd_services_api_client/nexus/abstractions/__init__.py +0 -0
- {esd_services_api_client-2.5.9a138.dev3 → esd_services_api_client-2.5.10a140.dev5}/esd_services_api_client/nexus/abstractions/algrorithm_cache.py +0 -0
- {esd_services_api_client-2.5.9a138.dev3 → esd_services_api_client-2.5.10a140.dev5}/esd_services_api_client/nexus/abstractions/input_object.py +0 -0
- {esd_services_api_client-2.5.9a138.dev3 → esd_services_api_client-2.5.10a140.dev5}/esd_services_api_client/nexus/abstractions/logger_factory.py +0 -0
- {esd_services_api_client-2.5.9a138.dev3 → esd_services_api_client-2.5.10a140.dev5}/esd_services_api_client/nexus/abstractions/nexus_object.py +0 -0
- {esd_services_api_client-2.5.9a138.dev3 → esd_services_api_client-2.5.10a140.dev5}/esd_services_api_client/nexus/abstractions/socket_provider.py +0 -0
- {esd_services_api_client-2.5.9a138.dev3 → esd_services_api_client-2.5.10a140.dev5}/esd_services_api_client/nexus/algorithms/__init__.py +0 -0
- {esd_services_api_client-2.5.9a138.dev3 → esd_services_api_client-2.5.10a140.dev5}/esd_services_api_client/nexus/algorithms/_baseline_algorithm.py +0 -0
- {esd_services_api_client-2.5.9a138.dev3 → esd_services_api_client-2.5.10a140.dev5}/esd_services_api_client/nexus/algorithms/_remote_algorithm.py +0 -0
- {esd_services_api_client-2.5.9a138.dev3 → esd_services_api_client-2.5.10a140.dev5}/esd_services_api_client/nexus/algorithms/distributed.py +0 -0
- {esd_services_api_client-2.5.9a138.dev3 → esd_services_api_client-2.5.10a140.dev5}/esd_services_api_client/nexus/algorithms/forked_algorithm.py +0 -0
- {esd_services_api_client-2.5.9a138.dev3 → esd_services_api_client-2.5.10a140.dev5}/esd_services_api_client/nexus/algorithms/minimalistic.py +0 -0
- {esd_services_api_client-2.5.9a138.dev3 → esd_services_api_client-2.5.10a140.dev5}/esd_services_api_client/nexus/algorithms/recursive.py +0 -0
- {esd_services_api_client-2.5.9a138.dev3 → esd_services_api_client-2.5.10a140.dev5}/esd_services_api_client/nexus/configurations/__init__.py +0 -0
- {esd_services_api_client-2.5.9a138.dev3 → esd_services_api_client-2.5.10a140.dev5}/esd_services_api_client/nexus/configurations/algorithm_configuration.py +0 -0
- {esd_services_api_client-2.5.9a138.dev3 → esd_services_api_client-2.5.10a140.dev5}/esd_services_api_client/nexus/core/__init__.py +0 -0
- {esd_services_api_client-2.5.9a138.dev3 → esd_services_api_client-2.5.10a140.dev5}/esd_services_api_client/nexus/core/serializers.py +0 -0
- {esd_services_api_client-2.5.9a138.dev3 → esd_services_api_client-2.5.10a140.dev5}/esd_services_api_client/nexus/exceptions/__init__.py +0 -0
- {esd_services_api_client-2.5.9a138.dev3 → esd_services_api_client-2.5.10a140.dev5}/esd_services_api_client/nexus/exceptions/_nexus_error.py +0 -0
- {esd_services_api_client-2.5.9a138.dev3 → esd_services_api_client-2.5.10a140.dev5}/esd_services_api_client/nexus/exceptions/cache_errors.py +0 -0
- {esd_services_api_client-2.5.9a138.dev3 → esd_services_api_client-2.5.10a140.dev5}/esd_services_api_client/nexus/exceptions/input_reader_error.py +0 -0
- {esd_services_api_client-2.5.9a138.dev3 → esd_services_api_client-2.5.10a140.dev5}/esd_services_api_client/nexus/exceptions/startup_error.py +0 -0
- {esd_services_api_client-2.5.9a138.dev3 → esd_services_api_client-2.5.10a140.dev5}/esd_services_api_client/nexus/input/__init__.py +0 -0
- {esd_services_api_client-2.5.9a138.dev3 → esd_services_api_client-2.5.10a140.dev5}/esd_services_api_client/nexus/input/input_processor.py +0 -0
- {esd_services_api_client-2.5.9a138.dev3 → esd_services_api_client-2.5.10a140.dev5}/esd_services_api_client/nexus/input/input_reader.py +0 -0
- {esd_services_api_client-2.5.9a138.dev3 → esd_services_api_client-2.5.10a140.dev5}/esd_services_api_client/nexus/input/payload_reader.py +0 -0
- {esd_services_api_client-2.5.9a138.dev3 → esd_services_api_client-2.5.10a140.dev5}/esd_services_api_client/nexus/telemetry/__init__.py +0 -0
- {esd_services_api_client-2.5.9a138.dev3 → esd_services_api_client-2.5.10a140.dev5}/esd_services_api_client/nexus/telemetry/recorder.py +0 -0
- {esd_services_api_client-2.5.9a138.dev3 → esd_services_api_client-2.5.10a140.dev5}/esd_services_api_client/nexus/telemetry/user_telemetry_recorder.py +0 -0
@@ -0,0 +1 @@
|
|
1
|
+
__version__ = 'v2.5.10a140.dev5'
|
@@ -188,11 +188,11 @@ class Nexus:
|
|
188
188
|
|
189
189
|
return self
|
190
190
|
|
191
|
-
def
|
191
|
+
def with_module(self, module: Type[Module]) -> "Nexus":
|
192
192
|
"""
|
193
|
-
|
193
|
+
Adds a (custom) DI module into the DI container.
|
194
194
|
"""
|
195
|
-
self._configurator = self._configurator.
|
195
|
+
self._configurator = self._configurator.with_module(module)
|
196
196
|
return self
|
197
197
|
|
198
198
|
async def _submit_result(
|
@@ -255,9 +255,9 @@ class ServiceConfigurator:
|
|
255
255
|
"""
|
256
256
|
return self._injection_binds
|
257
257
|
|
258
|
-
def
|
258
|
+
def with_module(self, module: Type[Module]) -> "ServiceConfigurator":
|
259
259
|
"""
|
260
|
-
|
260
|
+
Adds a (custom) module into the DI container.
|
261
261
|
"""
|
262
262
|
self._injection_binds.append(module())
|
263
263
|
return self
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# Copyright (c) 2023-2024. ECCO Sneaks & Data
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
#
|
15
|
+
|
16
|
+
"""
|
17
|
+
Import index.
|
18
|
+
"""
|
19
|
+
|
20
|
+
from esd_services_api_client.nexus.modules.mlflow_module import MlflowModule
|
21
|
+
from esd_services_api_client.nexus.modules.astra_client_module import AstraClientModule
|
esd_services_api_client-2.5.10a140.dev5/esd_services_api_client/nexus/modules/astra_client_module.py
ADDED
@@ -0,0 +1,69 @@
|
|
1
|
+
# Copyright (c) 2023-2024. ECCO Sneaks & Data
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
#
|
15
|
+
|
16
|
+
"""
|
17
|
+
Astra Client module that provides the astra client to the Nexus framework.
|
18
|
+
"""
|
19
|
+
|
20
|
+
import os
|
21
|
+
from typing import final
|
22
|
+
|
23
|
+
from adapta.storage.distributed_object_store import AstraClient
|
24
|
+
from injector import Module, singleton, provider
|
25
|
+
|
26
|
+
from esd_services_api_client.nexus.exceptions.startup_error import (
|
27
|
+
FatalStartupConfigurationError,
|
28
|
+
)
|
29
|
+
|
30
|
+
|
31
|
+
@final
|
32
|
+
class AstraClientModule(Module):
|
33
|
+
"""
|
34
|
+
Astra Client module.
|
35
|
+
"""
|
36
|
+
|
37
|
+
@singleton
|
38
|
+
@provider
|
39
|
+
def provide(self) -> AstraClient:
|
40
|
+
"""
|
41
|
+
DI factory method.
|
42
|
+
"""
|
43
|
+
missing_env_vars = []
|
44
|
+
|
45
|
+
if "CRYSTAL__ALGORITHM_NAME" not in os.environ:
|
46
|
+
missing_env_vars.append("CRYSTAL__ALGORITHM_NAME")
|
47
|
+
|
48
|
+
if "CRYSTAL__ASTRA_KEYSPACE" not in os.environ:
|
49
|
+
missing_env_vars.append("CRYSTAL__ASTRA_KEYSPACE")
|
50
|
+
|
51
|
+
if "PROTEUS__ASTRA_BUNDLE_BYTES" not in os.environ:
|
52
|
+
missing_env_vars.append("PROTEUS__ASTRA_BUNDLE_BYTES")
|
53
|
+
|
54
|
+
if "PROTEUS__ASTRA_CLIENT_ID" not in os.environ:
|
55
|
+
missing_env_vars.append("PROTEUS__ASTRA_CLIENT_ID")
|
56
|
+
|
57
|
+
if "PROTEUS__ASTRA_CLIENT_SECRET" not in os.environ:
|
58
|
+
missing_env_vars.append("PROTEUS__ASTRA_CLIENT_SECRET")
|
59
|
+
|
60
|
+
if missing_env_vars:
|
61
|
+
raise FatalStartupConfigurationError(", ".join(missing_env_vars))
|
62
|
+
|
63
|
+
return AstraClient(
|
64
|
+
client_name=os.getenv("CRYSTAL__ALGORITHM_NAME"),
|
65
|
+
keyspace=os.getenv("CRYSTAL__ASTRA_KEYSPACE"),
|
66
|
+
secure_connect_bundle_bytes=os.getenv("PROTEUS__ASTRA_BUNDLE_BYTES"),
|
67
|
+
client_id=os.getenv("PROTEUS__ASTRA_CLIENT_ID"),
|
68
|
+
client_secret=os.getenv("PROTEUS__ASTRA_CLIENT_SECRET"),
|
69
|
+
)
|
esd_services_api_client-2.5.10a140.dev5/esd_services_api_client/nexus/modules/mlflow_module.py
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
# Copyright (c) 2023-2024. ECCO Sneaks & Data
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
#
|
15
|
+
|
16
|
+
"""
|
17
|
+
MLFlow module that provides the MLFlow client to the Nexus framework.
|
18
|
+
"""
|
19
|
+
|
20
|
+
import os
|
21
|
+
from typing import final
|
22
|
+
from injector import Module, singleton, provider
|
23
|
+
from adapta.ml.mlflow import MlflowBasicClient
|
24
|
+
from esd_services_api_client.nexus.exceptions.startup_error import (
|
25
|
+
FatalStartupConfigurationError,
|
26
|
+
)
|
27
|
+
|
28
|
+
|
29
|
+
@final
|
30
|
+
class MlflowModule(Module):
|
31
|
+
"""
|
32
|
+
MLFlow module.
|
33
|
+
"""
|
34
|
+
|
35
|
+
@singleton
|
36
|
+
@provider
|
37
|
+
def provide(self) -> MlflowBasicClient:
|
38
|
+
"""
|
39
|
+
DI factory method.
|
40
|
+
"""
|
41
|
+
if "NEXUS__MLFLOW_TRACKING_URI" not in os.environ:
|
42
|
+
raise FatalStartupConfigurationError("NEXUS__MLFLOW_TRACKING_URI")
|
43
|
+
return MlflowBasicClient(os.environ["NEXUS__MLFLOW_TRACKING_URI"])
|
{esd_services_api_client-2.5.9a138.dev3 → esd_services_api_client-2.5.10a140.dev5}/pyproject.toml
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
[tool.poetry]
|
2
2
|
name = "esd-services-api-client"
|
3
|
-
version = "v2.5.
|
3
|
+
version = "v2.5.10a140.dev5"
|
4
4
|
description = "Python clients for ESD services"
|
5
5
|
authors = ["ECCO Sneaks & Data <esdsupport@ecco.com>"]
|
6
6
|
maintainers = ['GZU <gzu@ecco.com>', 'JRB <ext-jrb@ecco.com>', 'VISA <visa@ecco.com>']
|
@@ -1 +0,0 @@
|
|
1
|
-
__version__ = 'v2.5.9a138.dev3'
|
File without changes
|
{esd_services_api_client-2.5.9a138.dev3 → esd_services_api_client-2.5.10a140.dev5}/README.md
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|