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,209 @@
1
+ ##################################################################################
2
+ # Auto-generated Metaflow stub file #
3
+ # MF version: 2.11.4.1 #
4
+ # Generated on 2024-02-28T05:30:43.905896 #
5
+ ##################################################################################
6
+
7
+ from __future__ import annotations
8
+
9
+ import typing
10
+ if typing.TYPE_CHECKING:
11
+ import metaflow.unbounded_foreach
12
+ import metaflow.plugins.cards.card_modules.card
13
+
14
+ CLIS_DESC: list
15
+
16
+ class InternalTestUnboundedForeachInput(metaflow.unbounded_foreach.UnboundedForeachInput, metaclass=type):
17
+ def __init__(self, iterable):
18
+ ...
19
+ def __iter__(self):
20
+ ...
21
+ def __next__(self):
22
+ ...
23
+ def __getitem__(self, key):
24
+ ...
25
+ def __len__(self):
26
+ ...
27
+ def __str__(self):
28
+ ...
29
+ def __repr__(self):
30
+ ...
31
+ ...
32
+
33
+ STEP_DECORATORS_DESC: list
34
+
35
+ FLOW_DECORATORS_DESC: list
36
+
37
+ ENVIRONMENTS_DESC: list
38
+
39
+ METADATA_PROVIDERS_DESC: list
40
+
41
+ DATASTORES_DESC: list
42
+
43
+ SIDECARS_DESC: list
44
+
45
+ LOGGING_SIDECARS_DESC: list
46
+
47
+ MONITOR_SIDECARS_DESC: list
48
+
49
+ AWS_CLIENT_PROVIDERS_DESC: list
50
+
51
+ SENSOR_FLOW_DECORATORS: list
52
+
53
+ SECRETS_PROVIDERS_DESC: list
54
+
55
+ AZURE_CLIENT_PROVIDERS_DESC: list
56
+
57
+ GCP_CLIENT_PROVIDERS_DESC: list
58
+
59
+ def get_plugin_cli():
60
+ ...
61
+
62
+ STEP_DECORATORS: list
63
+
64
+ FLOW_DECORATORS: list
65
+
66
+ ENVIRONMENTS: list
67
+
68
+ METADATA_PROVIDERS: list
69
+
70
+ DATASTORES: list
71
+
72
+ SIDECARS: dict
73
+
74
+ LOGGING_SIDECARS: dict
75
+
76
+ MONITOR_SIDECARS: dict
77
+
78
+ AWS_CLIENT_PROVIDERS: list
79
+
80
+ SECRETS_PROVIDERS: list
81
+
82
+ AZURE_CLIENT_PROVIDERS: list
83
+
84
+ GCP_CLIENT_PROVIDERS: list
85
+
86
+ MF_EXTERNAL_CARDS: list
87
+
88
+ class BlankCard(metaflow.plugins.cards.card_modules.card.MetaflowCard, metaclass=type):
89
+ def __init__(self, options = {"title": ""}, components = [], graph = None):
90
+ ...
91
+ def render(self, task, components = [], runtime = False):
92
+ ...
93
+ def render_runtime(self, task, data):
94
+ ...
95
+ def refresh(self, task, data):
96
+ ...
97
+ def reload_content_token(self, task, data):
98
+ """
99
+ The reload token will change when the component array has changed in the Metaflow card.
100
+ The change in the component array is signified by the change in the component_update_ts.
101
+ """
102
+ ...
103
+ ...
104
+
105
+ class DefaultCard(metaflow.plugins.cards.card_modules.card.MetaflowCard, metaclass=type):
106
+ def __init__(self, options = {"only_repr": True}, components = [], graph = None):
107
+ ...
108
+ def render(self, task, runtime = False):
109
+ ...
110
+ def render_runtime(self, task, data):
111
+ ...
112
+ def refresh(self, task, data):
113
+ ...
114
+ def reload_content_token(self, task, data):
115
+ """
116
+ The reload token will change when the component array has changed in the Metaflow card.
117
+ The change in the component array is signified by the change in the component_update_ts.
118
+ """
119
+ ...
120
+ ...
121
+
122
+ class DefaultCardJSON(metaflow.plugins.cards.card_modules.card.MetaflowCard, metaclass=type):
123
+ def __init__(self, options = {"only_repr": True}, components = [], graph = None):
124
+ ...
125
+ def render(self, task):
126
+ ...
127
+ ...
128
+
129
+ class ErrorCard(metaflow.plugins.cards.card_modules.card.MetaflowCard, metaclass=type):
130
+ def __init__(self, options = {}, components = [], graph = None):
131
+ ...
132
+ def render(self, task, stack_trace = None):
133
+ ...
134
+ ...
135
+
136
+ class TaskSpecCard(metaflow.plugins.cards.card_modules.card.MetaflowCard, metaclass=type):
137
+ def render(self, task):
138
+ ...
139
+ ...
140
+
141
+ class TestEditableCard(metaflow.plugins.cards.card_modules.card.MetaflowCard, metaclass=type):
142
+ def __init__(self, options = {}, components = [], graph = None):
143
+ ...
144
+ def render(self, task):
145
+ ...
146
+ ...
147
+
148
+ class TestEditableCard2(metaflow.plugins.cards.card_modules.card.MetaflowCard, metaclass=type):
149
+ def __init__(self, options = {}, components = [], graph = None):
150
+ ...
151
+ def render(self, task):
152
+ ...
153
+ ...
154
+
155
+ class TestErrorCard(metaflow.plugins.cards.card_modules.card.MetaflowCard, metaclass=type):
156
+ def render(self, task):
157
+ ...
158
+ ...
159
+
160
+ class TestMockCard(metaflow.plugins.cards.card_modules.card.MetaflowCard, metaclass=type):
161
+ def __init__(self, options = {"key": "dummy_key"}, **kwargs):
162
+ ...
163
+ def render(self, task):
164
+ ...
165
+ ...
166
+
167
+ class TestNonEditableCard(metaflow.plugins.cards.card_modules.card.MetaflowCard, metaclass=type):
168
+ def __init__(self, options = {}, components = [], graph = None):
169
+ ...
170
+ def render(self, task):
171
+ ...
172
+ ...
173
+
174
+ class TestPathSpecCard(metaflow.plugins.cards.card_modules.card.MetaflowCard, metaclass=type):
175
+ def render(self, task):
176
+ ...
177
+ ...
178
+
179
+ class TestTimeoutCard(metaflow.plugins.cards.card_modules.card.MetaflowCard, metaclass=type):
180
+ def __init__(self, options = {"timeout": 50}, **kwargs):
181
+ ...
182
+ def render(self, task):
183
+ ...
184
+ ...
185
+
186
+ class TestRefreshCard(metaflow.plugins.cards.card_modules.card.MetaflowCard, metaclass=type):
187
+ def render(self, task) -> str:
188
+ ...
189
+ def render_runtime(self, task, data):
190
+ ...
191
+ def refresh(self, task, data):
192
+ ...
193
+ ...
194
+
195
+ class TestRefreshComponentCard(metaflow.plugins.cards.card_modules.card.MetaflowCard, metaclass=type):
196
+ def __init__(self, options = {}, components = [], graph = None):
197
+ ...
198
+ def render(self, task) -> str:
199
+ ...
200
+ def render_runtime(self, task, data):
201
+ ...
202
+ def refresh(self, task, data):
203
+ ...
204
+ def reload_content_token(self, task, data):
205
+ ...
206
+ ...
207
+
208
+ CARDS: list
209
+
@@ -0,0 +1,9 @@
1
+ ##################################################################################
2
+ # Auto-generated Metaflow stub file #
3
+ # MF version: 2.11.4.1 #
4
+ # Generated on 2024-02-28T05:30:43.930570 #
5
+ ##################################################################################
6
+
7
+ from __future__ import annotations
8
+
9
+
@@ -0,0 +1,179 @@
1
+ ##################################################################################
2
+ # Auto-generated Metaflow stub file #
3
+ # MF version: 2.11.4.1 #
4
+ # Generated on 2024-02-28T05:30:43.987215 #
5
+ ##################################################################################
6
+
7
+ from __future__ import annotations
8
+
9
+ import typing
10
+ if typing.TYPE_CHECKING:
11
+ import metaflow.metaflow_current
12
+ import metaflow._vendor.click.types
13
+ import metaflow.exception
14
+
15
+ current: metaflow.metaflow_current.Current
16
+
17
+ class MetaflowException(Exception, metaclass=type):
18
+ def __init__(self, msg = "", lineno = None):
19
+ ...
20
+ def __str__(self):
21
+ ...
22
+ ...
23
+
24
+ class FilePathClass(metaflow._vendor.click.types.ParamType, metaclass=type):
25
+ def __init__(self, is_text, encoding):
26
+ ...
27
+ def convert(self, value, param, ctx):
28
+ ...
29
+ def __str__(self):
30
+ ...
31
+ def __repr__(self):
32
+ ...
33
+ ...
34
+
35
+ AIRFLOW_KUBERNETES_CONN_ID: None
36
+
37
+ AIRFLOW_KUBERNETES_KUBECONFIG_CONTEXT: None
38
+
39
+ AIRFLOW_KUBERNETES_KUBECONFIG_FILE: None
40
+
41
+ AIRFLOW_KUBERNETES_STARTUP_TIMEOUT_SECONDS: int
42
+
43
+ AWS_SECRETS_MANAGER_DEFAULT_REGION: None
44
+
45
+ AZURE_STORAGE_BLOB_SERVICE_ENDPOINT: None
46
+
47
+ CARD_AZUREROOT: None
48
+
49
+ CARD_GSROOT: None
50
+
51
+ CARD_S3ROOT: None
52
+
53
+ DATASTORE_SYSROOT_AZURE: None
54
+
55
+ DATASTORE_SYSROOT_GS: None
56
+
57
+ DATASTORE_SYSROOT_S3: None
58
+
59
+ DATATOOLS_S3ROOT: None
60
+
61
+ DEFAULT_SECRETS_BACKEND_TYPE: None
62
+
63
+ KUBERNETES_SECRETS: str
64
+
65
+ KUBERNETES_SERVICE_ACCOUNT: None
66
+
67
+ S3_ENDPOINT_URL: None
68
+
69
+ SERVICE_HEADERS: dict
70
+
71
+ SERVICE_INTERNAL_URL: None
72
+
73
+ class DelayedEvaluationParameter(object, metaclass=type):
74
+ def __init__(self, name, field, fun):
75
+ ...
76
+ def __call__(self, return_str = False):
77
+ ...
78
+ ...
79
+
80
+ class JSONTypeClass(metaflow._vendor.click.types.ParamType, metaclass=type):
81
+ def convert(self, value, param, ctx):
82
+ ...
83
+ def __str__(self):
84
+ ...
85
+ def __repr__(self):
86
+ ...
87
+ ...
88
+
89
+ def deploy_time_eval(value):
90
+ ...
91
+
92
+ class Kubernetes(object, metaclass=type):
93
+ def __init__(self, datastore, metadata, environment):
94
+ ...
95
+ def launch_job(self, **kwargs):
96
+ ...
97
+ def create_job(self, flow_name, run_id, step_name, task_id, attempt, user, code_package_sha, code_package_url, code_package_ds, step_cli, docker_image, docker_image_pull_policy, service_account = None, secrets = None, node_selector = None, namespace = None, cpu = None, gpu = None, gpu_vendor = None, disk = None, memory = None, use_tmpfs = None, tmpfs_tempdir = None, tmpfs_size = None, tmpfs_path = None, run_time_limit = None, env = None, persistent_volume_claims = None, tolerations = None, labels = None, annotations = None, num_parallel = 0, attrs = {}, port = None, shared_memory = None):
98
+ ...
99
+ def wait(self, stdout_location, stderr_location, echo = None):
100
+ ...
101
+ ...
102
+
103
+ def get_run_time_limit_for_task(step_decos):
104
+ ...
105
+
106
+ class AIRFLOW_MACROS(object, metaclass=type):
107
+ @classmethod
108
+ def create_task_id(cls, is_foreach):
109
+ ...
110
+ @classmethod
111
+ def pathspec(cls, flowname, is_foreach = False):
112
+ ...
113
+ ...
114
+
115
+ TASK_ID_XCOM_KEY: str
116
+
117
+ class AirflowTask(object, metaclass=type):
118
+ def __init__(self, name, operator_type = "kubernetes", flow_name = None, is_mapper_node = False, flow_contains_foreach = False):
119
+ ...
120
+ @property
121
+ def is_mapper_node(self):
122
+ ...
123
+ def set_operator_args(self, **kwargs):
124
+ ...
125
+ def to_dict(self):
126
+ ...
127
+ @classmethod
128
+ def from_dict(cls, task_dict, flow_name = None, flow_contains_foreach = False):
129
+ ...
130
+ def to_task(self):
131
+ ...
132
+ ...
133
+
134
+ class Workflow(object, metaclass=type):
135
+ def __init__(self, file_path = None, graph_structure = None, metadata = None, **kwargs):
136
+ ...
137
+ def set_parameters(self, params):
138
+ ...
139
+ def add_state(self, state):
140
+ ...
141
+ def to_dict(self):
142
+ ...
143
+ def to_json(self):
144
+ ...
145
+ @classmethod
146
+ def from_dict(cls, data_dict):
147
+ ...
148
+ @classmethod
149
+ def from_json(cls, json_string):
150
+ ...
151
+ def compile(self):
152
+ ...
153
+ ...
154
+
155
+ class AirflowException(metaflow.exception.MetaflowException, metaclass=type):
156
+ def __init__(self, msg):
157
+ ...
158
+ ...
159
+
160
+ SUPPORTED_SENSORS: list
161
+
162
+ AIRFLOW_DEPLOY_TEMPLATE_FILE: str
163
+
164
+ class Airflow(object, metaclass=type):
165
+ def __init__(self, name, graph, flow, code_package_sha, code_package_url, metadata, flow_datastore, environment, event_logger, monitor, production_token, tags = None, namespace = None, username = None, max_workers = None, worker_pool = None, description = None, file_path = None, workflow_timeout = None, is_paused_upon_creation = True):
166
+ ...
167
+ @classmethod
168
+ def get_existing_deployment(cls, name, flow_datastore):
169
+ ...
170
+ @classmethod
171
+ def get_token_path(cls, name):
172
+ ...
173
+ @classmethod
174
+ def save_deployment_token(cls, owner, name, token, flow_datastore):
175
+ ...
176
+ def compile(self):
177
+ ...
178
+ ...
179
+
@@ -0,0 +1,90 @@
1
+ ##################################################################################
2
+ # Auto-generated Metaflow stub file #
3
+ # MF version: 2.11.4.1 #
4
+ # Generated on 2024-02-28T05:30:43.988639 #
5
+ ##################################################################################
6
+
7
+ from __future__ import annotations
8
+
9
+ import typing
10
+ if typing.TYPE_CHECKING:
11
+ import metaflow.metaflow_current
12
+ import metaflow.decorators
13
+ import metaflow.exception
14
+
15
+ current: metaflow.metaflow_current.Current
16
+
17
+ class MetaflowException(Exception, metaclass=type):
18
+ def __init__(self, msg = "", lineno = None):
19
+ ...
20
+ def __str__(self):
21
+ ...
22
+ ...
23
+
24
+ class MetaflowInternalError(metaflow.exception.MetaflowException, metaclass=type):
25
+ ...
26
+
27
+ def load_token(token_prefix):
28
+ ...
29
+
30
+ def new_token(token_prefix, prev_token = None):
31
+ ...
32
+
33
+ def store_token(token_prefix, token):
34
+ ...
35
+
36
+ class KubernetesDecorator(metaflow.decorators.StepDecorator, metaclass=type):
37
+ def __init__(self, attributes = None, statically_defined = False):
38
+ ...
39
+ def step_init(self, flow, graph, step, decos, environment, flow_datastore, logger):
40
+ ...
41
+ def package_init(self, flow, step_name, environment):
42
+ ...
43
+ def runtime_init(self, flow, graph, package, run_id):
44
+ ...
45
+ def runtime_task_created(self, task_datastore, task_id, split_index, input_paths, is_cloned, ubf_context):
46
+ ...
47
+ def runtime_step_cli(self, cli_args, retry_count, max_user_code_retries, ubf_context):
48
+ ...
49
+ def task_pre_step(self, step_name, task_datastore, metadata, run_id, task_id, flow, graph, retry_count, max_retries, ubf_context, inputs):
50
+ ...
51
+ def task_finished(self, step_name, flow, graph, is_task_ok, retry_count, max_retries):
52
+ ...
53
+ ...
54
+
55
+ class Airflow(object, metaclass=type):
56
+ def __init__(self, name, graph, flow, code_package_sha, code_package_url, metadata, flow_datastore, environment, event_logger, monitor, production_token, tags = None, namespace = None, username = None, max_workers = None, worker_pool = None, description = None, file_path = None, workflow_timeout = None, is_paused_upon_creation = True):
57
+ ...
58
+ @classmethod
59
+ def get_existing_deployment(cls, name, flow_datastore):
60
+ ...
61
+ @classmethod
62
+ def get_token_path(cls, name):
63
+ ...
64
+ @classmethod
65
+ def save_deployment_token(cls, owner, name, token, flow_datastore):
66
+ ...
67
+ def compile(self):
68
+ ...
69
+ ...
70
+
71
+ class AirflowException(metaflow.exception.MetaflowException, metaclass=type):
72
+ def __init__(self, msg):
73
+ ...
74
+ ...
75
+
76
+ class NotSupportedException(metaflow.exception.MetaflowException, metaclass=type):
77
+ ...
78
+
79
+ class IncorrectProductionToken(metaflow.exception.MetaflowException, metaclass=type):
80
+ ...
81
+
82
+ def resolve_token(name, token_prefix, obj, authorize, given_token, generate_new_token, is_project):
83
+ ...
84
+
85
+ def make_flow(obj, dag_name, production_token, tags, is_paused_upon_creation, namespace, max_workers, workflow_timeout, worker_pool, file):
86
+ ...
87
+
88
+ def resolve_dag_name(name):
89
+ ...
90
+
@@ -0,0 +1,50 @@
1
+ ##################################################################################
2
+ # Auto-generated Metaflow stub file #
3
+ # MF version: 2.11.4.1 #
4
+ # Generated on 2024-02-28T05:30:43.984431 #
5
+ ##################################################################################
6
+
7
+ from __future__ import annotations
8
+
9
+ import typing
10
+ if typing.TYPE_CHECKING:
11
+ import metaflow.decorators
12
+
13
+ class MetaDatum(tuple, metaclass=type):
14
+ @staticmethod
15
+ def __new__(_cls, field, value, type, tags):
16
+ """
17
+ Create new instance of MetaDatum(field, value, type, tags)
18
+ """
19
+ ...
20
+ def __repr__(self):
21
+ """
22
+ Return a nicely formatted representation string
23
+ """
24
+ ...
25
+ def __getnewargs__(self):
26
+ """
27
+ Return self as a plain tuple. Used by copy and pickle.
28
+ """
29
+ ...
30
+ ...
31
+
32
+ TASK_ID_XCOM_KEY: str
33
+
34
+ FOREACH_CARDINALITY_XCOM_KEY: str
35
+
36
+ K8S_XCOM_DIR_PATH: str
37
+
38
+ def safe_mkdir(dir):
39
+ ...
40
+
41
+ def push_xcom_values(xcom_dict):
42
+ ...
43
+
44
+ class AirflowInternalDecorator(metaflow.decorators.StepDecorator, metaclass=type):
45
+ def task_pre_step(self, step_name, task_datastore, metadata, run_id, task_id, flow, graph, retry_count, max_user_code_retries, ubf_context, inputs):
46
+ ...
47
+ def task_finished(self, step_name, flow, graph, is_task_ok, retry_count, max_user_code_retries):
48
+ ...
49
+ ...
50
+
@@ -0,0 +1,137 @@
1
+ ##################################################################################
2
+ # Auto-generated Metaflow stub file #
3
+ # MF version: 2.11.4.1 #
4
+ # Generated on 2024-02-28T05:30:43.983898 #
5
+ ##################################################################################
6
+
7
+ from __future__ import annotations
8
+
9
+
10
+ TASK_ID_XCOM_KEY: str
11
+
12
+ FOREACH_CARDINALITY_XCOM_KEY: str
13
+
14
+ FOREACH_XCOM_KEY: str
15
+
16
+ RUN_HASH_ID_LEN: int
17
+
18
+ TASK_ID_HASH_LEN: int
19
+
20
+ RUN_ID_PREFIX: str
21
+
22
+ AIRFLOW_FOREACH_SUPPORT_VERSION: str
23
+
24
+ AIRFLOW_MIN_SUPPORT_VERSION: str
25
+
26
+ KUBERNETES_PROVIDER_FOREACH_VERSION: str
27
+
28
+ class KubernetesProviderNotFound(Exception, metaclass=type):
29
+ ...
30
+
31
+ class ForeachIncompatibleException(Exception, metaclass=type):
32
+ ...
33
+
34
+ class IncompatibleVersionException(Exception, metaclass=type):
35
+ def __init__(self, version_number):
36
+ ...
37
+ ...
38
+
39
+ class IncompatibleKubernetesProviderVersionException(Exception, metaclass=type):
40
+ ...
41
+
42
+ class AirflowSensorNotFound(Exception, metaclass=type):
43
+ ...
44
+
45
+ def create_absolute_version_number(version):
46
+ ...
47
+
48
+ def get_kubernetes_provider_version():
49
+ ...
50
+
51
+ def datetimeparse(isotimestamp):
52
+ ...
53
+
54
+ def get_xcom_arg_class():
55
+ ...
56
+
57
+ class AIRFLOW_MACROS(object, metaclass=type):
58
+ @classmethod
59
+ def create_task_id(cls, is_foreach):
60
+ ...
61
+ @classmethod
62
+ def pathspec(cls, flowname, is_foreach = False):
63
+ ...
64
+ ...
65
+
66
+ class SensorNames(object, metaclass=type):
67
+ @classmethod
68
+ def get_supported_sensors(cls):
69
+ ...
70
+ ...
71
+
72
+ def run_id_creator(val):
73
+ ...
74
+
75
+ def task_id_creator(val):
76
+ ...
77
+
78
+ def id_creator(val, hash_len):
79
+ ...
80
+
81
+ def json_dump(val):
82
+ ...
83
+
84
+ class AirflowDAGArgs(object, metaclass=type):
85
+ def __init__(self, **kwargs):
86
+ ...
87
+ @property
88
+ def arguments(self):
89
+ ...
90
+ def serialize(self):
91
+ ...
92
+ @classmethod
93
+ def deserialize(cls, data_dict):
94
+ ...
95
+ ...
96
+
97
+ def get_metaflow_kubernetes_operator():
98
+ ...
99
+
100
+ 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
+ ...
103
+ @property
104
+ def is_mapper_node(self):
105
+ ...
106
+ def set_operator_args(self, **kwargs):
107
+ ...
108
+ def to_dict(self):
109
+ ...
110
+ @classmethod
111
+ def from_dict(cls, task_dict, flow_name = None, flow_contains_foreach = False):
112
+ ...
113
+ def to_task(self):
114
+ ...
115
+ ...
116
+
117
+ class Workflow(object, metaclass=type):
118
+ def __init__(self, file_path = None, graph_structure = None, metadata = None, **kwargs):
119
+ ...
120
+ def set_parameters(self, params):
121
+ ...
122
+ def add_state(self, state):
123
+ ...
124
+ def to_dict(self):
125
+ ...
126
+ def to_json(self):
127
+ ...
128
+ @classmethod
129
+ def from_dict(cls, data_dict):
130
+ ...
131
+ @classmethod
132
+ def from_json(cls, json_string):
133
+ ...
134
+ def compile(self):
135
+ ...
136
+ ...
137
+
@@ -0,0 +1,27 @@
1
+ ##################################################################################
2
+ # Auto-generated Metaflow stub file #
3
+ # MF version: 2.11.4.1 #
4
+ # Generated on 2024-02-28T05:30:43.984715 #
5
+ ##################################################################################
6
+
7
+ from __future__ import annotations
8
+
9
+ import typing
10
+ if typing.TYPE_CHECKING:
11
+ import metaflow.exception
12
+
13
+ class MetaflowException(Exception, metaclass=type):
14
+ def __init__(self, msg = "", lineno = None):
15
+ ...
16
+ def __str__(self):
17
+ ...
18
+ ...
19
+
20
+ class AirflowException(metaflow.exception.MetaflowException, metaclass=type):
21
+ def __init__(self, msg):
22
+ ...
23
+ ...
24
+
25
+ class NotSupportedException(metaflow.exception.MetaflowException, metaclass=type):
26
+ ...
27
+