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,524 @@
1
+ ##################################################################################
2
+ # Auto-generated Metaflow stub file #
3
+ # MF version: 2.11.4.1 #
4
+ # Generated on 2024-02-28T05:30:43.915072 #
5
+ ##################################################################################
6
+
7
+ from __future__ import annotations
8
+
9
+ import typing
10
+ if typing.TYPE_CHECKING:
11
+ import metaflow.plugins.datatools.s3.s3
12
+ import io
13
+ import metaflow.parameters
14
+ import metaflow._vendor.click.types
15
+ import typing
16
+
17
+ class MetaflowException(Exception, metaclass=type):
18
+ def __init__(self, msg = "", lineno = None):
19
+ ...
20
+ def __str__(self):
21
+ ...
22
+ ...
23
+
24
+ class DelayedEvaluationParameter(object, metaclass=type):
25
+ def __init__(self, name, field, fun):
26
+ ...
27
+ def __call__(self, return_str = False):
28
+ ...
29
+ ...
30
+
31
+ class DeployTimeField(object, metaclass=type):
32
+ def __init__(self, parameter_name, parameter_type, field, fun, return_str = True, print_representation = None):
33
+ ...
34
+ def __call__(self, deploy_time = False):
35
+ ...
36
+ @property
37
+ def description(self):
38
+ ...
39
+ def __str__(self):
40
+ ...
41
+ def __repr__(self):
42
+ ...
43
+ ...
44
+
45
+ class Parameter(object, metaclass=type):
46
+ def __init__(self, name: str, default: typing.Union[str, float, int, bool, typing.Dict[str, typing.Any], typing.Callable[[], typing.Union[str, float, int, bool, typing.Dict[str, typing.Any]]], None] = None, type: typing.Union[typing.Type[str], typing.Type[float], typing.Type[int], typing.Type[bool], metaflow.parameters.JSONTypeClass, None] = None, help: typing.Optional[str] = None, required: bool = False, show_default: bool = True, **kwargs: typing.Dict[str, typing.Any]):
47
+ ...
48
+ def __repr__(self):
49
+ ...
50
+ def __str__(self):
51
+ ...
52
+ def option_kwargs(self, deploy_mode):
53
+ ...
54
+ def load_parameter(self, v):
55
+ ...
56
+ @property
57
+ def is_string_type(self):
58
+ ...
59
+ def __getitem__(self, x):
60
+ ...
61
+ ...
62
+
63
+ class ParameterContext(tuple, metaclass=type):
64
+ @staticmethod
65
+ def __new__(_cls, flow_name: str, user_name: str, parameter_name: str, logger: typing.Callable[..., None], ds_type: str):
66
+ """
67
+ Create new instance of ParameterContext(flow_name, user_name, parameter_name, logger, ds_type)
68
+ """
69
+ ...
70
+ def __repr__(self):
71
+ """
72
+ Return a nicely formatted representation string
73
+ """
74
+ ...
75
+ def __getnewargs__(self):
76
+ """
77
+ Return self as a plain tuple. Used by copy and pickle.
78
+ """
79
+ ...
80
+ def __init__(self, flow_name: str, user_name: str, parameter_name: str, logger: typing.Callable[..., None], ds_type: str):
81
+ ...
82
+ ...
83
+
84
+ class Local(object, metaclass=type):
85
+ @classmethod
86
+ def get_root_from_config(cls, echo, create_on_absent = True):
87
+ ...
88
+ def __init__(self):
89
+ """
90
+ Initialize a new context for Local file operations. This object is based used as
91
+ a context manager for a with statement.
92
+ """
93
+ ...
94
+ def __enter__(self):
95
+ ...
96
+ def __exit__(self, *args):
97
+ ...
98
+ def get(self, key = None, return_missing = False):
99
+ ...
100
+ def put(self, key, obj, overwrite = True):
101
+ ...
102
+ def info(self, key = None, return_missing = False):
103
+ ...
104
+ ...
105
+
106
+ class S3(object, metaclass=type):
107
+ @classmethod
108
+ def get_root_from_config(cls, echo, create_on_absent = True):
109
+ ...
110
+ def __enter__(self) -> metaflow.plugins.datatools.s3.s3.S3:
111
+ ...
112
+ def __exit__(self, *args):
113
+ ...
114
+ def close(self):
115
+ """
116
+ Delete all temporary files downloaded in this context.
117
+ """
118
+ ...
119
+ def list_paths(self, keys: typing.Optional[typing.Iterable[str]] = None) -> typing.List[metaflow.plugins.datatools.s3.s3.S3Object]:
120
+ """
121
+ List the next level of paths in S3.
122
+
123
+ If multiple keys are specified, listings are done in parallel. The returned
124
+ S3Objects have `.exists == False` if the path refers to a prefix, not an
125
+ existing S3 object.
126
+
127
+ For instance, if the directory hierarchy is
128
+ ```
129
+ a/0.txt
130
+ a/b/1.txt
131
+ a/c/2.txt
132
+ a/d/e/3.txt
133
+ f/4.txt
134
+ ```
135
+ The `list_paths(['a', 'f'])` call returns
136
+ ```
137
+ a/0.txt (exists == True)
138
+ a/b/ (exists == False)
139
+ a/c/ (exists == False)
140
+ a/d/ (exists == False)
141
+ f/4.txt (exists == True)
142
+ ```
143
+
144
+ Parameters
145
+ ----------
146
+ keys : Iterable[str], optional, default None
147
+ List of paths.
148
+
149
+ Returns
150
+ -------
151
+ List[S3Object]
152
+ S3Objects under the given paths, including prefixes (directories) that
153
+ do not correspond to leaf objects.
154
+ """
155
+ ...
156
+ def list_recursive(self, keys: typing.Optional[typing.Iterable[str]] = None) -> typing.List[metaflow.plugins.datatools.s3.s3.S3Object]:
157
+ """
158
+ List all objects recursively under the given prefixes.
159
+
160
+ If multiple keys are specified, listings are done in parallel. All objects
161
+ returned have `.exists == True` as this call always returns leaf objects.
162
+
163
+ For instance, if the directory hierarchy is
164
+ ```
165
+ a/0.txt
166
+ a/b/1.txt
167
+ a/c/2.txt
168
+ a/d/e/3.txt
169
+ f/4.txt
170
+ ```
171
+ The `list_paths(['a', 'f'])` call returns
172
+ ```
173
+ a/0.txt (exists == True)
174
+ a/b/1.txt (exists == True)
175
+ a/c/2.txt (exists == True)
176
+ a/d/e/3.txt (exists == True)
177
+ f/4.txt (exists == True)
178
+ ```
179
+
180
+ Parameters
181
+ ----------
182
+ keys : Iterable[str], optional, default None
183
+ List of paths.
184
+
185
+ Returns
186
+ -------
187
+ List[S3Object]
188
+ S3Objects under the given paths.
189
+ """
190
+ ...
191
+ def info(self, key: typing.Optional[str] = None, return_missing: bool = False) -> metaflow.plugins.datatools.s3.s3.S3Object:
192
+ """
193
+ Get metadata about a single object in S3.
194
+
195
+ This call makes a single `HEAD` request to S3 which can be
196
+ much faster than downloading all data with `get`.
197
+
198
+ Parameters
199
+ ----------
200
+ key : str, optional, default None
201
+ Object to query. It can be an S3 url or a path suffix.
202
+ return_missing : bool, default False
203
+ If set to True, do not raise an exception for a missing key but
204
+ return it as an `S3Object` with `.exists == False`.
205
+
206
+ Returns
207
+ -------
208
+ S3Object
209
+ An S3Object corresponding to the object requested. The object
210
+ will have `.downloaded == False`.
211
+ """
212
+ ...
213
+ def info_many(self, keys: typing.Iterable[str], return_missing: bool = False) -> typing.List[metaflow.plugins.datatools.s3.s3.S3Object]:
214
+ """
215
+ Get metadata about many objects in S3 in parallel.
216
+
217
+ This call makes a single `HEAD` request to S3 which can be
218
+ much faster than downloading all data with `get`.
219
+
220
+ Parameters
221
+ ----------
222
+ keys : Iterable[str]
223
+ Objects to query. Each key can be an S3 url or a path suffix.
224
+ return_missing : bool, default False
225
+ If set to True, do not raise an exception for a missing key but
226
+ return it as an `S3Object` with `.exists == False`.
227
+
228
+ Returns
229
+ -------
230
+ List[S3Object]
231
+ A list of S3Objects corresponding to the paths requested. The
232
+ objects will have `.downloaded == False`.
233
+ """
234
+ ...
235
+ def get(self, key: typing.Union[str, metaflow.plugins.datatools.s3.s3.S3GetObject, None] = None, return_missing: bool = False, return_info: bool = True) -> metaflow.plugins.datatools.s3.s3.S3Object:
236
+ """
237
+ Get a single object from S3.
238
+
239
+ Parameters
240
+ ----------
241
+ key : Union[str, S3GetObject], optional, default None
242
+ Object to download. It can be an S3 url, a path suffix, or
243
+ an S3GetObject that defines a range of data to download. If None, or
244
+ not provided, gets the S3 root.
245
+ return_missing : bool, default False
246
+ If set to True, do not raise an exception for a missing key but
247
+ return it as an `S3Object` with `.exists == False`.
248
+ return_info : bool, default True
249
+ If set to True, fetch the content-type and user metadata associated
250
+ with the object at no extra cost, included for symmetry with `get_many`
251
+
252
+ Returns
253
+ -------
254
+ S3Object
255
+ An S3Object corresponding to the object requested.
256
+ """
257
+ ...
258
+ def get_many(self, keys: typing.Iterable[typing.Union[str, metaflow.plugins.datatools.s3.s3.S3GetObject]], return_missing: bool = False, return_info: bool = True) -> typing.List[metaflow.plugins.datatools.s3.s3.S3Object]:
259
+ """
260
+ Get many objects from S3 in parallel.
261
+
262
+ Parameters
263
+ ----------
264
+ keys : Iterable[Union[str, S3GetObject]]
265
+ Objects to download. Each object can be an S3 url, a path suffix, or
266
+ an S3GetObject that defines a range of data to download.
267
+ return_missing : bool, default False
268
+ If set to True, do not raise an exception for a missing key but
269
+ return it as an `S3Object` with `.exists == False`.
270
+ return_info : bool, default True
271
+ If set to True, fetch the content-type and user metadata associated
272
+ with the object at no extra cost, included for symmetry with `get_many`.
273
+
274
+ Returns
275
+ -------
276
+ List[S3Object]
277
+ S3Objects corresponding to the objects requested.
278
+ """
279
+ ...
280
+ def get_recursive(self, keys: typing.Iterable[str], return_info: bool = False) -> typing.List[metaflow.plugins.datatools.s3.s3.S3Object]:
281
+ """
282
+ Get many objects from S3 recursively in parallel.
283
+
284
+ Parameters
285
+ ----------
286
+ keys : Iterable[str]
287
+ Prefixes to download recursively. Each prefix can be an S3 url or a path suffix
288
+ which define the root prefix under which all objects are downloaded.
289
+ return_info : bool, default False
290
+ If set to True, fetch the content-type and user metadata associated
291
+ with the object.
292
+
293
+ Returns
294
+ -------
295
+ List[S3Object]
296
+ S3Objects stored under the given prefixes.
297
+ """
298
+ ...
299
+ def get_all(self, return_info: bool = False) -> typing.List[metaflow.plugins.datatools.s3.s3.S3Object]:
300
+ """
301
+ Get all objects under the prefix set in the `S3` constructor.
302
+
303
+ This method requires that the `S3` object is initialized either with `run` or
304
+ `s3root`.
305
+
306
+ Parameters
307
+ ----------
308
+ return_info : bool, default False
309
+ If set to True, fetch the content-type and user metadata associated
310
+ with the object.
311
+
312
+ Returns
313
+ -------
314
+ Iterable[S3Object]
315
+ S3Objects stored under the main prefix.
316
+ """
317
+ ...
318
+ def put(self, key: typing.Union[str, metaflow.plugins.datatools.s3.s3.S3PutObject], obj: typing.Union[io.RawIOBase, io.BufferedIOBase, str, bytes], overwrite: bool = True, content_type: typing.Optional[str] = None, metadata: typing.Optional[typing.Dict[str, str]] = None) -> str:
319
+ """
320
+ Upload a single object to S3.
321
+
322
+ Parameters
323
+ ----------
324
+ key : Union[str, S3PutObject]
325
+ Object path. It can be an S3 url or a path suffix.
326
+ obj : PutValue
327
+ An object to store in S3. Strings are converted to UTF-8 encoding.
328
+ overwrite : bool, default True
329
+ Overwrite the object if it exists. If set to False, the operation
330
+ succeeds without uploading anything if the key already exists.
331
+ content_type : str, optional, default None
332
+ Optional MIME type for the object.
333
+ metadata : Dict[str, str], optional, default None
334
+ A JSON-encodable dictionary of additional headers to be stored
335
+ as metadata with the object.
336
+
337
+ Returns
338
+ -------
339
+ str
340
+ URL of the object stored.
341
+ """
342
+ ...
343
+ def put_many(self, key_objs: typing.List[typing.Union[typing.Tuple[str, typing.Union[io.RawIOBase, io.BufferedIOBase, str, bytes]], metaflow.plugins.datatools.s3.s3.S3PutObject]], overwrite: bool = True) -> typing.List[typing.Tuple[str, str]]:
344
+ """
345
+ Upload many objects to S3.
346
+
347
+ Each object to be uploaded can be specified in two ways:
348
+
349
+ 1. As a `(key, obj)` tuple where `key` is a string specifying
350
+ the path and `obj` is a string or a bytes object.
351
+
352
+ 2. As a `S3PutObject` which contains additional metadata to be
353
+ stored with the object.
354
+
355
+ Parameters
356
+ ----------
357
+ key_objs : List[Union[Tuple[str, PutValue], S3PutObject]]
358
+ List of key-object pairs to upload.
359
+ overwrite : bool, default True
360
+ Overwrite the object if it exists. If set to False, the operation
361
+ succeeds without uploading anything if the key already exists.
362
+
363
+ Returns
364
+ -------
365
+ List[Tuple[str, str]]
366
+ List of `(key, url)` pairs corresponding to the objects uploaded.
367
+ """
368
+ ...
369
+ def put_files(self, key_paths: typing.List[typing.Union[typing.Tuple[str, typing.Union[io.RawIOBase, io.BufferedIOBase, str, bytes]], metaflow.plugins.datatools.s3.s3.S3PutObject]], overwrite: bool = True) -> typing.List[typing.Tuple[str, str]]:
370
+ """
371
+ Upload many local files to S3.
372
+
373
+ Each file to be uploaded can be specified in two ways:
374
+
375
+ 1. As a `(key, path)` tuple where `key` is a string specifying
376
+ the S3 path and `path` is the path to a local file.
377
+
378
+ 2. As a `S3PutObject` which contains additional metadata to be
379
+ stored with the file.
380
+
381
+ Parameters
382
+ ----------
383
+ key_paths : List[Union[Tuple[str, PutValue], S3PutObject]]
384
+ List of files to upload.
385
+ overwrite : bool, default True
386
+ Overwrite the object if it exists. If set to False, the operation
387
+ succeeds without uploading anything if the key already exists.
388
+
389
+ Returns
390
+ -------
391
+ List[Tuple[str, str]]
392
+ List of `(key, url)` pairs corresponding to the files uploaded.
393
+ """
394
+ ...
395
+ ...
396
+
397
+ class Azure(object, metaclass=type):
398
+ @classmethod
399
+ def get_root_from_config(cls, echo, create_on_absent = True):
400
+ ...
401
+ def __init__(self):
402
+ ...
403
+ def __enter__(self):
404
+ ...
405
+ def __exit__(self, *args):
406
+ ...
407
+ def get(self, key = None, return_missing = False):
408
+ """
409
+ Key MUST be a fully qualified path with uri scheme. azure://<container_name>/b/l/o/b/n/a/m/e
410
+ """
411
+ ...
412
+ def put(self, key, obj, overwrite = True):
413
+ """
414
+ Key MUST be a fully qualified path. <container_name>/b/l/o/b/n/a/m/e
415
+ """
416
+ ...
417
+ def info(self, key = None, return_missing = False):
418
+ ...
419
+ ...
420
+
421
+ class GS(object, metaclass=type):
422
+ @classmethod
423
+ def get_root_from_config(cls, echo, create_on_absent = True):
424
+ ...
425
+ def __init__(self):
426
+ ...
427
+ def __enter__(self):
428
+ ...
429
+ def __exit__(self, *args):
430
+ ...
431
+ def get(self, key = None, return_missing = False):
432
+ """
433
+ Key MUST be a fully qualified path. gs://<bucket_name>/b/l/o/b/n/a/m/e
434
+ """
435
+ ...
436
+ def put(self, key, obj, overwrite = True):
437
+ """
438
+ Key MUST be a fully qualified path. gs://<bucket_name>/b/l/o/b/n/a/m/e
439
+ """
440
+ ...
441
+ def info(self, key = None, return_missing = False):
442
+ ...
443
+ ...
444
+
445
+ DATACLIENTS: dict
446
+
447
+ class IncludedFile(object, metaclass=type):
448
+ def __init__(self, descriptor: typing.Dict[str, typing.Any]):
449
+ ...
450
+ @property
451
+ def descriptor(self):
452
+ ...
453
+ @property
454
+ def size(self):
455
+ ...
456
+ def decode(self, name, var_type = "Artifact"):
457
+ ...
458
+ ...
459
+
460
+ class FilePathClass(metaflow._vendor.click.types.ParamType, metaclass=type):
461
+ def __init__(self, is_text, encoding):
462
+ ...
463
+ def convert(self, value, param, ctx):
464
+ ...
465
+ def __str__(self):
466
+ ...
467
+ def __repr__(self):
468
+ ...
469
+ ...
470
+
471
+ class IncludeFile(metaflow.parameters.Parameter, metaclass=type):
472
+ def __init__(self, name: str, required: bool = False, is_text: bool = True, encoding: str = "utf-8", help: typing.Optional[str] = None, **kwargs: typing.Dict[str, str]):
473
+ ...
474
+ def load_parameter(self, v):
475
+ ...
476
+ ...
477
+
478
+ class UploaderV1(object, metaclass=type):
479
+ @classmethod
480
+ def encode_url(cls, url_type, url, **kwargs):
481
+ ...
482
+ @classmethod
483
+ def store(cls, flow_name, path, is_text, encoding, handler, echo):
484
+ ...
485
+ @classmethod
486
+ def size(cls, descriptor):
487
+ ...
488
+ @classmethod
489
+ def load(cls, descriptor):
490
+ ...
491
+ ...
492
+
493
+ class UploaderV2(object, metaclass=type):
494
+ @classmethod
495
+ def encode_url(cls, url_type, url, **kwargs):
496
+ ...
497
+ @classmethod
498
+ def store(cls, flow_name, path, is_text, encoding, handler, echo):
499
+ ...
500
+ @classmethod
501
+ def size(cls, descriptor):
502
+ ...
503
+ @classmethod
504
+ def load(cls, descriptor):
505
+ ...
506
+ ...
507
+
508
+ UPLOADERS: dict
509
+
510
+ class CURRENT_UPLOADER(object, metaclass=type):
511
+ @classmethod
512
+ def encode_url(cls, url_type, url, **kwargs):
513
+ ...
514
+ @classmethod
515
+ def store(cls, flow_name, path, is_text, encoding, handler, echo):
516
+ ...
517
+ @classmethod
518
+ def size(cls, descriptor):
519
+ ...
520
+ @classmethod
521
+ def load(cls, descriptor):
522
+ ...
523
+ ...
524
+