ocean-runner 0.2.3__tar.gz → 0.2.5__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ocean-runner
3
- Version: 0.2.3
3
+ Version: 0.2.5
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
@@ -26,6 +26,14 @@ Description-Content-Type: text/markdown
26
26
  Ocean Runner is a package that brings a fluent API for APP creation and running in the scope of OceanProtocol.
27
27
 
28
28
 
29
+ ## Installation
30
+
31
+ ```bash
32
+ pip install ocean-runner
33
+ # or
34
+ uv add ocean-runner
35
+ ```
36
+
29
37
  ## Usage
30
38
 
31
39
  ### Minimal Example
@@ -126,6 +134,11 @@ Algorithm(
126
134
  """
127
135
  Random secret to use while testing.
128
136
  """
137
+
138
+ runtime: "dev",
139
+ """
140
+ Runtime mode. "dev" to run normally, "test" to run pytest
141
+ """
129
142
  )
130
143
  """
131
144
  Should not be needed in production algorithms, used to mock environment variables, defaults to using env.
@@ -180,8 +193,9 @@ As seen in the minimal example, all methods implemented in `Algorithm` have a de
180
193
  To load the OceanProtocol JobDetails instance, the program will read some environment variables, they can be mocked passing an instance of `Environment` through the configuration of the algorithm.
181
194
 
182
195
  Environment variables:
183
- - *DIDS*: Input dataset(s) DID's.
184
- - *TRANSFORMATION_DID*: Algorithm DID.
185
- - *SECRET*: Algorithm secret.
186
- - *BASE_DIR* (optional, default='/data'): Base path to the OceanProtocol data directories.
196
+ - `DIDS` Input dataset(s) DID's, must have format: `["abc..90"]`
197
+ - `TRANSFORMATION_DID` Algorithm DID, must have format: `abc..90`
198
+ - `SECRET` Algorithm secret.
199
+ - `BASE_DIR` (optional, default="/data"): Base path to the OceanProtocol data directories.
200
+ - `RUNTIME` (optional, default="dev"): Runtime mode
187
201
 
@@ -3,6 +3,14 @@
3
3
  Ocean Runner is a package that brings a fluent API for APP creation and running in the scope of OceanProtocol.
4
4
 
5
5
 
6
+ ## Installation
7
+
8
+ ```bash
9
+ pip install ocean-runner
10
+ # or
11
+ uv add ocean-runner
12
+ ```
13
+
6
14
  ## Usage
7
15
 
8
16
  ### Minimal Example
@@ -103,6 +111,11 @@ Algorithm(
103
111
  """
104
112
  Random secret to use while testing.
105
113
  """
114
+
115
+ runtime: "dev",
116
+ """
117
+ Runtime mode. "dev" to run normally, "test" to run pytest
118
+ """
106
119
  )
107
120
  """
108
121
  Should not be needed in production algorithms, used to mock environment variables, defaults to using env.
@@ -157,8 +170,9 @@ As seen in the minimal example, all methods implemented in `Algorithm` have a de
157
170
  To load the OceanProtocol JobDetails instance, the program will read some environment variables, they can be mocked passing an instance of `Environment` through the configuration of the algorithm.
158
171
 
159
172
  Environment variables:
160
- - *DIDS*: Input dataset(s) DID's.
161
- - *TRANSFORMATION_DID*: Algorithm DID.
162
- - *SECRET*: Algorithm secret.
163
- - *BASE_DIR* (optional, default='/data'): Base path to the OceanProtocol data directories.
173
+ - `DIDS` Input dataset(s) DID's, must have format: `["abc..90"]`
174
+ - `TRANSFORMATION_DID` Algorithm DID, must have format: `abc..90`
175
+ - `SECRET` Algorithm secret.
176
+ - `BASE_DIR` (optional, default="/data"): Base path to the OceanProtocol data directories.
177
+ - `RUNTIME` (optional, default="dev"): Runtime mode
164
178
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "ocean-runner"
3
- version = "0.2.3"
3
+ version = "0.2.5"
4
4
  description = "A fluent API for OceanProtocol algorithms"
5
5
  authors = [
6
6
  { name = "AgrospAI", email = "agrospai@udl.cat" },
File without changes
File without changes