ob-metaflow-stubs 6.0.3.117__py2.py3-none-any.whl → 6.0.3.118__py2.py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (175) hide show
  1. metaflow-stubs/__init__.pyi +319 -2739
  2. metaflow-stubs/cards.pyi +19 -473
  3. metaflow-stubs/cli.pyi +17 -81
  4. metaflow-stubs/client/__init__.pyi +19 -1113
  5. metaflow-stubs/client/core.pyi +18 -158
  6. metaflow-stubs/client/filecache.pyi +8 -12
  7. metaflow-stubs/clone_util.pyi +6 -26
  8. metaflow-stubs/events.pyi +6 -5
  9. metaflow-stubs/exception.pyi +8 -6
  10. metaflow-stubs/flowspec.pyi +22 -106
  11. metaflow-stubs/generated_for.txt +1 -1
  12. metaflow-stubs/includefile.pyi +16 -564
  13. metaflow-stubs/info_file.pyi +6 -5
  14. metaflow-stubs/metadata_provider/__init__.pyi +16 -0
  15. metaflow-stubs/metadata_provider/heartbeat.pyi +34 -0
  16. metaflow-stubs/{metadata → metadata_provider}/metadata.pyi +10 -22
  17. metaflow-stubs/metadata_provider/util.pyi +19 -0
  18. metaflow-stubs/metaflow_config.pyi +8 -13
  19. metaflow-stubs/metaflow_current.pyi +134 -133
  20. metaflow-stubs/mf_extensions/__init__.pyi +6 -0
  21. metaflow-stubs/mf_extensions/obcheckpoint/__init__.pyi +6 -0
  22. metaflow-stubs/mf_extensions/obcheckpoint/plugins/__init__.pyi +6 -0
  23. metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/__init__.pyi +6 -0
  24. metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/checkpoints/__init__.pyi +6 -0
  25. metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/checkpoints/checkpoint_storage.pyi +129 -0
  26. metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/checkpoints/constructors.pyi +26 -0
  27. metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/checkpoints/core.pyi +156 -0
  28. metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/checkpoints/exceptions.pyi +25 -0
  29. metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/checkpoints/final_api.pyi +111 -0
  30. metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/datastore/__init__.pyi +6 -0
  31. metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/datastore/core.pyi +188 -0
  32. metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/datastore/exceptions.pyi +30 -0
  33. metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/datastore/task_utils.pyi +28 -0
  34. metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/datastore/utils.pyi +19 -0
  35. metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/datastructures.pyi +115 -0
  36. metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/exceptions.pyi +40 -0
  37. metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/utils/__init__.pyi +6 -0
  38. metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/utils/flowspec_utils.pyi +71 -0
  39. metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/utils/general.pyi +56 -0
  40. metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/utils/identity_utils.pyi +67 -0
  41. metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/utils/tar_utils.pyi +49 -0
  42. metaflow-stubs/mf_extensions/outerbounds/__init__.pyi +6 -0
  43. metaflow-stubs/mf_extensions/outerbounds/profilers/__init__.pyi +6 -0
  44. metaflow-stubs/mf_extensions/outerbounds/profilers/gpu.pyi +130 -0
  45. metaflow-stubs/mf_extensions/outerbounds/remote_config.pyi +42 -0
  46. metaflow-stubs/mf_extensions/outerbounds/toplevel/__init__.pyi +6 -0
  47. metaflow-stubs/mf_extensions/outerbounds/toplevel/global_aliases_for_metaflow_package.pyi +17 -0
  48. metaflow-stubs/mflog/__init__.pyi +6 -0
  49. metaflow-stubs/mflog/mflog.pyi +52 -5
  50. metaflow-stubs/multicore_utils.pyi +6 -5
  51. metaflow-stubs/parameters.pyi +13 -23
  52. metaflow-stubs/plugins/__init__.pyi +52 -165
  53. metaflow-stubs/plugins/airflow/__init__.pyi +9 -5
  54. metaflow-stubs/plugins/airflow/airflow_utils.pyi +7 -6
  55. metaflow-stubs/plugins/airflow/exception.pyi +7 -11
  56. metaflow-stubs/plugins/airflow/sensors/__init__.pyi +10 -97
  57. metaflow-stubs/plugins/airflow/sensors/base_sensor.pyi +9 -30
  58. metaflow-stubs/plugins/airflow/sensors/external_task_sensor.pyi +9 -40
  59. metaflow-stubs/plugins/airflow/sensors/s3_sensor.pyi +9 -40
  60. metaflow-stubs/plugins/argo/__init__.pyi +12 -5
  61. metaflow-stubs/plugins/argo/argo_client.pyi +8 -26
  62. metaflow-stubs/plugins/argo/argo_events.pyi +7 -11
  63. metaflow-stubs/plugins/argo/argo_workflows.pyi +18 -130
  64. metaflow-stubs/plugins/argo/argo_workflows_cli.pyi +22 -460
  65. metaflow-stubs/plugins/argo/argo_workflows_decorator.pyi +12 -404
  66. metaflow-stubs/plugins/argo/argo_workflows_deployer.pyi +63 -448
  67. metaflow-stubs/plugins/argo/argo_workflows_deployer_objects.pyi +165 -0
  68. metaflow-stubs/plugins/aws/__init__.pyi +11 -5
  69. metaflow-stubs/plugins/aws/aws_client.pyi +6 -5
  70. metaflow-stubs/plugins/aws/aws_utils.pyi +6 -11
  71. metaflow-stubs/plugins/aws/batch/__init__.pyi +9 -5
  72. metaflow-stubs/plugins/aws/batch/batch.pyi +10 -55
  73. metaflow-stubs/plugins/aws/batch/batch_client.pyi +7 -11
  74. metaflow-stubs/plugins/aws/batch/batch_decorator.pyi +15 -140
  75. metaflow-stubs/plugins/aws/secrets_manager/__init__.pyi +7 -5
  76. metaflow-stubs/plugins/aws/secrets_manager/aws_secrets_manager_secrets_provider.pyi +10 -21
  77. metaflow-stubs/plugins/aws/step_functions/__init__.pyi +9 -5
  78. metaflow-stubs/plugins/aws/step_functions/event_bridge_client.pyi +6 -5
  79. metaflow-stubs/plugins/aws/step_functions/production_token.pyi +6 -5
  80. metaflow-stubs/plugins/aws/step_functions/schedule_decorator.pyi +7 -5
  81. metaflow-stubs/plugins/aws/step_functions/step_functions.pyi +11 -65
  82. metaflow-stubs/plugins/aws/step_functions/step_functions_client.pyi +6 -5
  83. metaflow-stubs/plugins/aws/step_functions/step_functions_deployer.pyi +52 -292
  84. metaflow-stubs/plugins/aws/step_functions/step_functions_deployer_objects.pyi +127 -0
  85. metaflow-stubs/plugins/azure/__init__.pyi +12 -7
  86. metaflow-stubs/plugins/azure/azure_credential.pyi +6 -5
  87. metaflow-stubs/plugins/azure/azure_exceptions.pyi +7 -11
  88. metaflow-stubs/plugins/azure/azure_secret_manager_secrets_provider.pyi +11 -24
  89. metaflow-stubs/plugins/azure/azure_utils.pyi +11 -29
  90. metaflow-stubs/plugins/azure/blob_service_client_factory.pyi +8 -23
  91. metaflow-stubs/plugins/azure/includefile_support.pyi +7 -17
  92. metaflow-stubs/plugins/cards/__init__.pyi +15 -5
  93. metaflow-stubs/plugins/cards/card_cli.pyi +22 -491
  94. metaflow-stubs/plugins/cards/card_client.pyi +13 -75
  95. metaflow-stubs/plugins/cards/card_creator.pyi +7 -10
  96. metaflow-stubs/plugins/cards/card_datastore.pyi +10 -18
  97. metaflow-stubs/plugins/cards/card_decorator.pyi +10 -126
  98. metaflow-stubs/plugins/cards/card_modules/__init__.pyi +13 -81
  99. metaflow-stubs/plugins/cards/card_modules/basic.pyi +13 -96
  100. metaflow-stubs/plugins/cards/card_modules/card.pyi +6 -5
  101. metaflow-stubs/plugins/cards/card_modules/components.pyi +24 -107
  102. metaflow-stubs/plugins/cards/card_modules/convert_to_native_type.pyi +6 -5
  103. metaflow-stubs/plugins/cards/card_modules/renderer_tools.pyi +6 -12
  104. metaflow-stubs/plugins/cards/card_modules/test_cards.pyi +11 -88
  105. metaflow-stubs/plugins/cards/card_resolver.pyi +6 -49
  106. metaflow-stubs/plugins/cards/component_serializer.pyi +13 -63
  107. metaflow-stubs/plugins/cards/exception.pyi +7 -11
  108. metaflow-stubs/plugins/catch_decorator.pyi +10 -30
  109. metaflow-stubs/plugins/datatools/__init__.pyi +13 -392
  110. metaflow-stubs/plugins/datatools/local.pyi +7 -11
  111. metaflow-stubs/plugins/datatools/s3/__init__.pyi +19 -653
  112. metaflow-stubs/plugins/datatools/s3/s3.pyi +16 -264
  113. metaflow-stubs/plugins/datatools/s3/s3tail.pyi +7 -10
  114. metaflow-stubs/plugins/datatools/s3/s3util.pyi +6 -11
  115. metaflow-stubs/plugins/debug_logger.pyi +7 -5
  116. metaflow-stubs/plugins/debug_monitor.pyi +7 -5
  117. metaflow-stubs/plugins/environment_decorator.pyi +7 -5
  118. metaflow-stubs/plugins/events_decorator.pyi +8 -14
  119. metaflow-stubs/plugins/frameworks/__init__.pyi +7 -5
  120. metaflow-stubs/plugins/frameworks/pytorch.pyi +8 -45
  121. metaflow-stubs/plugins/gcp/__init__.pyi +11 -7
  122. metaflow-stubs/plugins/gcp/gcp_secret_manager_secrets_provider.pyi +11 -24
  123. metaflow-stubs/plugins/gcp/gs_exceptions.pyi +7 -11
  124. metaflow-stubs/plugins/gcp/gs_storage_client_factory.pyi +6 -5
  125. metaflow-stubs/plugins/gcp/gs_utils.pyi +8 -20
  126. metaflow-stubs/plugins/gcp/includefile_support.pyi +7 -17
  127. metaflow-stubs/plugins/kubernetes/__init__.pyi +12 -5
  128. metaflow-stubs/plugins/kubernetes/kube_utils.pyi +6 -10
  129. metaflow-stubs/plugins/kubernetes/kubernetes.pyi +10 -38
  130. metaflow-stubs/plugins/kubernetes/kubernetes_cli.pyi +16 -155
  131. metaflow-stubs/plugins/kubernetes/kubernetes_client.pyi +7 -11
  132. metaflow-stubs/plugins/kubernetes/kubernetes_decorator.pyi +19 -142
  133. metaflow-stubs/plugins/kubernetes/kubernetes_jobsets.pyi +7 -11
  134. metaflow-stubs/plugins/logs_cli.pyi +10 -9
  135. metaflow-stubs/plugins/package_cli.pyi +7 -5
  136. metaflow-stubs/plugins/parallel_decorator.pyi +11 -59
  137. metaflow-stubs/plugins/perimeters.pyi +6 -11
  138. metaflow-stubs/plugins/project_decorator.pyi +8 -14
  139. metaflow-stubs/plugins/pypi/__init__.pyi +12 -11
  140. metaflow-stubs/plugins/pypi/conda_decorator.pyi +8 -27
  141. metaflow-stubs/plugins/pypi/conda_environment.pyi +14 -20
  142. metaflow-stubs/plugins/pypi/pypi_decorator.pyi +7 -5
  143. metaflow-stubs/plugins/pypi/pypi_environment.pyi +7 -39
  144. metaflow-stubs/plugins/pypi/utils.pyi +7 -11
  145. metaflow-stubs/plugins/resources_decorator.pyi +7 -5
  146. metaflow-stubs/plugins/retry_decorator.pyi +7 -11
  147. metaflow-stubs/plugins/secrets/__init__.pyi +9 -5
  148. metaflow-stubs/plugins/secrets/inline_secrets_provider.pyi +8 -13
  149. metaflow-stubs/plugins/secrets/secrets_decorator.pyi +7 -11
  150. metaflow-stubs/plugins/storage_executor.pyi +6 -11
  151. metaflow-stubs/plugins/tag_cli.pyi +14 -396
  152. metaflow-stubs/plugins/test_unbounded_foreach_decorator.pyi +8 -33
  153. metaflow-stubs/plugins/timeout_decorator.pyi +8 -12
  154. metaflow-stubs/procpoll.pyi +7 -5
  155. metaflow-stubs/profilers/__init__.pyi +7 -11
  156. metaflow-stubs/pylint_wrapper.pyi +7 -11
  157. metaflow-stubs/runner/__init__.pyi +13 -5
  158. metaflow-stubs/runner/deployer.pyi +99 -223
  159. metaflow-stubs/runner/deployer_impl.pyi +87 -0
  160. metaflow-stubs/runner/metaflow_runner.pyi +24 -508
  161. metaflow-stubs/runner/nbdeploy.pyi +16 -60
  162. metaflow-stubs/runner/nbrun.pyi +11 -148
  163. metaflow-stubs/runner/subprocess_manager.pyi +9 -10
  164. metaflow-stubs/runner/utils.pyi +44 -9
  165. metaflow-stubs/system/__init__.pyi +9 -107
  166. metaflow-stubs/system/system_logger.pyi +6 -15
  167. metaflow-stubs/system/system_monitor.pyi +6 -16
  168. metaflow-stubs/tagging_util.pyi +6 -10
  169. metaflow-stubs/tuple_util.pyi +6 -5
  170. {ob_metaflow_stubs-6.0.3.117.dist-info → ob_metaflow_stubs-6.0.3.118.dist-info}/METADATA +1 -1
  171. ob_metaflow_stubs-6.0.3.118.dist-info/RECORD +174 -0
  172. metaflow-stubs/metadata/util.pyi +0 -18
  173. ob_metaflow_stubs-6.0.3.117.dist-info/RECORD +0 -140
  174. {ob_metaflow_stubs-6.0.3.117.dist-info → ob_metaflow_stubs-6.0.3.118.dist-info}/WHEEL +0 -0
  175. {ob_metaflow_stubs-6.0.3.117.dist-info → ob_metaflow_stubs-6.0.3.118.dist-info}/top_level.txt +0 -0
@@ -1,401 +1,19 @@
1
- ##################################################################################
2
- # Auto-generated Metaflow stub file #
3
- # MF version: 2.12.27.1+obcheckpoint(0.1.2);ob(v1) #
4
- # Generated on 2024-11-13T19:05:29.392571 #
5
- ##################################################################################
1
+ ######################################################################################################
2
+ # Auto-generated Metaflow stub file #
3
+ # MF version: 2.12.30.1+obcheckpoint(0.1.4);ob(v1) #
4
+ # Generated on 2024-11-13T23:34:52.868546 #
5
+ ######################################################################################################
6
6
 
7
7
  from __future__ import annotations
8
8
 
9
- import typing
10
- if typing.TYPE_CHECKING:
11
- import datetime
12
- import metaflow.client.core
13
- import metaflow.events
14
- import metaflow.metaflow_current
15
- import metaflow.exception
16
9
 
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
- """
39
- A Flow represents all existing flows with a certain name, in other words,
40
- classes derived from `FlowSpec`. A container of `Run` objects.
41
-
42
- Attributes
43
- ----------
44
- latest_run : Run
45
- Latest `Run` (in progress or completed, successfully or not) of this flow.
46
- latest_successful_run : Run
47
- Latest successfully completed `Run` of this flow.
48
- """
49
- def __init__(self, *args, **kwargs):
50
- ...
51
- @property
52
- def latest_run(self) -> typing.Optional[metaflow.client.core.Run]:
53
- """
54
- Returns the latest run (either in progress or completed) of this flow.
55
-
56
- Note that an in-progress run may be returned by this call. Use latest_successful_run
57
- to get an object representing a completed successful run.
58
-
59
- Returns
60
- -------
61
- Run, optional
62
- Latest run of this flow
63
- """
64
- ...
65
- @property
66
- def latest_successful_run(self) -> typing.Optional[metaflow.client.core.Run]:
67
- """
68
- Returns the latest successful run of this flow.
69
-
70
- Returns
71
- -------
72
- Run, optional
73
- Latest successful run of this flow
74
- """
75
- ...
76
- def runs(self, *tags: str) -> typing.Iterator[metaflow.client.core.Run]:
77
- """
78
- Returns an iterator over all `Run`s of this flow.
79
-
80
- An optional filter is available that allows you to filter on tags.
81
- If multiple tags are specified, only runs that have all the
82
- specified tags are returned.
83
-
84
- Parameters
85
- ----------
86
- tags : str
87
- Tags to match.
88
-
89
- Yields
90
- ------
91
- Run
92
- `Run` objects in this flow.
93
- """
94
- ...
95
- def __iter__(self) -> typing.Iterator[metaflow.client.core.Task]:
96
- """
97
- Iterate over all children Run of this Flow.
98
-
99
- Note that only runs in the current namespace are returned unless
100
- _namespace_check is False
101
-
102
- Yields
103
- ------
104
- Run
105
- A Run in this Flow
106
- """
107
- ...
108
- def __getitem__(self, run_id: str) -> metaflow.client.core.Run:
109
- """
110
- Returns the Run object with the run ID 'run_id'
111
-
112
- Parameters
113
- ----------
114
- run_id : str
115
- Run OD
116
-
117
- Returns
118
- -------
119
- Run
120
- Run for this run ID in this Flow
121
-
122
- Raises
123
- ------
124
- KeyError
125
- If the run_id does not identify a valid Run object
126
- """
127
- ...
128
- def __getstate__(self):
129
- ...
130
- def __setstate__(self, state):
131
- ...
132
- ...
133
-
134
- class Run(metaflow.client.core.MetaflowObject, metaclass=type):
135
- """
136
- A `Run` represents an execution of a `Flow`. It is a container of `Step`s.
137
-
138
- Attributes
139
- ----------
140
- data : MetaflowData
141
- a shortcut to run['end'].task.data, i.e. data produced by this run.
142
- successful : bool
143
- True if the run completed successfully.
144
- finished : bool
145
- True if the run completed.
146
- finished_at : datetime
147
- Time this run finished.
148
- code : MetaflowCode
149
- Code package for this run (if present). See `MetaflowCode`.
150
- trigger : MetaflowTrigger
151
- Information about event(s) that triggered this run (if present). See `MetaflowTrigger`.
152
- end_task : Task
153
- `Task` for the end step (if it is present already).
154
- """
155
- def steps(self, *tags: str) -> typing.Iterator[metaflow.client.core.Step]:
156
- """
157
- [Legacy function - do not use]
158
-
159
- Returns an iterator over all `Step` objects in the step. This is an alias
160
- to iterating the object itself, i.e.
161
- ```
162
- list(Run(...)) == list(Run(...).steps())
163
- ```
164
-
165
- Parameters
166
- ----------
167
- tags : str
168
- No op (legacy functionality)
169
-
170
- Yields
171
- ------
172
- Step
173
- `Step` objects in this run.
174
- """
175
- ...
176
- @property
177
- def code(self) -> typing.Optional[metaflow.client.core.MetaflowCode]:
178
- """
179
- Returns the MetaflowCode object for this run, if present.
180
- Code is packed if atleast one `Step` runs remotely, else None is returned.
181
-
182
- Returns
183
- -------
184
- MetaflowCode, optional
185
- Code package for this run
186
- """
187
- ...
188
- @property
189
- def data(self) -> typing.Optional[metaflow.client.core.MetaflowData]:
190
- """
191
- Returns a container of data artifacts produced by this run.
192
-
193
- You can access data produced by this run as follows:
194
- ```
195
- print(run.data.my_var)
196
- ```
197
- This is a shorthand for `run['end'].task.data`. If the 'end' step has not yet
198
- executed, returns None.
199
-
200
- Returns
201
- -------
202
- MetaflowData, optional
203
- Container of all artifacts produced by this task
204
- """
205
- ...
206
- @property
207
- def successful(self) -> bool:
208
- """
209
- Indicates whether or not the run completed successfully.
210
-
211
- A run is successful if its 'end' step is successful.
212
-
213
- Returns
214
- -------
215
- bool
216
- True if the run completed successfully and False otherwise
217
- """
218
- ...
219
- @property
220
- def finished(self) -> bool:
221
- """
222
- Indicates whether or not the run completed.
223
-
224
- A run completed if its 'end' step completed.
225
-
226
- Returns
227
- -------
228
- bool
229
- True if the run completed and False otherwise
230
- """
231
- ...
232
- @property
233
- def finished_at(self) -> typing.Optional[datetime.datetime]:
234
- """
235
- Returns the datetime object of when the run finished (successfully or not).
236
-
237
- The completion time of a run is the same as the completion time of its 'end' step.
238
- If the 'end' step has not completed, returns None.
239
-
240
- Returns
241
- -------
242
- datetime, optional
243
- Datetime of when the run finished
244
- """
245
- ...
246
- @property
247
- def end_task(self) -> typing.Optional[metaflow.client.core.Task]:
248
- """
249
- Returns the Task corresponding to the 'end' step.
250
-
251
- This returns None if the end step does not yet exist.
252
-
253
- Returns
254
- -------
255
- Task, optional
256
- The 'end' task
257
- """
258
- ...
259
- def add_tag(self, tag: str):
260
- """
261
- Add a tag to this `Run`.
262
-
263
- Note that if the tag is already a system tag, it is not added as a user tag,
264
- and no error is thrown.
265
-
266
- Parameters
267
- ----------
268
- tag : str
269
- Tag to add.
270
- """
271
- ...
272
- def add_tags(self, tags: typing.Iterable[str]):
273
- """
274
- Add one or more tags to this `Run`.
275
-
276
- Note that if any tag is already a system tag, it is not added as a user tag
277
- and no error is thrown.
278
-
279
- Parameters
280
- ----------
281
- tags : Iterable[str]
282
- Tags to add.
283
- """
284
- ...
285
- def remove_tag(self, tag: str):
286
- """
287
- Remove one tag from this `Run`.
288
-
289
- Removing a system tag is an error. Removing a non-existent
290
- user tag is a no-op.
291
-
292
- Parameters
293
- ----------
294
- tag : str
295
- Tag to remove.
296
- """
297
- ...
298
- def remove_tags(self, tags: typing.Iterable[str]):
299
- """
300
- Remove one or more tags to this `Run`.
301
-
302
- Removing a system tag will result in an error. Removing a non-existent
303
- user tag is a no-op.
304
-
305
- Parameters
306
- ----------
307
- tags : Iterable[str]
308
- Tags to remove.
309
- """
310
- ...
311
- def replace_tag(self, tag_to_remove: str, tag_to_add: str):
312
- """
313
- Remove a tag and add a tag atomically. Removal is done first.
314
- The rules for `Run.add_tag` and `Run.remove_tag` also apply here.
315
-
316
- Parameters
317
- ----------
318
- tag_to_remove : str
319
- Tag to remove.
320
- tag_to_add : str
321
- Tag to add.
322
- """
323
- ...
324
- def replace_tags(self, tags_to_remove: typing.Iterable[str], tags_to_add: typing.Iterable[str]):
325
- """
326
- Remove and add tags atomically; the removal is done first.
327
- The rules for `Run.add_tag` and `Run.remove_tag` also apply here.
328
-
329
- Parameters
330
- ----------
331
- tags_to_remove : Iterable[str]
332
- Tags to remove.
333
- tags_to_add : Iterable[str]
334
- Tags to add.
335
- """
336
- ...
337
- def __iter__(self) -> typing.Iterator[metaflow.client.core.Step]:
338
- """
339
- Iterate over all children Step of this Run
340
-
341
- Yields
342
- ------
343
- Step
344
- A Step in this Run
345
- """
346
- ...
347
- def __getitem__(self, name: str) -> metaflow.client.core.Step:
348
- """
349
- Returns the Step object with the step name 'name'
350
-
351
- Parameters
352
- ----------
353
- name : str
354
- Step name
355
-
356
- Returns
357
- -------
358
- Step
359
- Step for this step name in this Run
360
-
361
- Raises
362
- ------
363
- KeyError
364
- If the name does not identify a valid Step object
365
- """
366
- ...
367
- def __getstate__(self):
368
- ...
369
- def __setstate__(self, state):
370
- ...
371
- @property
372
- def trigger(self) -> typing.Optional[metaflow.events.Trigger]:
373
- """
374
- Returns a container of events that triggered this run.
375
-
376
- This returns None if the run was not triggered by any events.
377
-
378
- Returns
379
- -------
380
- Trigger, optional
381
- Container of triggering events
382
- """
383
- ...
384
- ...
385
-
386
- current: metaflow.metaflow_current.Current
387
-
388
- class CommandException(metaflow.exception.MetaflowException, metaclass=type):
389
- ...
390
-
391
- class MetaflowNotFound(metaflow.exception.MetaflowException, metaclass=type):
392
- ...
393
-
394
- class MetaflowInternalError(metaflow.exception.MetaflowException, metaclass=type):
395
- ...
396
-
397
- class MetaflowNamespaceMismatch(metaflow.exception.MetaflowException, metaclass=type):
398
- def __init__(self, namespace):
399
- ...
400
- ...
10
+ from ..client.core import namespace as namespace
11
+ from ..client.core import Flow as Flow
12
+ from ..client.core import Run as Run
13
+ from ..metaflow_current import current as current
14
+ from ..exception import CommandException as CommandException
15
+ from ..exception import MetaflowNotFound as MetaflowNotFound
16
+ from ..exception import MetaflowInternalError as MetaflowInternalError
17
+ from ..exception import MetaflowNamespaceMismatch as MetaflowNamespaceMismatch
18
+ from .._vendor import click as click
401
19
 
@@ -1,22 +1,19 @@
1
- ##################################################################################
2
- # Auto-generated Metaflow stub file #
3
- # MF version: 2.12.27.1+obcheckpoint(0.1.2);ob(v1) #
4
- # Generated on 2024-11-13T19:05:29.383684 #
5
- ##################################################################################
1
+ ######################################################################################################
2
+ # Auto-generated Metaflow stub file #
3
+ # MF version: 2.12.30.1+obcheckpoint(0.1.4);ob(v1) #
4
+ # Generated on 2024-11-13T23:34:52.859398 #
5
+ ######################################################################################################
6
6
 
7
7
  from __future__ import annotations
8
8
 
9
+ import metaflow
9
10
  import typing
10
11
  if typing.TYPE_CHECKING:
11
12
  import metaflow.decorators
12
13
  import metaflow.unbounded_foreach
13
14
 
14
- class MetaflowException(Exception, metaclass=type):
15
- def __init__(self, msg = "", lineno = None):
16
- ...
17
- def __str__(self):
18
- ...
19
- ...
15
+ from ..exception import MetaflowException as MetaflowException
16
+ from ..metadata_provider.metadata import MetaDatum as MetaDatum
20
17
 
21
18
  UBF_CONTROL: str
22
19
 
@@ -24,28 +21,6 @@ UBF_TASK: str
24
21
 
25
22
  CONTROL_TASK_TAG: str
26
23
 
27
- class MetaDatum(tuple, metaclass=type):
28
- """
29
- MetaDatum(field, value, type, tags)
30
- """
31
- @staticmethod
32
- def __new__(_cls, field, value, type, tags):
33
- """
34
- Create new instance of MetaDatum(field, value, type, tags)
35
- """
36
- ...
37
- def __repr__(self):
38
- """
39
- Return a nicely formatted representation string
40
- """
41
- ...
42
- def __getnewargs__(self):
43
- """
44
- Return self as a plain tuple. Used by copy and pickle.
45
- """
46
- ...
47
- ...
48
-
49
24
  class InternalTestUnboundedForeachInput(metaflow.unbounded_foreach.UnboundedForeachInput, metaclass=type):
50
25
  """
51
26
  Test class that wraps around values (any iterator) and simulates an
@@ -1,22 +1,18 @@
1
- ##################################################################################
2
- # Auto-generated Metaflow stub file #
3
- # MF version: 2.12.27.1+obcheckpoint(0.1.2);ob(v1) #
4
- # Generated on 2024-11-13T19:05:29.385779 #
5
- ##################################################################################
1
+ ######################################################################################################
2
+ # Auto-generated Metaflow stub file #
3
+ # MF version: 2.12.30.1+obcheckpoint(0.1.4);ob(v1) #
4
+ # Generated on 2024-11-13T23:34:52.863268 #
5
+ ######################################################################################################
6
6
 
7
7
  from __future__ import annotations
8
8
 
9
+ import metaflow
9
10
  import typing
10
11
  if typing.TYPE_CHECKING:
11
- import metaflow.decorators
12
12
  import metaflow.exception
13
+ import metaflow.decorators
13
14
 
14
- class MetaflowException(Exception, metaclass=type):
15
- def __init__(self, msg = "", lineno = None):
16
- ...
17
- def __str__(self):
18
- ...
19
- ...
15
+ from ..exception import MetaflowException as MetaflowException
20
16
 
21
17
  UBF_CONTROL: str
22
18
 
@@ -1,15 +1,17 @@
1
- ##################################################################################
2
- # Auto-generated Metaflow stub file #
3
- # MF version: 2.12.27.1+obcheckpoint(0.1.2);ob(v1) #
4
- # Generated on 2024-11-13T19:05:29.369177 #
5
- ##################################################################################
1
+ ######################################################################################################
2
+ # Auto-generated Metaflow stub file #
3
+ # MF version: 2.12.30.1+obcheckpoint(0.1.4);ob(v1) #
4
+ # Generated on 2024-11-13T23:34:52.848179 #
5
+ ######################################################################################################
6
6
 
7
7
  from __future__ import annotations
8
8
 
9
+ import metaflow
9
10
  import typing
10
11
  if typing.TYPE_CHECKING:
11
12
  import metaflow.procpoll
12
13
 
14
+
13
15
  class ProcPollEvent(object, metaclass=type):
14
16
  def __init__(self, fd, can_read = False, is_terminated = False):
15
17
  ...
@@ -1,16 +1,12 @@
1
- ##################################################################################
2
- # Auto-generated Metaflow stub file #
3
- # MF version: 2.12.27.1+obcheckpoint(0.1.2);ob(v1) #
4
- # Generated on 2024-11-13T19:05:29.342000 #
5
- ##################################################################################
1
+ ######################################################################################################
2
+ # Auto-generated Metaflow stub file #
3
+ # MF version: 2.12.30.1+obcheckpoint(0.1.4);ob(v1) #
4
+ # Generated on 2024-11-13T23:34:52.830381 #
5
+ ######################################################################################################
6
6
 
7
7
  from __future__ import annotations
8
8
 
9
9
 
10
- class gpu_profile(object, metaclass=type):
11
- def __init__(self, include_artifacts = True, artifact_prefix = "gpu_profile_", interval = 1):
12
- ...
13
- def __call__(self, f):
14
- ...
15
- ...
10
+ from ..mf_extensions.outerbounds.profilers import gpu as gpu
11
+ from ..mf_extensions.outerbounds.profilers.gpu import gpu_profile as gpu_profile
16
12
 
@@ -1,21 +1,17 @@
1
- ##################################################################################
2
- # Auto-generated Metaflow stub file #
3
- # MF version: 2.12.27.1+obcheckpoint(0.1.2);ob(v1) #
4
- # Generated on 2024-11-13T19:05:29.368780 #
5
- ##################################################################################
1
+ ######################################################################################################
2
+ # Auto-generated Metaflow stub file #
3
+ # MF version: 2.12.30.1+obcheckpoint(0.1.4);ob(v1) #
4
+ # Generated on 2024-11-13T23:34:52.847761 #
5
+ ######################################################################################################
6
6
 
7
7
  from __future__ import annotations
8
8
 
9
+ import metaflow
9
10
  import typing
10
11
  if typing.TYPE_CHECKING:
11
12
  import metaflow.exception
12
13
 
13
- class MetaflowException(Exception, metaclass=type):
14
- def __init__(self, msg = "", lineno = None):
15
- ...
16
- def __str__(self):
17
- ...
18
- ...
14
+ from .exception import MetaflowException as MetaflowException
19
15
 
20
16
  class PyLintWarn(metaflow.exception.MetaflowException, metaclass=type):
21
17
  ...
@@ -1,9 +1,17 @@
1
- ##################################################################################
2
- # Auto-generated Metaflow stub file #
3
- # MF version: 2.12.27.1+obcheckpoint(0.1.2);ob(v1) #
4
- # Generated on 2024-11-13T19:05:29.360342 #
5
- ##################################################################################
1
+ ######################################################################################################
2
+ # Auto-generated Metaflow stub file #
3
+ # MF version: 2.12.30.1+obcheckpoint(0.1.4);ob(v1) #
4
+ # Generated on 2024-11-13T23:34:52.836737 #
5
+ ######################################################################################################
6
6
 
7
7
  from __future__ import annotations
8
8
 
9
9
 
10
+ from . import subprocess_manager as subprocess_manager
11
+ from . import utils as utils
12
+ from . import deployer_impl as deployer_impl
13
+ from . import metaflow_runner as metaflow_runner
14
+ from . import nbrun as nbrun
15
+ from . import deployer as deployer
16
+ from . import nbdeploy as nbdeploy
17
+