ocean-runner 0.2.10__py3-none-any.whl → 0.2.12__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.
Potentially problematic release.
This version of ocean-runner might be problematic. Click here for more details.
- ocean_runner/config.py +6 -4
- ocean_runner/runner.py +1 -1
- {ocean_runner-0.2.10.dist-info → ocean_runner-0.2.12.dist-info}/METADATA +2 -2
- ocean_runner-0.2.12.dist-info/RECORD +7 -0
- ocean_runner-0.2.10.dist-info/RECORD +0 -7
- {ocean_runner-0.2.10.dist-info → ocean_runner-0.2.12.dist-info}/WHEEL +0 -0
- {ocean_runner-0.2.10.dist-info → ocean_runner-0.2.12.dist-info}/licenses/LICENSE +0 -0
ocean_runner/config.py
CHANGED
|
@@ -2,10 +2,12 @@ import os
|
|
|
2
2
|
from dataclasses import asdict, dataclass, field
|
|
3
3
|
from logging import Logger
|
|
4
4
|
from pathlib import Path
|
|
5
|
-
from typing import Callable, Iterable,
|
|
5
|
+
from typing import Callable, Iterable, TypeVar
|
|
6
6
|
|
|
7
7
|
T = TypeVar("T")
|
|
8
8
|
|
|
9
|
+
DEFAULT = "DEFAULT"
|
|
10
|
+
|
|
9
11
|
|
|
10
12
|
@dataclass
|
|
11
13
|
class Environment:
|
|
@@ -17,17 +19,17 @@ class Environment:
|
|
|
17
19
|
"""Base data directory, defaults to '/data'"""
|
|
18
20
|
|
|
19
21
|
dids: str = field(
|
|
20
|
-
default_factory=lambda: os.environ.get("DIDS"),
|
|
22
|
+
default_factory=lambda: os.environ.get("DIDS", None),
|
|
21
23
|
)
|
|
22
24
|
"""Datasets DID's, format: '["XXXX"]'"""
|
|
23
25
|
|
|
24
26
|
transformation_did: str = field(
|
|
25
|
-
default_factory=lambda: os.environ.get("TRANSFORMATION_DID"),
|
|
27
|
+
default_factory=lambda: os.environ.get("TRANSFORMATION_DID", DEFAULT),
|
|
26
28
|
)
|
|
27
29
|
"""Transformation (algorithm) DID"""
|
|
28
30
|
|
|
29
31
|
secret: str = field(
|
|
30
|
-
default_factory=lambda: os.environ.get("SECRET"),
|
|
32
|
+
default_factory=lambda: os.environ.get("SECRET", DEFAULT),
|
|
31
33
|
)
|
|
32
34
|
"""Super secret secret"""
|
|
33
35
|
|
ocean_runner/runner.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ocean-runner
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.12
|
|
4
4
|
Summary: A fluent API for OceanProtocol algorithms
|
|
5
5
|
Project-URL: Homepage, https://github.com/AgrospAI/ocean-runner
|
|
6
6
|
Project-URL: Issues, https://github.com/AgrospAI/ocean-runner/issues
|
|
@@ -17,7 +17,7 @@ Classifier: License :: OSI Approved :: MIT License
|
|
|
17
17
|
Classifier: Operating System :: OS Independent
|
|
18
18
|
Classifier: Programming Language :: Python :: 3
|
|
19
19
|
Requires-Python: >=3.10
|
|
20
|
-
Requires-Dist: oceanprotocol-job-details
|
|
20
|
+
Requires-Dist: oceanprotocol-job-details>=0.2.7
|
|
21
21
|
Requires-Dist: pytest>=8.4.2
|
|
22
22
|
Description-Content-Type: text/markdown
|
|
23
23
|
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
ocean_runner/__init__.py,sha256=awAmE6kZhuwcrD3gT7qFZArdhiuzW-EFTA6tGKhw06k,138
|
|
2
|
+
ocean_runner/config.py,sha256=EgloiUTLBvca4B_pr2eNa8kHYfsyVE73ZxszLCbiDYY,1525
|
|
3
|
+
ocean_runner/runner.py,sha256=LXkVNYsqELsXciI8T8RWtfbNpI-_kUAtW1aQzsnOAfU,4075
|
|
4
|
+
ocean_runner-0.2.12.dist-info/METADATA,sha256=k9dRV2nI-i3_ZJPETo2DnuDzasRqx_YZhFe3pVy-20M,5919
|
|
5
|
+
ocean_runner-0.2.12.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
6
|
+
ocean_runner-0.2.12.dist-info/licenses/LICENSE,sha256=_B25KqK4amoADWkMN150tnZFm_Fy7VvZpvIC8ZydWdI,1053
|
|
7
|
+
ocean_runner-0.2.12.dist-info/RECORD,,
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
ocean_runner/__init__.py,sha256=awAmE6kZhuwcrD3gT7qFZArdhiuzW-EFTA6tGKhw06k,138
|
|
2
|
-
ocean_runner/config.py,sha256=-9ZOOHSDRtYEgPXXP3SWcL3d0Wcpa1QUZQziqfJ55_w,1489
|
|
3
|
-
ocean_runner/runner.py,sha256=76PzU9UqcVSQsoo3ILRR-hSRqitCc9jCX3Ci9Kc2P2c,4071
|
|
4
|
-
ocean_runner-0.2.10.dist-info/METADATA,sha256=MrfKG8cNunt6FoGkdOcUe-N90xzSCkLLQUZzqOGScyk,5919
|
|
5
|
-
ocean_runner-0.2.10.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
6
|
-
ocean_runner-0.2.10.dist-info/licenses/LICENSE,sha256=_B25KqK4amoADWkMN150tnZFm_Fy7VvZpvIC8ZydWdI,1053
|
|
7
|
-
ocean_runner-0.2.10.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|