ob-metaflow-extensions 1.3.2__py2.py3-none-any.whl → 1.4.0__py2.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 ob-metaflow-extensions might be problematic. Click here for more details.
- metaflow_extensions/outerbounds/plugins/apps/core/config/schema_export.py +3 -0
- metaflow_extensions/outerbounds/plugins/apps/core/config_schema.yaml +31 -0
- {ob_metaflow_extensions-1.3.2.dist-info → ob_metaflow_extensions-1.4.0.dist-info}/METADATA +2 -2
- {ob_metaflow_extensions-1.3.2.dist-info → ob_metaflow_extensions-1.4.0.dist-info}/RECORD +6 -6
- {ob_metaflow_extensions-1.3.2.dist-info → ob_metaflow_extensions-1.4.0.dist-info}/WHEEL +0 -0
- {ob_metaflow_extensions-1.3.2.dist-info → ob_metaflow_extensions-1.4.0.dist-info}/top_level.txt +0 -0
|
@@ -276,6 +276,9 @@ def _get_field_schema(field_info) -> Dict[str, Any]:
|
|
|
276
276
|
if field_info.behavior:
|
|
277
277
|
field_schema["mutation_behavior"] = field_info.behavior
|
|
278
278
|
|
|
279
|
+
if field_info.cli_meta is not None:
|
|
280
|
+
field_schema["cli_option"] = field_info.cli_meta.cli_option_str
|
|
281
|
+
|
|
279
282
|
# Handle validation from CLI metadata
|
|
280
283
|
if field_info.cli_meta and field_info.validation_fn:
|
|
281
284
|
# Add validation hints in description
|
|
@@ -17,27 +17,32 @@ properties:
|
|
|
17
17
|
type: string
|
|
18
18
|
example: myapp
|
|
19
19
|
mutation_behavior: union
|
|
20
|
+
cli_option: --name
|
|
20
21
|
port:
|
|
21
22
|
description: |-
|
|
22
23
|
Port where the app is hosted. When deployed this will be port on which we will deploy the app. (validation applied)
|
|
23
24
|
type: integer
|
|
24
25
|
example: 8000
|
|
25
26
|
mutation_behavior: union
|
|
27
|
+
cli_option: --port
|
|
26
28
|
description:
|
|
27
29
|
description: The description of the app to deploy.
|
|
28
30
|
type: string
|
|
29
31
|
example: This is a description of my app.
|
|
30
32
|
mutation_behavior: union
|
|
33
|
+
cli_option: --description
|
|
31
34
|
app_type:
|
|
32
35
|
description: The User defined type of app to deploy. Its only used for bookkeeping purposes.
|
|
33
36
|
type: string
|
|
34
37
|
example: MyCustomAgent
|
|
35
38
|
mutation_behavior: union
|
|
39
|
+
cli_option: --app-type
|
|
36
40
|
image:
|
|
37
41
|
description: The Docker image to deploy with the App.
|
|
38
42
|
type: string
|
|
39
43
|
example: python:3.10-slim
|
|
40
44
|
mutation_behavior: union
|
|
45
|
+
cli_option: --image
|
|
41
46
|
tags:
|
|
42
47
|
description: The tags of the app to deploy. (validation applied)
|
|
43
48
|
type: array
|
|
@@ -47,6 +52,7 @@ properties:
|
|
|
47
52
|
- foo: bar
|
|
48
53
|
- x: y
|
|
49
54
|
mutation_behavior: union
|
|
55
|
+
cli_option: --tag
|
|
50
56
|
secrets:
|
|
51
57
|
description: |-
|
|
52
58
|
Outerbounds integrations to attach to the app. You can use the value you set in the `@secrets` decorator in your code. (validation applied)
|
|
@@ -56,6 +62,7 @@ properties:
|
|
|
56
62
|
example:
|
|
57
63
|
- hf-token
|
|
58
64
|
mutation_behavior: union
|
|
65
|
+
cli_option: --secret
|
|
59
66
|
compute_pools:
|
|
60
67
|
description: A list of compute pools to deploy the app to.
|
|
61
68
|
type: array
|
|
@@ -65,6 +72,7 @@ properties:
|
|
|
65
72
|
- default
|
|
66
73
|
- large
|
|
67
74
|
mutation_behavior: union
|
|
75
|
+
cli_option: --compute-pools
|
|
68
76
|
environment:
|
|
69
77
|
description: Environment variables to deploy with the App.
|
|
70
78
|
type: object
|
|
@@ -78,6 +86,7 @@ properties:
|
|
|
78
86
|
- http://localhost:3000
|
|
79
87
|
- https://myapp.com
|
|
80
88
|
mutation_behavior: union
|
|
89
|
+
cli_option: --env
|
|
81
90
|
commands:
|
|
82
91
|
description: A list of commands to run the app with.
|
|
83
92
|
type: array
|
|
@@ -99,23 +108,27 @@ properties:
|
|
|
99
108
|
default: '1'
|
|
100
109
|
example: 500m
|
|
101
110
|
mutation_behavior: union
|
|
111
|
+
cli_option: --cpu
|
|
102
112
|
memory:
|
|
103
113
|
description: Memory resource request and limit. (validation applied)
|
|
104
114
|
type: string
|
|
105
115
|
default: 4Gi
|
|
106
116
|
example: 512Mi
|
|
107
117
|
mutation_behavior: union
|
|
118
|
+
cli_option: --memory
|
|
108
119
|
gpu:
|
|
109
120
|
description: GPU resource request and limit. (validation applied)
|
|
110
121
|
type: string
|
|
111
122
|
example: '1'
|
|
112
123
|
mutation_behavior: union
|
|
124
|
+
cli_option: --gpu
|
|
113
125
|
disk:
|
|
114
126
|
description: Storage resource request and limit. (validation applied)
|
|
115
127
|
type: string
|
|
116
128
|
default: 20Gi
|
|
117
129
|
example: 1Gi
|
|
118
130
|
mutation_behavior: union
|
|
131
|
+
cli_option: --disk
|
|
119
132
|
mutation_behavior: union
|
|
120
133
|
auth:
|
|
121
134
|
title: AuthConfig
|
|
@@ -132,12 +145,14 @@ properties:
|
|
|
132
145
|
- API
|
|
133
146
|
example: Browser
|
|
134
147
|
mutation_behavior: union
|
|
148
|
+
cli_option: --auth-type
|
|
135
149
|
public:
|
|
136
150
|
description: Whether the app is public or not.
|
|
137
151
|
type: boolean
|
|
138
152
|
default: true
|
|
139
153
|
example: true
|
|
140
154
|
mutation_behavior: union
|
|
155
|
+
cli_option: --public-access/--private-access
|
|
141
156
|
mutation_behavior: union
|
|
142
157
|
replicas:
|
|
143
158
|
title: ReplicaConfig
|
|
@@ -151,16 +166,19 @@ properties:
|
|
|
151
166
|
type: integer
|
|
152
167
|
example: 1
|
|
153
168
|
mutation_behavior: union
|
|
169
|
+
cli_option: --fixed-replicas
|
|
154
170
|
min:
|
|
155
171
|
description: The minimum number of replicas to deploy the app with.
|
|
156
172
|
type: integer
|
|
157
173
|
example: 1
|
|
158
174
|
mutation_behavior: union
|
|
175
|
+
cli_option: --min-replicas
|
|
159
176
|
max:
|
|
160
177
|
description: The maximum number of replicas to deploy the app with.
|
|
161
178
|
type: integer
|
|
162
179
|
example: 10
|
|
163
180
|
mutation_behavior: union
|
|
181
|
+
cli_option: --max-replicas
|
|
164
182
|
scaling_policy:
|
|
165
183
|
title: ScalingPolicyConfig
|
|
166
184
|
description: |-
|
|
@@ -175,6 +193,7 @@ properties:
|
|
|
175
193
|
type: integer
|
|
176
194
|
default: 60
|
|
177
195
|
mutation_behavior: union
|
|
196
|
+
cli_option: --scaling-rpm
|
|
178
197
|
mutation_behavior: union
|
|
179
198
|
mutation_behavior: union
|
|
180
199
|
dependencies:
|
|
@@ -188,16 +207,19 @@ properties:
|
|
|
188
207
|
type: string
|
|
189
208
|
example: requirements.txt
|
|
190
209
|
mutation_behavior: not_allowed
|
|
210
|
+
cli_option: --dep-from-requirements
|
|
191
211
|
from_pyproject_toml:
|
|
192
212
|
description: The path to the pyproject.toml file to attach to the app.
|
|
193
213
|
type: string
|
|
194
214
|
example: pyproject.toml
|
|
195
215
|
mutation_behavior: not_allowed
|
|
216
|
+
cli_option: --dep-from-pyproject
|
|
196
217
|
python:
|
|
197
218
|
description: The Python version to use for the app.
|
|
198
219
|
type: string
|
|
199
220
|
example: '3.10'
|
|
200
221
|
mutation_behavior: not_allowed
|
|
222
|
+
cli_option: --python
|
|
201
223
|
pypi:
|
|
202
224
|
description: |-
|
|
203
225
|
A dictionary of pypi dependencies to attach to the app. The key is the package name and the value is the version.
|
|
@@ -207,6 +229,7 @@ properties:
|
|
|
207
229
|
numpy: 1.23.0
|
|
208
230
|
pandas: ''
|
|
209
231
|
mutation_behavior: not_allowed
|
|
232
|
+
cli_option: --pypi
|
|
210
233
|
conda:
|
|
211
234
|
description: |-
|
|
212
235
|
A dictionary of conda dependencies to attach to the app. The key is the package name and the value is the version.
|
|
@@ -216,6 +239,7 @@ properties:
|
|
|
216
239
|
numpy: 1.23.0
|
|
217
240
|
pandas: ''
|
|
218
241
|
mutation_behavior: not_allowed
|
|
242
|
+
cli_option: --conda
|
|
219
243
|
mutation_behavior: union
|
|
220
244
|
package:
|
|
221
245
|
title: PackageConfig
|
|
@@ -228,6 +252,7 @@ properties:
|
|
|
228
252
|
type: string
|
|
229
253
|
example: ./
|
|
230
254
|
mutation_behavior: union
|
|
255
|
+
cli_option: --package-src-path
|
|
231
256
|
suffixes:
|
|
232
257
|
description: A list of suffixes to add to the source code to deploy with the App.
|
|
233
258
|
type: array
|
|
@@ -237,17 +262,20 @@ properties:
|
|
|
237
262
|
- .py
|
|
238
263
|
- .ipynb
|
|
239
264
|
mutation_behavior: union
|
|
265
|
+
cli_option: --package-suffixes
|
|
240
266
|
mutation_behavior: union
|
|
241
267
|
no_deps:
|
|
242
268
|
description: Do not bake any dependencies. Directly used the image provided
|
|
243
269
|
type: boolean
|
|
244
270
|
default: false
|
|
245
271
|
mutation_behavior: union
|
|
272
|
+
cli_option: --no-deps
|
|
246
273
|
force_upgrade:
|
|
247
274
|
description: Force upgrade the app even if it is currently being upgraded.
|
|
248
275
|
type: boolean
|
|
249
276
|
default: false
|
|
250
277
|
mutation_behavior: union
|
|
278
|
+
cli_option: --force-upgrade
|
|
251
279
|
persistence:
|
|
252
280
|
description: The persistence mode to deploy the app with. (validation applied)
|
|
253
281
|
type: string
|
|
@@ -258,18 +286,21 @@ properties:
|
|
|
258
286
|
example: postgres
|
|
259
287
|
experimental: true
|
|
260
288
|
mutation_behavior: union
|
|
289
|
+
cli_option: --persistence
|
|
261
290
|
project:
|
|
262
291
|
description: The project name to deploy the app to.
|
|
263
292
|
type: string
|
|
264
293
|
example: my-project
|
|
265
294
|
experimental: true
|
|
266
295
|
mutation_behavior: union
|
|
296
|
+
cli_option: --project
|
|
267
297
|
branch:
|
|
268
298
|
description: The branch name to deploy the app to.
|
|
269
299
|
type: string
|
|
270
300
|
example: main
|
|
271
301
|
experimental: true
|
|
272
302
|
mutation_behavior: union
|
|
303
|
+
cli_option: --branch
|
|
273
304
|
models:
|
|
274
305
|
type: array
|
|
275
306
|
items:
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: ob-metaflow-extensions
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.4.0
|
|
4
4
|
Summary: Outerbounds Platform Extensions for Metaflow
|
|
5
5
|
Author: Outerbounds, Inc.
|
|
6
6
|
License: Commercial
|
|
7
7
|
Description-Content-Type: text/markdown
|
|
8
8
|
Requires-Dist: boto3
|
|
9
9
|
Requires-Dist: kubernetes
|
|
10
|
-
Requires-Dist: ob-metaflow (==2.
|
|
10
|
+
Requires-Dist: ob-metaflow (==2.17.0.1)
|
|
11
11
|
|
|
12
12
|
# Outerbounds platform package
|
|
13
13
|
|
|
@@ -18,7 +18,7 @@ metaflow_extensions/outerbounds/plugins/apps/core/app_config.py,sha256=PHt-HdNfT
|
|
|
18
18
|
metaflow_extensions/outerbounds/plugins/apps/core/artifacts.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
19
19
|
metaflow_extensions/outerbounds/plugins/apps/core/capsule.py,sha256=VpCmq8R13GNex6aTJnOCswkLnc8acgsQQ9Da6KBh2sQ,34732
|
|
20
20
|
metaflow_extensions/outerbounds/plugins/apps/core/click_importer.py,sha256=kgoPQmK_-8PSSTc3QMSaynCLQ5VWTkKFOC69FPURyXA,998
|
|
21
|
-
metaflow_extensions/outerbounds/plugins/apps/core/config_schema.yaml,sha256=
|
|
21
|
+
metaflow_extensions/outerbounds/plugins/apps/core/config_schema.yaml,sha256=POxm1S9lZB6tO_g9w9gbvna133H5iGYvpVHe247gISY,9697
|
|
22
22
|
metaflow_extensions/outerbounds/plugins/apps/core/dependencies.py,sha256=JlWT9f27yzZeJPlqTQk134WDfQgOdyxC5iaw3pLlhqY,4006
|
|
23
23
|
metaflow_extensions/outerbounds/plugins/apps/core/deployer.py,sha256=dNKlDu6n8SufEd5NKmsErl1RYhQXuEe_DgtA0mk7awg,9472
|
|
24
24
|
metaflow_extensions/outerbounds/plugins/apps/core/perimeters.py,sha256=jeFGAUnFQkBFiOMp_Ls7Ofb80Qogh509suam5sMucYU,3030
|
|
@@ -34,7 +34,7 @@ metaflow_extensions/outerbounds/plugins/apps/core/code_package/examples.py,sha25
|
|
|
34
34
|
metaflow_extensions/outerbounds/plugins/apps/core/config/__init__.py,sha256=ZgC9U4NFu7TNngUuUMzt69PmjMENXb6eUK2HCSroIDo,393
|
|
35
35
|
metaflow_extensions/outerbounds/plugins/apps/core/config/cli_generator.py,sha256=0R0-wy7RxAMR9doVRvuluRYxAYgyjZXlTIkOeYGyz7M,5350
|
|
36
36
|
metaflow_extensions/outerbounds/plugins/apps/core/config/config_utils.py,sha256=bozzUR8rbfOnb5M532RZxB5QNvVgEC1gnVjfCvQ82Yk,34053
|
|
37
|
-
metaflow_extensions/outerbounds/plugins/apps/core/config/schema_export.py,sha256=
|
|
37
|
+
metaflow_extensions/outerbounds/plugins/apps/core/config/schema_export.py,sha256=vfmoSXGRocXryOQOGHbh-zIboEP3ty0BVucOza6uzXU,9614
|
|
38
38
|
metaflow_extensions/outerbounds/plugins/apps/core/config/typed_configs.py,sha256=euoS1Ap4yvHC20Aaj5YQWMgxixkxujVeiJ7C4DcAFhQ,4590
|
|
39
39
|
metaflow_extensions/outerbounds/plugins/apps/core/config/typed_init_generator.py,sha256=KiJ1eiwtBR5eWdBzWqvO6KlqJ2qzjJvl3w4c1uJ3g0Y,13419
|
|
40
40
|
metaflow_extensions/outerbounds/plugins/apps/core/config/unified_config.py,sha256=bO-g_6mv7xciVcDf4Jn-qioPUUvg9Y3fMM5fcraN2Sk,37018
|
|
@@ -124,7 +124,7 @@ metaflow_extensions/outerbounds/toplevel/plugins/ollama/__init__.py,sha256=GRSz2
|
|
|
124
124
|
metaflow_extensions/outerbounds/toplevel/plugins/snowflake/__init__.py,sha256=LptpH-ziXHrednMYUjIaosS1SXD3sOtF_9_eRqd8SJw,50
|
|
125
125
|
metaflow_extensions/outerbounds/toplevel/plugins/torchtune/__init__.py,sha256=uTVkdSk3xZ7hEKYfdlyVteWj5KeDwaM1hU9WT-_YKfI,50
|
|
126
126
|
metaflow_extensions/outerbounds/toplevel/plugins/vllm/__init__.py,sha256=ekcgD3KVydf-a0xMI60P4uy6ePkSEoFHiGnDq1JM940,45
|
|
127
|
-
ob_metaflow_extensions-1.
|
|
128
|
-
ob_metaflow_extensions-1.
|
|
129
|
-
ob_metaflow_extensions-1.
|
|
130
|
-
ob_metaflow_extensions-1.
|
|
127
|
+
ob_metaflow_extensions-1.4.0.dist-info/METADATA,sha256=2BzNOav9XSB5ff7cKCT-z-H_E72u4f3TTFRDws9h8C0,518
|
|
128
|
+
ob_metaflow_extensions-1.4.0.dist-info/WHEEL,sha256=bb2Ot9scclHKMOLDEHY6B2sicWOgugjFKaJsT7vwMQo,110
|
|
129
|
+
ob_metaflow_extensions-1.4.0.dist-info/top_level.txt,sha256=NwG0ukwjygtanDETyp_BUdtYtqIA_lOjzFFh1TsnxvI,20
|
|
130
|
+
ob_metaflow_extensions-1.4.0.dist-info/RECORD,,
|
|
File without changes
|
{ob_metaflow_extensions-1.3.2.dist-info → ob_metaflow_extensions-1.4.0.dist-info}/top_level.txt
RENAMED
|
File without changes
|