ob-metaflow-stubs 2.11.4.1__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.
Files changed (131) hide show
  1. metaflow-stubs/__init__.pyi +2753 -0
  2. metaflow-stubs/cards.pyi +266 -0
  3. metaflow-stubs/cli.pyi +137 -0
  4. metaflow-stubs/client/__init__.pyi +993 -0
  5. metaflow-stubs/client/core.pyi +1425 -0
  6. metaflow-stubs/client/filecache.pyi +87 -0
  7. metaflow-stubs/events.pyi +107 -0
  8. metaflow-stubs/exception.pyi +98 -0
  9. metaflow-stubs/flowspec.pyi +297 -0
  10. metaflow-stubs/generated_for.txt +1 -0
  11. metaflow-stubs/includefile.pyi +524 -0
  12. metaflow-stubs/metadata/metadata.pyi +377 -0
  13. metaflow-stubs/metadata/util.pyi +18 -0
  14. metaflow-stubs/metaflow_config.pyi +263 -0
  15. metaflow-stubs/metaflow_current.pyi +327 -0
  16. metaflow-stubs/mflog/mflog.pyi +22 -0
  17. metaflow-stubs/multicore_utils.pyi +62 -0
  18. metaflow-stubs/parameters.pyi +114 -0
  19. metaflow-stubs/plugins/__init__.pyi +209 -0
  20. metaflow-stubs/plugins/airflow/__init__.pyi +9 -0
  21. metaflow-stubs/plugins/airflow/airflow.pyi +179 -0
  22. metaflow-stubs/plugins/airflow/airflow_cli.pyi +90 -0
  23. metaflow-stubs/plugins/airflow/airflow_decorator.pyi +50 -0
  24. metaflow-stubs/plugins/airflow/airflow_utils.pyi +137 -0
  25. metaflow-stubs/plugins/airflow/exception.pyi +27 -0
  26. metaflow-stubs/plugins/airflow/sensors/__init__.pyi +26 -0
  27. metaflow-stubs/plugins/airflow/sensors/base_sensor.pyi +60 -0
  28. metaflow-stubs/plugins/airflow/sensors/external_task_sensor.pyi +54 -0
  29. metaflow-stubs/plugins/airflow/sensors/s3_sensor.pyi +50 -0
  30. metaflow-stubs/plugins/argo/__init__.pyi +9 -0
  31. metaflow-stubs/plugins/argo/argo_client.pyi +77 -0
  32. metaflow-stubs/plugins/argo/argo_events.pyi +79 -0
  33. metaflow-stubs/plugins/argo/argo_workflows.pyi +604 -0
  34. metaflow-stubs/plugins/argo/argo_workflows_cli.pyi +180 -0
  35. metaflow-stubs/plugins/argo/argo_workflows_decorator.pyi +169 -0
  36. metaflow-stubs/plugins/aws/__init__.pyi +9 -0
  37. metaflow-stubs/plugins/aws/aws_client.pyi +22 -0
  38. metaflow-stubs/plugins/aws/aws_utils.pyi +93 -0
  39. metaflow-stubs/plugins/aws/batch/__init__.pyi +9 -0
  40. metaflow-stubs/plugins/aws/batch/batch.pyi +120 -0
  41. metaflow-stubs/plugins/aws/batch/batch_cli.pyi +42 -0
  42. metaflow-stubs/plugins/aws/batch/batch_client.pyi +159 -0
  43. metaflow-stubs/plugins/aws/batch/batch_decorator.pyi +145 -0
  44. metaflow-stubs/plugins/aws/secrets_manager/__init__.pyi +9 -0
  45. metaflow-stubs/plugins/aws/secrets_manager/aws_secrets_manager_secrets_provider.pyi +73 -0
  46. metaflow-stubs/plugins/aws/step_functions/__init__.pyi +9 -0
  47. metaflow-stubs/plugins/aws/step_functions/dynamo_db_client.pyi +22 -0
  48. metaflow-stubs/plugins/aws/step_functions/event_bridge_client.pyi +27 -0
  49. metaflow-stubs/plugins/aws/step_functions/production_token.pyi +18 -0
  50. metaflow-stubs/plugins/aws/step_functions/schedule_decorator.pyi +17 -0
  51. metaflow-stubs/plugins/aws/step_functions/step_functions.pyi +220 -0
  52. metaflow-stubs/plugins/aws/step_functions/step_functions_cli.pyi +139 -0
  53. metaflow-stubs/plugins/aws/step_functions/step_functions_client.pyi +36 -0
  54. metaflow-stubs/plugins/aws/step_functions/step_functions_decorator.pyi +49 -0
  55. metaflow-stubs/plugins/azure/__init__.pyi +9 -0
  56. metaflow-stubs/plugins/azure/azure_credential.pyi +28 -0
  57. metaflow-stubs/plugins/azure/azure_exceptions.pyi +28 -0
  58. metaflow-stubs/plugins/azure/azure_utils.pyi +76 -0
  59. metaflow-stubs/plugins/azure/blob_service_client_factory.pyi +52 -0
  60. metaflow-stubs/plugins/azure/includefile_support.pyi +63 -0
  61. metaflow-stubs/plugins/cards/__init__.pyi +9 -0
  62. metaflow-stubs/plugins/cards/card_cli.pyi +557 -0
  63. metaflow-stubs/plugins/cards/card_client.pyi +178 -0
  64. metaflow-stubs/plugins/cards/card_creator.pyi +26 -0
  65. metaflow-stubs/plugins/cards/card_datastore.pyi +111 -0
  66. metaflow-stubs/plugins/cards/card_decorator.pyi +133 -0
  67. metaflow-stubs/plugins/cards/card_modules/__init__.pyi +67 -0
  68. metaflow-stubs/plugins/cards/card_modules/basic.pyi +263 -0
  69. metaflow-stubs/plugins/cards/card_modules/card.pyi +62 -0
  70. metaflow-stubs/plugins/cards/card_modules/chevron/__init__.pyi +78 -0
  71. metaflow-stubs/plugins/cards/card_modules/chevron/main.pyi +77 -0
  72. metaflow-stubs/plugins/cards/card_modules/chevron/metadata.pyi +11 -0
  73. metaflow-stubs/plugins/cards/card_modules/chevron/renderer.pyi +114 -0
  74. metaflow-stubs/plugins/cards/card_modules/chevron/tokenizer.pyi +75 -0
  75. metaflow-stubs/plugins/cards/card_modules/components.pyi +251 -0
  76. metaflow-stubs/plugins/cards/card_modules/convert_to_native_type.pyi +45 -0
  77. metaflow-stubs/plugins/cards/card_modules/renderer_tools.pyi +24 -0
  78. metaflow-stubs/plugins/cards/card_modules/test_cards.pyi +155 -0
  79. metaflow-stubs/plugins/cards/card_resolver.pyi +60 -0
  80. metaflow-stubs/plugins/cards/component_serializer.pyi +227 -0
  81. metaflow-stubs/plugins/cards/exception.pyi +71 -0
  82. metaflow-stubs/plugins/catch_decorator.pyi +58 -0
  83. metaflow-stubs/plugins/datatools/__init__.pyi +339 -0
  84. metaflow-stubs/plugins/datatools/local.pyi +82 -0
  85. metaflow-stubs/plugins/datatools/s3/__init__.pyi +589 -0
  86. metaflow-stubs/plugins/datatools/s3/s3.pyi +875 -0
  87. metaflow-stubs/plugins/datatools/s3/s3tail.pyi +34 -0
  88. metaflow-stubs/plugins/datatools/s3/s3util.pyi +45 -0
  89. metaflow-stubs/plugins/debug_logger.pyi +25 -0
  90. metaflow-stubs/plugins/debug_monitor.pyi +25 -0
  91. metaflow-stubs/plugins/environment_decorator.pyi +17 -0
  92. metaflow-stubs/plugins/events_decorator.pyi +34 -0
  93. metaflow-stubs/plugins/frameworks/__init__.pyi +9 -0
  94. metaflow-stubs/plugins/frameworks/pytorch.pyi +42 -0
  95. metaflow-stubs/plugins/gcp/__init__.pyi +9 -0
  96. metaflow-stubs/plugins/gcp/gs_exceptions.pyi +22 -0
  97. metaflow-stubs/plugins/gcp/gs_storage_client_factory.pyi +26 -0
  98. metaflow-stubs/plugins/gcp/gs_utils.pyi +38 -0
  99. metaflow-stubs/plugins/gcp/includefile_support.pyi +63 -0
  100. metaflow-stubs/plugins/kubernetes/__init__.pyi +9 -0
  101. metaflow-stubs/plugins/kubernetes/kubernetes.pyi +127 -0
  102. metaflow-stubs/plugins/kubernetes/kubernetes_cli.pyi +73 -0
  103. metaflow-stubs/plugins/kubernetes/kubernetes_client.pyi +62 -0
  104. metaflow-stubs/plugins/kubernetes/kubernetes_decorator.pyi +165 -0
  105. metaflow-stubs/plugins/kubernetes/kubernetes_job.pyi +100 -0
  106. metaflow-stubs/plugins/package_cli.pyi +9 -0
  107. metaflow-stubs/plugins/parallel_decorator.pyi +34 -0
  108. metaflow-stubs/plugins/project_decorator.pyi +36 -0
  109. metaflow-stubs/plugins/pypi/__init__.pyi +18 -0
  110. metaflow-stubs/plugins/pypi/conda_decorator.pyi +59 -0
  111. metaflow-stubs/plugins/pypi/conda_environment.pyi +86 -0
  112. metaflow-stubs/plugins/pypi/pypi_decorator.pyi +22 -0
  113. metaflow-stubs/plugins/pypi/pypi_environment.pyi +50 -0
  114. metaflow-stubs/plugins/pypi/utils.pyi +28 -0
  115. metaflow-stubs/plugins/resources_decorator.pyi +15 -0
  116. metaflow-stubs/plugins/retry_decorator.pyi +28 -0
  117. metaflow-stubs/plugins/secrets/__init__.pyi +21 -0
  118. metaflow-stubs/plugins/secrets/inline_secrets_provider.pyi +30 -0
  119. metaflow-stubs/plugins/secrets/secrets_decorator.pyi +75 -0
  120. metaflow-stubs/plugins/storage_executor.pyi +33 -0
  121. metaflow-stubs/plugins/tag_cli.pyi +370 -0
  122. metaflow-stubs/plugins/test_unbounded_foreach_decorator.pyi +54 -0
  123. metaflow-stubs/plugins/timeout_decorator.pyi +39 -0
  124. metaflow-stubs/procpoll.pyi +51 -0
  125. metaflow-stubs/py.typed +0 -0
  126. metaflow-stubs/pylint_wrapper.pyi +31 -0
  127. metaflow-stubs/tagging_util.pyi +52 -0
  128. ob_metaflow_stubs-2.11.4.1.dist-info/METADATA +22 -0
  129. ob_metaflow_stubs-2.11.4.1.dist-info/RECORD +131 -0
  130. ob_metaflow_stubs-2.11.4.1.dist-info/WHEEL +6 -0
  131. ob_metaflow_stubs-2.11.4.1.dist-info/top_level.txt +1 -0
@@ -0,0 +1,30 @@
1
+ ##################################################################################
2
+ # Auto-generated Metaflow stub file #
3
+ # MF version: 2.11.4.1 #
4
+ # Generated on 2024-02-28T05:30:43.993136 #
5
+ ##################################################################################
6
+
7
+ from __future__ import annotations
8
+
9
+ import typing
10
+ if typing.TYPE_CHECKING:
11
+ import metaflow.plugins.secrets
12
+ import abc
13
+
14
+ class SecretsProvider(abc.ABC, metaclass=abc.ABCMeta):
15
+ def get_secret_as_dict(self, secret_id, options = {}, role = None) -> typing.Dict[str, str]:
16
+ """
17
+ Retrieve the secret from secrets backend, and return a dictionary of
18
+ environment variables.
19
+ """
20
+ ...
21
+ ...
22
+
23
+ class InlineSecretsProvider(metaflow.plugins.secrets.SecretsProvider, metaclass=abc.ABCMeta):
24
+ def get_secret_as_dict(self, secret_id, options = {}, role = None):
25
+ """
26
+ Intended to be used for testing purposes only.
27
+ """
28
+ ...
29
+ ...
30
+
@@ -0,0 +1,75 @@
1
+ ##################################################################################
2
+ # Auto-generated Metaflow stub file #
3
+ # MF version: 2.11.4.1 #
4
+ # Generated on 2024-02-28T05:30:43.992829 #
5
+ ##################################################################################
6
+
7
+ from __future__ import annotations
8
+
9
+ import typing
10
+ if typing.TYPE_CHECKING:
11
+ import metaflow.decorators
12
+
13
+ class MetaflowException(Exception, metaclass=type):
14
+ def __init__(self, msg = "", lineno = None):
15
+ ...
16
+ def __str__(self):
17
+ ...
18
+ ...
19
+
20
+ DEFAULT_SECRETS_ROLE: None
21
+
22
+ UBF_CONTROL: str
23
+
24
+ DISALLOWED_SECRETS_ENV_VAR_PREFIXES: list
25
+
26
+ def get_default_secrets_backend_type():
27
+ ...
28
+
29
+ class SecretSpec(object, metaclass=type):
30
+ def __init__(self, secrets_backend_type, secret_id, options = {}, role = None):
31
+ ...
32
+ @property
33
+ def secrets_backend_type(self):
34
+ ...
35
+ @property
36
+ def secret_id(self):
37
+ ...
38
+ @property
39
+ def options(self):
40
+ ...
41
+ @property
42
+ def role(self):
43
+ ...
44
+ def to_json(self):
45
+ """
46
+ Mainly used for testing... not the same as the input dict in secret_spec_from_dict()!
47
+ """
48
+ ...
49
+ def __str__(self):
50
+ ...
51
+ @staticmethod
52
+ def secret_spec_from_str(secret_spec_str, role):
53
+ ...
54
+ @staticmethod
55
+ def secret_spec_from_dict(secret_spec_dict, role):
56
+ ...
57
+ ...
58
+
59
+ def validate_env_vars_across_secrets(all_secrets_env_vars):
60
+ ...
61
+
62
+ def validate_env_vars_vs_existing_env(all_secrets_env_vars):
63
+ ...
64
+
65
+ def validate_env_vars(env_vars):
66
+ ...
67
+
68
+ def get_secrets_backend_provider(secrets_backend_type):
69
+ ...
70
+
71
+ class SecretsDecorator(metaflow.decorators.StepDecorator, metaclass=type):
72
+ def task_pre_step(self, step_name, task_datastore, metadata, run_id, task_id, flow, graph, retry_count, max_user_code_retries, ubf_context, inputs):
73
+ ...
74
+ ...
75
+
@@ -0,0 +1,33 @@
1
+ ##################################################################################
2
+ # Auto-generated Metaflow stub file #
3
+ # MF version: 2.11.4.1 #
4
+ # Generated on 2024-02-28T05:30:43.934105 #
5
+ ##################################################################################
6
+
7
+ from __future__ import annotations
8
+
9
+
10
+ class MetaflowException(Exception, metaclass=type):
11
+ def __init__(self, msg = "", lineno = None):
12
+ ...
13
+ def __str__(self):
14
+ ...
15
+ ...
16
+
17
+ class StorageExecutor(object, metaclass=type):
18
+ def __init__(self, use_processes = False):
19
+ ...
20
+ def warm_up(self):
21
+ ...
22
+ def submit(self, *args, **kwargs):
23
+ ...
24
+ ...
25
+
26
+ def handle_executor_exceptions(func):
27
+ """
28
+ Decorator for handling errors that come from an Executor. This decorator should
29
+ only be used on functions where executor errors are possible. I.e. the function
30
+ uses StorageExecutor.
31
+ """
32
+ ...
33
+
@@ -0,0 +1,370 @@
1
+ ##################################################################################
2
+ # Auto-generated Metaflow stub file #
3
+ # MF version: 2.11.4.1 #
4
+ # Generated on 2024-02-28T05:30:43.941509 #
5
+ ##################################################################################
6
+
7
+ from __future__ import annotations
8
+
9
+ import typing
10
+ if typing.TYPE_CHECKING:
11
+ import metaflow.exception
12
+ import metaflow.client.core
13
+ import metaflow.metaflow_current
14
+ import datetime
15
+ import metaflow.events
16
+
17
+ def namespace(ns: typing.Optional[str]) -> typing.Optional[str]:
18
+ """
19
+ Switch namespace to the one provided.
20
+
21
+ This call has a global effect. No objects outside this namespace
22
+ will be accessible. To access all objects regardless of namespaces,
23
+ pass None to this call.
24
+
25
+ Parameters
26
+ ----------
27
+ ns : str, optional
28
+ Namespace to switch to or None to ignore namespaces.
29
+
30
+ Returns
31
+ -------
32
+ str, optional
33
+ Namespace set (result of get_namespace()).
34
+ """
35
+ ...
36
+
37
+ class Flow(metaflow.client.core.MetaflowObject, metaclass=type):
38
+ def __init__(self, *args, **kwargs):
39
+ ...
40
+ @property
41
+ def latest_run(self) -> typing.Optional[metaflow.client.core.Run]:
42
+ """
43
+ Returns the latest run (either in progress or completed) of this flow.
44
+
45
+ Note that an in-progress run may be returned by this call. Use latest_successful_run
46
+ to get an object representing a completed successful run.
47
+
48
+ Returns
49
+ -------
50
+ Run, optional
51
+ Latest run of this flow
52
+ """
53
+ ...
54
+ @property
55
+ def latest_successful_run(self) -> typing.Optional[metaflow.client.core.Run]:
56
+ """
57
+ Returns the latest successful run of this flow.
58
+
59
+ Returns
60
+ -------
61
+ Run, optional
62
+ Latest successful run of this flow
63
+ """
64
+ ...
65
+ def runs(self, *tags: str) -> typing.Iterator[metaflow.client.core.Run]:
66
+ """
67
+ Returns an iterator over all `Run`s of this flow.
68
+
69
+ An optional filter is available that allows you to filter on tags.
70
+ If multiple tags are specified, only runs that have all the
71
+ specified tags are returned.
72
+
73
+ Parameters
74
+ ----------
75
+ tags : str
76
+ Tags to match.
77
+
78
+ Yields
79
+ ------
80
+ Run
81
+ `Run` objects in this flow.
82
+ """
83
+ ...
84
+ def __iter__(self) -> typing.Iterator[metaflow.client.core.Task]:
85
+ """
86
+ Iterate over all children Run of this Flow.
87
+
88
+ Note that only runs in the current namespace are returned unless
89
+ _namespace_check is False
90
+
91
+ Yields
92
+ ------
93
+ Run
94
+ A Run in this Flow
95
+ """
96
+ ...
97
+ def __getitem__(self, run_id: str) -> metaflow.client.core.Run:
98
+ """
99
+ Returns the Run object with the run ID 'run_id'
100
+
101
+ Parameters
102
+ ----------
103
+ run_id : str
104
+ Run OD
105
+
106
+ Returns
107
+ -------
108
+ Run
109
+ Run for this run ID in this Flow
110
+
111
+ Raises
112
+ ------
113
+ KeyError
114
+ If the run_id does not identify a valid Run object
115
+ """
116
+ ...
117
+ def __getstate__(self):
118
+ ...
119
+ def __setstate__(self, state):
120
+ ...
121
+ ...
122
+
123
+ class Run(metaflow.client.core.MetaflowObject, metaclass=type):
124
+ def steps(self, *tags: str) -> typing.Iterator[metaflow.client.core.Step]:
125
+ """
126
+ [Legacy function - do not use]
127
+
128
+ Returns an iterator over all `Step` objects in the step. This is an alias
129
+ to iterating the object itself, i.e.
130
+ ```
131
+ list(Run(...)) == list(Run(...).steps())
132
+ ```
133
+
134
+ Parameters
135
+ ----------
136
+ tags : str
137
+ No op (legacy functionality)
138
+
139
+ Yields
140
+ ------
141
+ Step
142
+ `Step` objects in this run.
143
+ """
144
+ ...
145
+ @property
146
+ def code(self) -> typing.Optional[metaflow.client.core.MetaflowCode]:
147
+ """
148
+ Returns the MetaflowCode object for this run, if present.
149
+ Code is packed if atleast one `Step` runs remotely, else None is returned.
150
+
151
+ Returns
152
+ -------
153
+ MetaflowCode, optional
154
+ Code package for this run
155
+ """
156
+ ...
157
+ @property
158
+ def data(self) -> typing.Optional[metaflow.client.core.MetaflowData]:
159
+ """
160
+ Returns a container of data artifacts produced by this run.
161
+
162
+ You can access data produced by this run as follows:
163
+ ```
164
+ print(run.data.my_var)
165
+ ```
166
+ This is a shorthand for `run['end'].task.data`. If the 'end' step has not yet
167
+ executed, returns None.
168
+
169
+ Returns
170
+ -------
171
+ MetaflowData, optional
172
+ Container of all artifacts produced by this task
173
+ """
174
+ ...
175
+ @property
176
+ def successful(self) -> bool:
177
+ """
178
+ Indicates whether or not the run completed successfully.
179
+
180
+ A run is successful if its 'end' step is successful.
181
+
182
+ Returns
183
+ -------
184
+ bool
185
+ True if the run completed successfully and False otherwise
186
+ """
187
+ ...
188
+ @property
189
+ def finished(self) -> bool:
190
+ """
191
+ Indicates whether or not the run completed.
192
+
193
+ A run completed if its 'end' step completed.
194
+
195
+ Returns
196
+ -------
197
+ bool
198
+ True if the run completed and False otherwise
199
+ """
200
+ ...
201
+ @property
202
+ def finished_at(self) -> typing.Optional[datetime.datetime]:
203
+ """
204
+ Returns the datetime object of when the run finished (successfully or not).
205
+
206
+ The completion time of a run is the same as the completion time of its 'end' step.
207
+ If the 'end' step has not completed, returns None.
208
+
209
+ Returns
210
+ -------
211
+ datetime, optional
212
+ Datetime of when the run finished
213
+ """
214
+ ...
215
+ @property
216
+ def end_task(self) -> typing.Optional[metaflow.client.core.Task]:
217
+ """
218
+ Returns the Task corresponding to the 'end' step.
219
+
220
+ This returns None if the end step does not yet exist.
221
+
222
+ Returns
223
+ -------
224
+ Task, optional
225
+ The 'end' task
226
+ """
227
+ ...
228
+ def add_tag(self, tag: str):
229
+ """
230
+ Add a tag to this `Run`.
231
+
232
+ Note that if the tag is already a system tag, it is not added as a user tag,
233
+ and no error is thrown.
234
+
235
+ Parameters
236
+ ----------
237
+ tag : str
238
+ Tag to add.
239
+ """
240
+ ...
241
+ def add_tags(self, tags: typing.Iterable[str]):
242
+ """
243
+ Add one or more tags to this `Run`.
244
+
245
+ Note that if any tag is already a system tag, it is not added as a user tag
246
+ and no error is thrown.
247
+
248
+ Parameters
249
+ ----------
250
+ tags : Iterable[str]
251
+ Tags to add.
252
+ """
253
+ ...
254
+ def remove_tag(self, tag: str):
255
+ """
256
+ Remove one tag from this `Run`.
257
+
258
+ Removing a system tag is an error. Removing a non-existent
259
+ user tag is a no-op.
260
+
261
+ Parameters
262
+ ----------
263
+ tag : str
264
+ Tag to remove.
265
+ """
266
+ ...
267
+ def remove_tags(self, tags: typing.Iterable[str]):
268
+ """
269
+ Remove one or more tags to this `Run`.
270
+
271
+ Removing a system tag will result in an error. Removing a non-existent
272
+ user tag is a no-op.
273
+
274
+ Parameters
275
+ ----------
276
+ tags : Iterable[str]
277
+ Tags to remove.
278
+ """
279
+ ...
280
+ def replace_tag(self, tag_to_remove: str, tag_to_add: str):
281
+ """
282
+ Remove a tag and add a tag atomically. Removal is done first.
283
+ The rules for `Run.add_tag` and `Run.remove_tag` also apply here.
284
+
285
+ Parameters
286
+ ----------
287
+ tag_to_remove : str
288
+ Tag to remove.
289
+ tag_to_add : str
290
+ Tag to add.
291
+ """
292
+ ...
293
+ def replace_tags(self, tags_to_remove: typing.Iterable[str], tags_to_add: typing.Iterable[str]):
294
+ """
295
+ Remove and add tags atomically; the removal is done first.
296
+ The rules for `Run.add_tag` and `Run.remove_tag` also apply here.
297
+
298
+ Parameters
299
+ ----------
300
+ tags_to_remove : Iterable[str]
301
+ Tags to remove.
302
+ tags_to_add : Iterable[str]
303
+ Tags to add.
304
+ """
305
+ ...
306
+ def __iter__(self) -> typing.Iterator[metaflow.client.core.Step]:
307
+ """
308
+ Iterate over all children Step of this Run
309
+
310
+ Yields
311
+ ------
312
+ Step
313
+ A Step in this Run
314
+ """
315
+ ...
316
+ def __getitem__(self, name: str) -> metaflow.client.core.Step:
317
+ """
318
+ Returns the Step object with the step name 'name'
319
+
320
+ Parameters
321
+ ----------
322
+ name : str
323
+ Step name
324
+
325
+ Returns
326
+ -------
327
+ Step
328
+ Step for this step name in this Run
329
+
330
+ Raises
331
+ ------
332
+ KeyError
333
+ If the name does not identify a valid Step object
334
+ """
335
+ ...
336
+ def __getstate__(self):
337
+ ...
338
+ def __setstate__(self, state):
339
+ ...
340
+ @property
341
+ def trigger(self) -> typing.Optional[metaflow.events.Trigger]:
342
+ """
343
+ Returns a container of events that triggered this run.
344
+
345
+ This returns None if the run was not triggered by any events.
346
+
347
+ Returns
348
+ -------
349
+ Trigger, optional
350
+ Container of triggering events
351
+ """
352
+ ...
353
+ ...
354
+
355
+ current: metaflow.metaflow_current.Current
356
+
357
+ class CommandException(metaflow.exception.MetaflowException, metaclass=type):
358
+ ...
359
+
360
+ class MetaflowNotFound(metaflow.exception.MetaflowException, metaclass=type):
361
+ ...
362
+
363
+ class MetaflowInternalError(metaflow.exception.MetaflowException, metaclass=type):
364
+ ...
365
+
366
+ class MetaflowNamespaceMismatch(metaflow.exception.MetaflowException, metaclass=type):
367
+ def __init__(self, namespace):
368
+ ...
369
+ ...
370
+
@@ -0,0 +1,54 @@
1
+ ##################################################################################
2
+ # Auto-generated Metaflow stub file #
3
+ # MF version: 2.11.4.1 #
4
+ # Generated on 2024-02-28T05:30:43.927357 #
5
+ ##################################################################################
6
+
7
+ from __future__ import annotations
8
+
9
+ import typing
10
+ if typing.TYPE_CHECKING:
11
+ import metaflow.unbounded_foreach
12
+ import metaflow.decorators
13
+
14
+ class MetaflowException(Exception, metaclass=type):
15
+ def __init__(self, msg = "", lineno = None):
16
+ ...
17
+ def __str__(self):
18
+ ...
19
+ ...
20
+
21
+ UBF_CONTROL: str
22
+
23
+ UBF_TASK: str
24
+
25
+ class InternalTestUnboundedForeachInput(metaflow.unbounded_foreach.UnboundedForeachInput, metaclass=type):
26
+ def __init__(self, iterable):
27
+ ...
28
+ def __iter__(self):
29
+ ...
30
+ def __next__(self):
31
+ ...
32
+ def __getitem__(self, key):
33
+ ...
34
+ def __len__(self):
35
+ ...
36
+ def __str__(self):
37
+ ...
38
+ def __repr__(self):
39
+ ...
40
+ ...
41
+
42
+ class InternalTestUnboundedForeachDecorator(metaflow.decorators.StepDecorator, metaclass=type):
43
+ def __init__(self, attributes = None, statically_defined = False):
44
+ ...
45
+ def step_init(self, flow, graph, step_name, decorators, environment, flow_datastore, logger):
46
+ ...
47
+ def control_task_step_func(self, flow, graph, retry_count):
48
+ ...
49
+ def task_decorate(self, step_func, flow, graph, retry_count, max_user_code_retries, ubf_context):
50
+ ...
51
+ def step_task_retry_count(self):
52
+ ...
53
+ ...
54
+
@@ -0,0 +1,39 @@
1
+ ##################################################################################
2
+ # Auto-generated Metaflow stub file #
3
+ # MF version: 2.11.4.1 #
4
+ # Generated on 2024-02-28T05:30:43.928315 #
5
+ ##################################################################################
6
+
7
+ from __future__ import annotations
8
+
9
+ import typing
10
+ if typing.TYPE_CHECKING:
11
+ import metaflow.decorators
12
+ import metaflow.exception
13
+
14
+ class MetaflowException(Exception, metaclass=type):
15
+ def __init__(self, msg = "", lineno = None):
16
+ ...
17
+ def __str__(self):
18
+ ...
19
+ ...
20
+
21
+ UBF_CONTROL: str
22
+
23
+ class TimeoutException(metaflow.exception.MetaflowException, metaclass=type):
24
+ ...
25
+
26
+ class TimeoutDecorator(metaflow.decorators.StepDecorator, metaclass=type):
27
+ def __init__(self, *args, **kwargs):
28
+ ...
29
+ def step_init(self, flow, graph, step, decos, environment, flow_datastore, logger):
30
+ ...
31
+ def task_pre_step(self, step_name, task_datastore, metadata, run_id, task_id, flow, graph, retry_count, max_user_code_retries, ubf_context, inputs):
32
+ ...
33
+ def task_post_step(self, step_name, flow, graph, retry_count, max_user_code_retries):
34
+ ...
35
+ ...
36
+
37
+ def get_run_time_limit_for_task(step_decos):
38
+ ...
39
+
@@ -0,0 +1,51 @@
1
+ ##################################################################################
2
+ # Auto-generated Metaflow stub file #
3
+ # MF version: 2.11.4.1 #
4
+ # Generated on 2024-02-28T05:30:43.923244 #
5
+ ##################################################################################
6
+
7
+ from __future__ import annotations
8
+
9
+ import typing
10
+ if typing.TYPE_CHECKING:
11
+ import metaflow.procpoll
12
+
13
+ class ProcPollEvent(object, metaclass=type):
14
+ def __init__(self, fd, can_read = False, is_terminated = False):
15
+ ...
16
+ ...
17
+
18
+ class ProcPoll(object, metaclass=type):
19
+ def poll(self):
20
+ ...
21
+ def add(self, fd):
22
+ ...
23
+ def remove(self, fd):
24
+ ...
25
+ ...
26
+
27
+ class LinuxProcPoll(ProcPoll, metaclass=type):
28
+ def __init__(self):
29
+ ...
30
+ def add(self, fd):
31
+ ...
32
+ def remove(self, fd):
33
+ ...
34
+ def poll(self, timeout):
35
+ ...
36
+ ...
37
+
38
+ class DarwinProcPoll(ProcPoll, metaclass=type):
39
+ def __init__(self):
40
+ ...
41
+ def add(self, fd):
42
+ ...
43
+ def remove(self, fd):
44
+ ...
45
+ def poll(self, timeout):
46
+ ...
47
+ ...
48
+
49
+ def make_poll():
50
+ ...
51
+
File without changes
@@ -0,0 +1,31 @@
1
+ ##################################################################################
2
+ # Auto-generated Metaflow stub file #
3
+ # MF version: 2.11.4.1 #
4
+ # Generated on 2024-02-28T05:30:43.923640 #
5
+ ##################################################################################
6
+
7
+ from __future__ import annotations
8
+
9
+ import typing
10
+ if typing.TYPE_CHECKING:
11
+ import metaflow.exception
12
+
13
+ class MetaflowException(Exception, metaclass=type):
14
+ def __init__(self, msg = "", lineno = None):
15
+ ...
16
+ def __str__(self):
17
+ ...
18
+ ...
19
+
20
+ class PyLintWarn(metaflow.exception.MetaflowException, metaclass=type):
21
+ ...
22
+
23
+ class PyLint(object, metaclass=type):
24
+ def __init__(self, fname):
25
+ ...
26
+ def has_pylint(self):
27
+ ...
28
+ def run(self, logger = None, warnings = False, pylint_config = []):
29
+ ...
30
+ ...
31
+