ocean-runner 0.2.11__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 CHANGED
@@ -6,6 +6,8 @@ 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
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ocean-runner
3
- Version: 0.2.11
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==0.2.6
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=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,,