ocean-runner 0.2.9__py3-none-any.whl → 0.2.11__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 +1 -6
- ocean_runner/runner.py +1 -1
- {ocean_runner-0.2.9.dist-info → ocean_runner-0.2.11.dist-info}/METADATA +1 -7
- ocean_runner-0.2.11.dist-info/RECORD +7 -0
- ocean_runner-0.2.9.dist-info/RECORD +0 -7
- {ocean_runner-0.2.9.dist-info → ocean_runner-0.2.11.dist-info}/WHEEL +0 -0
- {ocean_runner-0.2.9.dist-info → ocean_runner-0.2.11.dist-info}/licenses/LICENSE +0 -0
ocean_runner/config.py
CHANGED
|
@@ -2,7 +2,7 @@ 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
|
|
|
@@ -31,11 +31,6 @@ class Environment:
|
|
|
31
31
|
)
|
|
32
32
|
"""Super secret secret"""
|
|
33
33
|
|
|
34
|
-
runtime: Literal["dev", "test"] = field(
|
|
35
|
-
default_factory=lambda: os.environ.get("RUNTIME", "dev").lower()
|
|
36
|
-
)
|
|
37
|
-
"""Select runtime mode"""
|
|
38
|
-
|
|
39
34
|
dict = asdict
|
|
40
35
|
|
|
41
36
|
|
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.11
|
|
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
|
|
@@ -134,11 +134,6 @@ Algorithm(
|
|
|
134
134
|
"""
|
|
135
135
|
Random secret to use while testing.
|
|
136
136
|
"""
|
|
137
|
-
|
|
138
|
-
runtime: "dev",
|
|
139
|
-
"""
|
|
140
|
-
Runtime mode. "dev" to run normally, "test" to run pytest
|
|
141
|
-
"""
|
|
142
137
|
)
|
|
143
138
|
"""
|
|
144
139
|
Should not be needed in production algorithms, used to mock environment variables, defaults to using env.
|
|
@@ -197,4 +192,3 @@ Environment variables:
|
|
|
197
192
|
- `TRANSFORMATION_DID` Algorithm DID, must have format: `abc..90`
|
|
198
193
|
- `SECRET` Algorithm secret.
|
|
199
194
|
- `BASE_DIR` (optional, default="/data"): Base path to the OceanProtocol data directories.
|
|
200
|
-
- `RUNTIME` (optional, default="dev"): Runtime mode
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
ocean_runner/__init__.py,sha256=awAmE6kZhuwcrD3gT7qFZArdhiuzW-EFTA6tGKhw06k,138
|
|
2
|
+
ocean_runner/config.py,sha256=kOCHV6uxZsGipfa4SIiPUxBuVl7DuEzMRxhSibOVbqk,1480
|
|
3
|
+
ocean_runner/runner.py,sha256=LXkVNYsqELsXciI8T8RWtfbNpI-_kUAtW1aQzsnOAfU,4075
|
|
4
|
+
ocean_runner-0.2.11.dist-info/METADATA,sha256=QiQeweY5LsuS-IACyGdiP-dn6oMkrcx21fbIDi6hgus,5919
|
|
5
|
+
ocean_runner-0.2.11.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
6
|
+
ocean_runner-0.2.11.dist-info/licenses/LICENSE,sha256=_B25KqK4amoADWkMN150tnZFm_Fy7VvZpvIC8ZydWdI,1053
|
|
7
|
+
ocean_runner-0.2.11.dist-info/RECORD,,
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
ocean_runner/__init__.py,sha256=awAmE6kZhuwcrD3gT7qFZArdhiuzW-EFTA6tGKhw06k,138
|
|
2
|
-
ocean_runner/config.py,sha256=zzpGxotGhGnNdHKFJqQ7fuXK5zW2IGOpzftHilcySD4,1644
|
|
3
|
-
ocean_runner/runner.py,sha256=76PzU9UqcVSQsoo3ILRR-hSRqitCc9jCX3Ci9Kc2P2c,4071
|
|
4
|
-
ocean_runner-0.2.9.dist-info/METADATA,sha256=LS6wORLdoBUQ60nR05DG_PafY6xFGmVveSU01zkZ9l4,6101
|
|
5
|
-
ocean_runner-0.2.9.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
6
|
-
ocean_runner-0.2.9.dist-info/licenses/LICENSE,sha256=_B25KqK4amoADWkMN150tnZFm_Fy7VvZpvIC8ZydWdI,1053
|
|
7
|
-
ocean_runner-0.2.9.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|