ob-metaflow-stubs 6.0.3.117__py2.py3-none-any.whl → 6.0.3.119__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 +318 -2738
  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 +7 -6
  9. metaflow-stubs/exception.pyi +8 -6
  10. metaflow-stubs/flowspec.pyi +20 -104
  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 +45 -44
  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 +17 -129
  64. metaflow-stubs/plugins/argo/argo_workflows_cli.pyi +22 -460
  65. metaflow-stubs/plugins/argo/argo_workflows_decorator.pyi +11 -403
  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 +14 -76
  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 +15 -263
  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 +9 -34
  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 +7 -16
  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.119.dist-info}/METADATA +1 -1
  171. ob_metaflow_stubs-6.0.3.119.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.119.dist-info}/WHEEL +0 -0
  175. {ob_metaflow_stubs-6.0.3.117.dist-info → ob_metaflow_stubs-6.0.3.119.dist-info}/top_level.txt +0 -0
@@ -1,38 +1,56 @@
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.362909 #
5
- ##################################################################################
1
+ ######################################################################################################
2
+ # Auto-generated Metaflow stub file #
3
+ # MF version: 2.12.30.2+obcheckpoint(0.1.4);ob(v1) #
4
+ # Generated on 2024-11-21T22:12:20.804365 #
5
+ ######################################################################################################
6
6
 
7
7
  from __future__ import annotations
8
8
 
9
- import typing
10
- if typing.TYPE_CHECKING:
11
- import metaflow.plugins.cards.card_modules.card
12
- import metaflow.unbounded_foreach
13
9
 
14
- CLIS_DESC: list
10
+ from . import test_unbounded_foreach_decorator as test_unbounded_foreach_decorator
11
+ from .test_unbounded_foreach_decorator import InternalTestUnboundedForeachInput as InternalTestUnboundedForeachInput
12
+ from . import timeout_decorator as timeout_decorator
13
+ from . import kubernetes as kubernetes
14
+ from . import resources_decorator as resources_decorator
15
+ from . import aws as aws
16
+ from . import catch_decorator as catch_decorator
17
+ from . import datatools as datatools
18
+ from . import gcp as gcp
19
+ from . import storage_executor as storage_executor
20
+ from . import cards as cards
21
+ from . import retry_decorator as retry_decorator
22
+ from . import argo as argo
23
+ from . import pypi as pypi
24
+ from . import secrets as secrets
25
+ from . import parallel_decorator as parallel_decorator
26
+ from . import environment_decorator as environment_decorator
27
+ from . import frameworks as frameworks
28
+ from . import airflow as airflow
29
+ from . import events_decorator as events_decorator
30
+ from . import project_decorator as project_decorator
31
+ from . import azure as azure
32
+ from . import debug_logger as debug_logger
33
+ from . import debug_monitor as debug_monitor
34
+ from .cards.card_modules.basic import BlankCard as BlankCard
35
+ from .cards.card_modules.basic import DefaultCard as DefaultCard
36
+ from .cards.card_modules.basic import DefaultCardJSON as DefaultCardJSON
37
+ from .cards.card_modules.basic import ErrorCard as ErrorCard
38
+ from .cards.card_modules.basic import TaskSpecCard as TaskSpecCard
39
+ from .cards.card_modules.test_cards import TestEditableCard as TestEditableCard
40
+ from .cards.card_modules.test_cards import TestEditableCard2 as TestEditableCard2
41
+ from .cards.card_modules.test_cards import TestErrorCard as TestErrorCard
42
+ from .cards.card_modules.test_cards import TestMockCard as TestMockCard
43
+ from .cards.card_modules.test_cards import TestNonEditableCard as TestNonEditableCard
44
+ from .cards.card_modules.test_cards import TestPathSpecCard as TestPathSpecCard
45
+ from .cards.card_modules.test_cards import TestTimeoutCard as TestTimeoutCard
46
+ from .cards.card_modules.test_cards import TestRefreshCard as TestRefreshCard
47
+ from .cards.card_modules.test_cards import TestRefreshComponentCard as TestRefreshComponentCard
48
+ from . import package_cli as package_cli
49
+ from . import tag_cli as tag_cli
50
+ from . import logs_cli as logs_cli
51
+ from . import perimeters as perimeters
15
52
 
16
- class InternalTestUnboundedForeachInput(metaflow.unbounded_foreach.UnboundedForeachInput, metaclass=type):
17
- """
18
- Test class that wraps around values (any iterator) and simulates an
19
- unbounded-foreach instead of a bounded foreach.
20
- """
21
- def __init__(self, iterable):
22
- ...
23
- def __iter__(self):
24
- ...
25
- def __next__(self):
26
- ...
27
- def __getitem__(self, key):
28
- ...
29
- def __len__(self):
30
- ...
31
- def __str__(self):
32
- ...
33
- def __repr__(self):
34
- ...
35
- ...
53
+ CLIS_DESC: list
36
54
 
37
55
  STEP_DECORATORS_DESC: list
38
56
 
@@ -44,6 +62,8 @@ METADATA_PROVIDERS_DESC: list
44
62
 
45
63
  DATASTORES_DESC: list
46
64
 
65
+ DATACLIENTS_DESC: list
66
+
47
67
  SIDECARS_DESC: list
48
68
 
49
69
  LOGGING_SIDECARS_DESC: list
@@ -65,8 +85,6 @@ DEPLOYER_IMPL_PROVIDERS_DESC: list
65
85
  def get_plugin_cli():
66
86
  ...
67
87
 
68
- FROM_DEPLOYMENT_PROVIDERS: dict
69
-
70
88
  STEP_DECORATORS: list
71
89
 
72
90
  FLOW_DECORATORS: list
@@ -77,6 +95,8 @@ METADATA_PROVIDERS: list
77
95
 
78
96
  DATASTORES: list
79
97
 
98
+ DATACLIENTS: list
99
+
80
100
  SIDECARS: dict
81
101
 
82
102
  LOGGING_SIDECARS: dict
@@ -95,138 +115,5 @@ DEPLOYER_IMPL_PROVIDERS: list
95
115
 
96
116
  MF_EXTERNAL_CARDS: list
97
117
 
98
- class BlankCard(metaflow.plugins.cards.card_modules.card.MetaflowCard, metaclass=type):
99
- def __init__(self, options = {"title": ""}, components = [], graph = None):
100
- ...
101
- def render(self, task, components = [], runtime = False):
102
- ...
103
- def render_runtime(self, task, data):
104
- ...
105
- def refresh(self, task, data):
106
- ...
107
- def reload_content_token(self, task, data):
108
- """
109
- The reload token will change when the component array has changed in the Metaflow card.
110
- The change in the component array is signified by the change in the component_update_ts.
111
- """
112
- ...
113
- ...
114
-
115
- class DefaultCard(metaflow.plugins.cards.card_modules.card.MetaflowCard, metaclass=type):
116
- def __init__(self, options = {"only_repr": True}, components = [], graph = None):
117
- ...
118
- def render(self, task, runtime = False):
119
- ...
120
- def render_runtime(self, task, data):
121
- ...
122
- def refresh(self, task, data):
123
- ...
124
- def reload_content_token(self, task, data):
125
- """
126
- The reload token will change when the component array has changed in the Metaflow card.
127
- The change in the component array is signified by the change in the component_update_ts.
128
- """
129
- ...
130
- ...
131
-
132
- class DefaultCardJSON(metaflow.plugins.cards.card_modules.card.MetaflowCard, metaclass=type):
133
- def __init__(self, options = {"only_repr": True}, components = [], graph = None):
134
- ...
135
- def render(self, task):
136
- ...
137
- ...
138
-
139
- class ErrorCard(metaflow.plugins.cards.card_modules.card.MetaflowCard, metaclass=type):
140
- def __init__(self, options = {}, components = [], graph = None):
141
- ...
142
- def reload_content_token(self, task, data):
143
- """
144
- The reload token will change when the component array has changed in the Metaflow card.
145
- The change in the component array is signified by the change in the component_update_ts.
146
- """
147
- ...
148
- def render(self, task, stack_trace = None):
149
- ...
150
- ...
151
-
152
- class TaskSpecCard(metaflow.plugins.cards.card_modules.card.MetaflowCard, metaclass=type):
153
- def render(self, task):
154
- ...
155
- ...
156
-
157
- class TestEditableCard(metaflow.plugins.cards.card_modules.card.MetaflowCard, metaclass=type):
158
- def __init__(self, options = {}, components = [], graph = None):
159
- ...
160
- def render(self, task):
161
- ...
162
- ...
163
-
164
- class TestEditableCard2(metaflow.plugins.cards.card_modules.card.MetaflowCard, metaclass=type):
165
- def __init__(self, options = {}, components = [], graph = None):
166
- ...
167
- def render(self, task):
168
- ...
169
- ...
170
-
171
- class TestErrorCard(metaflow.plugins.cards.card_modules.card.MetaflowCard, metaclass=type):
172
- def render(self, task):
173
- ...
174
- ...
175
-
176
- class TestMockCard(metaflow.plugins.cards.card_modules.card.MetaflowCard, metaclass=type):
177
- def __init__(self, options = {"key": "dummy_key"}, **kwargs):
178
- ...
179
- def render(self, task):
180
- ...
181
- ...
182
-
183
- class TestNonEditableCard(metaflow.plugins.cards.card_modules.card.MetaflowCard, metaclass=type):
184
- def __init__(self, options = {}, components = [], graph = None):
185
- ...
186
- def render(self, task):
187
- ...
188
- ...
189
-
190
- class TestPathSpecCard(metaflow.plugins.cards.card_modules.card.MetaflowCard, metaclass=type):
191
- def render(self, task):
192
- ...
193
- ...
194
-
195
- class TestTimeoutCard(metaflow.plugins.cards.card_modules.card.MetaflowCard, metaclass=type):
196
- def __init__(self, options = {"timeout": 50}, **kwargs):
197
- ...
198
- def render(self, task):
199
- ...
200
- ...
201
-
202
- class TestRefreshCard(metaflow.plugins.cards.card_modules.card.MetaflowCard, metaclass=type):
203
- """
204
- This card takes no components and helps test the `current.card.refresh(data)` interface.
205
- """
206
- def render(self, task) -> str:
207
- ...
208
- def render_runtime(self, task, data):
209
- ...
210
- def refresh(self, task, data):
211
- ...
212
- ...
213
-
214
- class TestRefreshComponentCard(metaflow.plugins.cards.card_modules.card.MetaflowCard, metaclass=type):
215
- """
216
- This card takes components and helps test the `current.card.components["A"].update()`
217
- interface
218
- """
219
- def __init__(self, options = {}, components = [], graph = None):
220
- ...
221
- def render(self, task) -> str:
222
- ...
223
- def render_runtime(self, task, data):
224
- ...
225
- def refresh(self, task, data):
226
- ...
227
- def reload_content_token(self, task, data):
228
- ...
229
- ...
230
-
231
118
  CARDS: list
232
119
 
@@ -1,9 +1,13 @@
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.388841 #
5
- ##################################################################################
1
+ ######################################################################################################
2
+ # Auto-generated Metaflow stub file #
3
+ # MF version: 2.12.30.2+obcheckpoint(0.1.4);ob(v1) #
4
+ # Generated on 2024-11-21T22:12:20.831147 #
5
+ ######################################################################################################
6
6
 
7
7
  from __future__ import annotations
8
8
 
9
9
 
10
+ from . import exception as exception
11
+ from . import airflow_utils as airflow_utils
12
+ from . import sensors as sensors
13
+
@@ -1,12 +1,13 @@
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.428066 #
5
- ##################################################################################
1
+ ######################################################################################################
2
+ # Auto-generated Metaflow stub file #
3
+ # MF version: 2.12.30.2+obcheckpoint(0.1.4);ob(v1) #
4
+ # Generated on 2024-11-21T22:12:20.862916 #
5
+ ######################################################################################################
6
6
 
7
7
  from __future__ import annotations
8
8
 
9
9
 
10
+
10
11
  TASK_ID_XCOM_KEY: str
11
12
 
12
13
  FOREACH_CARDINALITY_XCOM_KEY: str
@@ -98,7 +99,7 @@ def get_metaflow_kubernetes_operator():
98
99
  ...
99
100
 
100
101
  class AirflowTask(object, metaclass=type):
101
- def __init__(self, name, operator_type = "kubernetes", flow_name = None, is_mapper_node = False, flow_contains_foreach = False):
102
+ def __init__(self, name, operator_type = 'kubernetes', flow_name = None, is_mapper_node = False, flow_contains_foreach = False):
102
103
  ...
103
104
  @property
104
105
  def is_mapper_node(self):
@@ -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.427028 #
5
- ##################################################################################
1
+ ######################################################################################################
2
+ # Auto-generated Metaflow stub file #
3
+ # MF version: 2.12.30.2+obcheckpoint(0.1.4);ob(v1) #
4
+ # Generated on 2024-11-21T22:12:20.862041 #
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 AirflowException(metaflow.exception.MetaflowException, metaclass=type):
21
17
  def __init__(self, msg):
@@ -1,104 +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.428360 #
5
- ##################################################################################
1
+ ######################################################################################################
2
+ # Auto-generated Metaflow stub file #
3
+ # MF version: 2.12.30.2+obcheckpoint(0.1.4);ob(v1) #
4
+ # Generated on 2024-11-21T22:12:20.863167 #
5
+ ######################################################################################################
6
6
 
7
7
  from __future__ import annotations
8
8
 
9
- import typing
10
- if typing.TYPE_CHECKING:
11
- import metaflow.plugins.airflow.sensors.base_sensor
12
9
 
13
- class ExternalTaskSensorDecorator(metaflow.plugins.airflow.sensors.base_sensor.AirflowSensorDecorator, metaclass=type):
14
- """
15
- The `@airflow_external_task_sensor` decorator attaches a Airflow [ExternalTaskSensor](https://airflow.apache.org/docs/apache-airflow/stable/_api/airflow/sensors/external_task/index.html#airflow.sensors.external_task.ExternalTaskSensor) before the start step of the flow.
16
- This decorator only works when a flow is scheduled on Airflow and is compiled using `airflow create`. More than one `@airflow_external_task_sensor` can be added as a flow decorators. Adding more than one decorator will ensure that `start` step starts only after all sensors finish.
17
-
18
- Parameters
19
- ----------
20
- timeout : int
21
- Time, in seconds before the task times out and fails. (Default: 3600)
22
- poke_interval : int
23
- Time in seconds that the job should wait in between each try. (Default: 60)
24
- mode : str
25
- How the sensor operates. Options are: { poke | reschedule }. (Default: "poke")
26
- exponential_backoff : bool
27
- allow progressive longer waits between pokes by using exponential backoff algorithm. (Default: True)
28
- pool : str
29
- the slot pool this task should run in,
30
- slot pools are a way to limit concurrency for certain tasks. (Default:None)
31
- soft_fail : bool
32
- Set to true to mark the task as SKIPPED on failure. (Default: False)
33
- name : str
34
- Name of the sensor on Airflow
35
- description : str
36
- Description of sensor in the Airflow UI
37
- external_dag_id : str
38
- The dag_id that contains the task you want to wait for.
39
- external_task_ids : List[str]
40
- The list of task_ids that you want to wait for.
41
- If None (default value) the sensor waits for the DAG. (Default: None)
42
- allowed_states : List[str]
43
- Iterable of allowed states, (Default: ['success'])
44
- failed_states : List[str]
45
- Iterable of failed or dis-allowed states. (Default: None)
46
- execution_delta : datetime.timedelta
47
- time difference with the previous execution to look at,
48
- the default is the same logical date as the current task or DAG. (Default: None)
49
- check_existence: bool
50
- Set to True to check if the external task exists or check if
51
- the DAG to wait for exists. (Default: True)
52
- """
53
- def serialize_operator_args(self):
54
- ...
55
- def validate(self, flow):
56
- ...
57
- ...
58
-
59
- class S3KeySensorDecorator(metaflow.plugins.airflow.sensors.base_sensor.AirflowSensorDecorator, metaclass=type):
60
- """
61
- The `@airflow_s3_key_sensor` decorator attaches a Airflow [S3KeySensor](https://airflow.apache.org/docs/apache-airflow-providers-amazon/stable/_api/airflow/providers/amazon/aws/sensors/s3/index.html#airflow.providers.amazon.aws.sensors.s3.S3KeySensor)
62
- before the start step of the flow. This decorator only works when a flow is scheduled on Airflow
63
- and is compiled using `airflow create`. More than one `@airflow_s3_key_sensor` can be
64
- added as a flow decorators. Adding more than one decorator will ensure that `start` step
65
- starts only after all sensors finish.
66
-
67
- Parameters
68
- ----------
69
- timeout : int
70
- Time, in seconds before the task times out and fails. (Default: 3600)
71
- poke_interval : int
72
- Time in seconds that the job should wait in between each try. (Default: 60)
73
- mode : str
74
- How the sensor operates. Options are: { poke | reschedule }. (Default: "poke")
75
- exponential_backoff : bool
76
- allow progressive longer waits between pokes by using exponential backoff algorithm. (Default: True)
77
- pool : str
78
- the slot pool this task should run in,
79
- slot pools are a way to limit concurrency for certain tasks. (Default:None)
80
- soft_fail : bool
81
- Set to true to mark the task as SKIPPED on failure. (Default: False)
82
- name : str
83
- Name of the sensor on Airflow
84
- description : str
85
- Description of sensor in the Airflow UI
86
- bucket_key : Union[str, List[str]]
87
- The key(s) being waited on. Supports full s3:// style url or relative path from root level.
88
- When it's specified as a full s3:// url, please leave `bucket_name` as None
89
- bucket_name : str
90
- Name of the S3 bucket. Only needed when bucket_key is not provided as a full s3:// url.
91
- When specified, all the keys passed to bucket_key refers to this bucket. (Default:None)
92
- wildcard_match : bool
93
- whether the bucket_key should be interpreted as a Unix wildcard pattern. (Default: False)
94
- aws_conn_id : str
95
- a reference to the s3 connection on Airflow. (Default: None)
96
- verify : bool
97
- Whether or not to verify SSL certificates for S3 connection. (Default: None)
98
- """
99
- def validate(self, flow):
100
- ...
101
- ...
10
+ from . import base_sensor as base_sensor
11
+ from . import external_task_sensor as external_task_sensor
12
+ from .external_task_sensor import ExternalTaskSensorDecorator as ExternalTaskSensorDecorator
13
+ from . import s3_sensor as s3_sensor
14
+ from .s3_sensor import S3KeySensorDecorator as S3KeySensorDecorator
102
15
 
103
16
  SUPPORTED_SENSORS: list
104
17
 
@@ -1,40 +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.438628 #
5
- ##################################################################################
1
+ ######################################################################################################
2
+ # Auto-generated Metaflow stub file #
3
+ # MF version: 2.12.30.2+obcheckpoint(0.1.4);ob(v1) #
4
+ # Generated on 2024-11-21T22:12:20.874670 #
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
- import metaflow.exception
13
13
 
14
- class AirflowException(metaflow.exception.MetaflowException, metaclass=type):
15
- def __init__(self, msg):
16
- ...
17
- ...
18
-
19
- class AirflowTask(object, metaclass=type):
20
- def __init__(self, name, operator_type = "kubernetes", flow_name = None, is_mapper_node = False, flow_contains_foreach = False):
21
- ...
22
- @property
23
- def is_mapper_node(self):
24
- ...
25
- def set_operator_args(self, **kwargs):
26
- ...
27
- def to_dict(self):
28
- ...
29
- @classmethod
30
- def from_dict(cls, task_dict, flow_name = None, flow_contains_foreach = False):
31
- ...
32
- def to_task(self):
33
- ...
34
- ...
35
-
36
- def id_creator(val, hash_len):
37
- ...
14
+ from ..exception import AirflowException as AirflowException
15
+ from ..airflow_utils import AirflowTask as AirflowTask
16
+ from ..airflow_utils import id_creator as id_creator
38
17
 
39
18
  TASK_ID_HASH_LEN: int
40
19
 
@@ -1,50 +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.439038 #
5
- ##################################################################################
1
+ ######################################################################################################
2
+ # Auto-generated Metaflow stub file #
3
+ # MF version: 2.12.30.2+obcheckpoint(0.1.4);ob(v1) #
4
+ # Generated on 2024-11-21T22:12:20.874932 #
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.plugins.airflow.sensors.base_sensor
13
- import metaflow.exception
14
13
 
15
- class AirflowSensorDecorator(metaflow.decorators.FlowDecorator, metaclass=type):
16
- """
17
- Base class for all Airflow sensor decorators.
18
- """
19
- def __init__(self, *args, **kwargs):
20
- ...
21
- def serialize_operator_args(self):
22
- """
23
- Subclasses will parse the decorator arguments to
24
- Airflow task serializable arguments.
25
- """
26
- ...
27
- def create_task(self):
28
- ...
29
- def validate(self, flow):
30
- """
31
- Validate if the arguments for the sensor are correct.
32
- """
33
- ...
34
- def flow_init(self, flow, graph, environment, flow_datastore, metadata, logger, echo, options):
35
- ...
36
- ...
37
-
38
- class SensorNames(object, metaclass=type):
39
- @classmethod
40
- def get_supported_sensors(cls):
41
- ...
42
- ...
43
-
44
- class AirflowException(metaflow.exception.MetaflowException, metaclass=type):
45
- def __init__(self, msg):
46
- ...
47
- ...
14
+ from .base_sensor import AirflowSensorDecorator as AirflowSensorDecorator
15
+ from ..airflow_utils import SensorNames as SensorNames
16
+ from ..exception import AirflowException as AirflowException
48
17
 
49
18
  AIRFLOW_STATES: dict
50
19
 
@@ -1,50 +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.439414 #
5
- ##################################################################################
1
+ ######################################################################################################
2
+ # Auto-generated Metaflow stub file #
3
+ # MF version: 2.12.30.2+obcheckpoint(0.1.4);ob(v1) #
4
+ # Generated on 2024-11-21T22:12:20.875161 #
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.plugins.airflow.sensors.base_sensor
13
- import metaflow.exception
14
13
 
15
- class AirflowSensorDecorator(metaflow.decorators.FlowDecorator, metaclass=type):
16
- """
17
- Base class for all Airflow sensor decorators.
18
- """
19
- def __init__(self, *args, **kwargs):
20
- ...
21
- def serialize_operator_args(self):
22
- """
23
- Subclasses will parse the decorator arguments to
24
- Airflow task serializable arguments.
25
- """
26
- ...
27
- def create_task(self):
28
- ...
29
- def validate(self, flow):
30
- """
31
- Validate if the arguments for the sensor are correct.
32
- """
33
- ...
34
- def flow_init(self, flow, graph, environment, flow_datastore, metadata, logger, echo, options):
35
- ...
36
- ...
37
-
38
- class SensorNames(object, metaclass=type):
39
- @classmethod
40
- def get_supported_sensors(cls):
41
- ...
42
- ...
43
-
44
- class AirflowException(metaflow.exception.MetaflowException, metaclass=type):
45
- def __init__(self, msg):
46
- ...
47
- ...
14
+ from .base_sensor import AirflowSensorDecorator as AirflowSensorDecorator
15
+ from ..airflow_utils import SensorNames as SensorNames
16
+ from ..exception import AirflowException as AirflowException
48
17
 
49
18
  class S3KeySensorDecorator(metaflow.plugins.airflow.sensors.base_sensor.AirflowSensorDecorator, metaclass=type):
50
19
  """
@@ -1,9 +1,16 @@
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.387038 #
5
- ##################################################################################
1
+ ######################################################################################################
2
+ # Auto-generated Metaflow stub file #
3
+ # MF version: 2.12.30.2+obcheckpoint(0.1.4);ob(v1) #
4
+ # Generated on 2024-11-21T22:12:20.829512 #
5
+ ######################################################################################################
6
6
 
7
7
  from __future__ import annotations
8
8
 
9
9
 
10
+ from . import argo_events as argo_events
11
+ from . import argo_workflows_decorator as argo_workflows_decorator
12
+ from . import argo_workflows_deployer as argo_workflows_deployer
13
+ from . import argo_client as argo_client
14
+ from . import argo_workflows as argo_workflows
15
+ from . import argo_workflows_cli as argo_workflows_cli
16
+