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,220 @@
1
+ ##################################################################################
2
+ # Auto-generated Metaflow stub file #
3
+ # MF version: 2.11.4.1 #
4
+ # Generated on 2024-02-28T05:30:44.008833 #
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
+ EVENTS_SFN_ACCESS_IAM_ROLE: None
21
+
22
+ S3_ENDPOINT_URL: None
23
+
24
+ SFN_DYNAMO_DB_TABLE: None
25
+
26
+ SFN_EXECUTION_LOG_GROUP_ARN: None
27
+
28
+ SFN_IAM_ROLE: None
29
+
30
+ SFN_S3_DISTRIBUTED_MAP_OUTPUT_PATH: None
31
+
32
+ def deploy_time_eval(value):
33
+ ...
34
+
35
+ class Batch(object, metaclass=type):
36
+ def __init__(self, metadata, environment):
37
+ ...
38
+ def list_jobs(self, flow_name, run_id, user, echo):
39
+ ...
40
+ def kill_jobs(self, flow_name, run_id, user, echo):
41
+ ...
42
+ def create_job(self, step_name, step_cli, task_spec, code_package_sha, code_package_url, code_package_ds, image, queue, iam_role = None, execution_role = None, cpu = None, gpu = None, memory = None, run_time_limit = None, shared_memory = None, max_swap = None, swappiness = None, inferentia = None, efa = None, env = {}, attrs = {}, host_volumes = None, efs_volumes = None, use_tmpfs = None, tmpfs_tempdir = None, tmpfs_size = None, tmpfs_path = None, num_parallel = 0):
43
+ ...
44
+ def launch_job(self, step_name, step_cli, task_spec, code_package_sha, code_package_url, code_package_ds, image, queue, iam_role = None, execution_role = None, cpu = None, gpu = None, memory = None, run_time_limit = None, shared_memory = None, max_swap = None, swappiness = None, inferentia = None, efa = None, host_volumes = None, efs_volumes = None, use_tmpfs = None, tmpfs_tempdir = None, tmpfs_size = None, tmpfs_path = None, num_parallel = 0, env = {}, attrs = {}):
45
+ ...
46
+ def wait(self, stdout_location, stderr_location, echo = None):
47
+ ...
48
+ ...
49
+
50
+ class EventBridgeClient(object, metaclass=type):
51
+ def __init__(self, name):
52
+ ...
53
+ def cron(self, cron):
54
+ ...
55
+ def role_arn(self, role_arn):
56
+ ...
57
+ def state_machine_arn(self, state_machine_arn):
58
+ ...
59
+ def schedule(self):
60
+ ...
61
+ def delete(self):
62
+ ...
63
+ ...
64
+
65
+ class StepFunctionsClient(object, metaclass=type):
66
+ def __init__(self):
67
+ ...
68
+ def search(self, name):
69
+ ...
70
+ def push(self, name, definition, role_arn, log_execution_history):
71
+ ...
72
+ def get(self, name):
73
+ ...
74
+ def trigger(self, state_machine_arn, input):
75
+ ...
76
+ def list_executions(self, state_machine_arn, states):
77
+ ...
78
+ def terminate_execution(self, execution_arn):
79
+ ...
80
+ def get_state_machine_arn(self, name):
81
+ ...
82
+ def delete(self, name):
83
+ ...
84
+ ...
85
+
86
+ class StepFunctionsException(metaflow.exception.MetaflowException, metaclass=type):
87
+ ...
88
+
89
+ class StepFunctionsSchedulingException(metaflow.exception.MetaflowException, metaclass=type):
90
+ ...
91
+
92
+ class StepFunctions(object, metaclass=type):
93
+ def __init__(self, name, graph, flow, code_package_sha, code_package_url, production_token, metadata, flow_datastore, environment, event_logger, monitor, tags = None, namespace = None, username = None, max_workers = None, workflow_timeout = None, is_project = False, use_distributed_map = False):
94
+ ...
95
+ def to_json(self):
96
+ ...
97
+ def trigger_explanation(self):
98
+ ...
99
+ def deploy(self, log_execution_history):
100
+ ...
101
+ def schedule(self):
102
+ ...
103
+ @classmethod
104
+ def delete(cls, name):
105
+ ...
106
+ @classmethod
107
+ def terminate(cls, flow_name, name):
108
+ ...
109
+ @classmethod
110
+ def trigger(cls, name, parameters):
111
+ ...
112
+ @classmethod
113
+ def list(cls, name, states):
114
+ ...
115
+ @classmethod
116
+ def get_existing_deployment(cls, name):
117
+ ...
118
+ @classmethod
119
+ def get_execution(cls, state_machine_name, name):
120
+ ...
121
+ ...
122
+
123
+ class Workflow(object, metaclass=type):
124
+ def __init__(self, name):
125
+ ...
126
+ def mode(self, mode):
127
+ ...
128
+ def start_at(self, start_at):
129
+ ...
130
+ def add_state(self, state):
131
+ ...
132
+ def timeout_seconds(self, timeout_seconds):
133
+ ...
134
+ def to_json(self, pretty = False):
135
+ ...
136
+ ...
137
+
138
+ class State(object, metaclass=type):
139
+ def __init__(self, name):
140
+ ...
141
+ def resource(self, resource):
142
+ ...
143
+ def next(self, state):
144
+ ...
145
+ def end(self):
146
+ ...
147
+ def parameter(self, name, value):
148
+ ...
149
+ def output_path(self, output_path):
150
+ ...
151
+ def result_path(self, result_path):
152
+ ...
153
+ def result_selector(self, name, value):
154
+ ...
155
+ def retry_strategy(self, retry_strategy):
156
+ ...
157
+ def batch(self, job):
158
+ ...
159
+ def dynamo_db(self, table_name, primary_key, values):
160
+ ...
161
+ ...
162
+
163
+ class Pass(object, metaclass=type):
164
+ def __init__(self, name):
165
+ ...
166
+ def end(self):
167
+ ...
168
+ def parameter(self, name, value):
169
+ ...
170
+ def output_path(self, output_path):
171
+ ...
172
+ ...
173
+
174
+ class Parallel(object, metaclass=type):
175
+ def __init__(self, name):
176
+ ...
177
+ def branch(self, workflow):
178
+ ...
179
+ def next(self, state):
180
+ ...
181
+ def output_path(self, output_path):
182
+ ...
183
+ def result_path(self, result_path):
184
+ ...
185
+ ...
186
+
187
+ class Map(object, metaclass=type):
188
+ def __init__(self, name):
189
+ ...
190
+ def iterator(self, workflow):
191
+ ...
192
+ def next(self, state):
193
+ ...
194
+ def items_path(self, items_path):
195
+ ...
196
+ def parameter(self, name, value):
197
+ ...
198
+ def max_concurrency(self, max_concurrency):
199
+ ...
200
+ def output_path(self, output_path):
201
+ ...
202
+ def result_path(self, result_path):
203
+ ...
204
+ def item_reader(self, item_reader):
205
+ ...
206
+ def result_writer(self, bucket, prefix):
207
+ ...
208
+ ...
209
+
210
+ class JSONItemReader(object, metaclass=type):
211
+ def __init__(self):
212
+ ...
213
+ def resource(self, resource):
214
+ ...
215
+ def parameter(self, name, value):
216
+ ...
217
+ def output_path(self, output_path):
218
+ ...
219
+ ...
220
+
@@ -0,0 +1,139 @@
1
+ ##################################################################################
2
+ # Auto-generated Metaflow stub file #
3
+ # MF version: 2.11.4.1 #
4
+ # Generated on 2024-02-28T05:30:44.010735 #
5
+ ##################################################################################
6
+
7
+ from __future__ import annotations
8
+
9
+ import typing
10
+ if typing.TYPE_CHECKING:
11
+ import metaflow.metaflow_current
12
+ import metaflow.exception
13
+ import metaflow.decorators
14
+ import metaflow.parameters
15
+
16
+ JSONType: metaflow.parameters.JSONTypeClass
17
+
18
+ current: metaflow.metaflow_current.Current
19
+
20
+ class MetaflowException(Exception, metaclass=type):
21
+ def __init__(self, msg = "", lineno = None):
22
+ ...
23
+ def __str__(self):
24
+ ...
25
+ ...
26
+
27
+ class MetaflowInternalError(metaflow.exception.MetaflowException, metaclass=type):
28
+ ...
29
+
30
+ SERVICE_VERSION_CHECK: bool
31
+
32
+ SFN_STATE_MACHINE_PREFIX: None
33
+
34
+ UI_URL: None
35
+
36
+ class BatchDecorator(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 runtime_init(self, flow, graph, package, run_id):
42
+ ...
43
+ def runtime_task_created(self, task_datastore, task_id, split_index, input_paths, is_cloned, ubf_context):
44
+ ...
45
+ def runtime_step_cli(self, cli_args, retry_count, max_user_code_retries, ubf_context):
46
+ ...
47
+ def task_pre_step(self, step_name, task_datastore, metadata, run_id, task_id, flow, graph, retry_count, max_retries, ubf_context, inputs):
48
+ ...
49
+ def task_finished(self, step_name, flow, graph, is_task_ok, retry_count, max_retries):
50
+ ...
51
+ ...
52
+
53
+ def validate_tags(tags, existing_tags = None):
54
+ """
55
+ Raises MetaflowTaggingError if invalid based on these rules:
56
+
57
+ Tag set size is too large. But it's OK if tag set is not larger
58
+ than an existing tag set (if provided).
59
+
60
+ Then, we validate each tag. See validate_tag()
61
+ """
62
+ ...
63
+
64
+ def load_token(token_prefix):
65
+ ...
66
+
67
+ def new_token(token_prefix, prev_token = None):
68
+ ...
69
+
70
+ def store_token(token_prefix, token):
71
+ ...
72
+
73
+ class StepFunctions(object, metaclass=type):
74
+ def __init__(self, name, graph, flow, code_package_sha, code_package_url, production_token, metadata, flow_datastore, environment, event_logger, monitor, tags = None, namespace = None, username = None, max_workers = None, workflow_timeout = None, is_project = False, use_distributed_map = False):
75
+ ...
76
+ def to_json(self):
77
+ ...
78
+ def trigger_explanation(self):
79
+ ...
80
+ def deploy(self, log_execution_history):
81
+ ...
82
+ def schedule(self):
83
+ ...
84
+ @classmethod
85
+ def delete(cls, name):
86
+ ...
87
+ @classmethod
88
+ def terminate(cls, flow_name, name):
89
+ ...
90
+ @classmethod
91
+ def trigger(cls, name, parameters):
92
+ ...
93
+ @classmethod
94
+ def list(cls, name, states):
95
+ ...
96
+ @classmethod
97
+ def get_existing_deployment(cls, name):
98
+ ...
99
+ @classmethod
100
+ def get_execution(cls, state_machine_name, name):
101
+ ...
102
+ ...
103
+
104
+ class IncorrectProductionToken(metaflow.exception.MetaflowException, metaclass=type):
105
+ ...
106
+
107
+ class RunIdMismatch(metaflow.exception.MetaflowException, metaclass=type):
108
+ ...
109
+
110
+ class IncorrectMetadataServiceVersion(metaflow.exception.MetaflowException, metaclass=type):
111
+ ...
112
+
113
+ class StepFunctionsStateMachineNameTooLong(metaflow.exception.MetaflowException, metaclass=type):
114
+ ...
115
+
116
+ def check_metadata_service_version(obj):
117
+ ...
118
+
119
+ def resolve_state_machine_name(obj, name):
120
+ ...
121
+
122
+ def make_flow(obj, token, name, tags, namespace, max_workers, workflow_timeout, is_project, use_distributed_map):
123
+ ...
124
+
125
+ def resolve_token(name, token_prefix, obj, authorize, given_token, generate_new_token, is_project):
126
+ ...
127
+
128
+ def validate_run_id(state_machine_name, token_prefix, authorize, run_id, instructions_fn = None):
129
+ ...
130
+
131
+ def validate_token(name, token_prefix, authorize, instruction_fn = None):
132
+ """
133
+ Validate that the production token matches that of the deployed flow.
134
+
135
+ In case both the user and token do not match, raises an error.
136
+ Optionally outputs instructions on token usage via the provided instruction_fn(flow_name, prev_user)
137
+ """
138
+ ...
139
+
@@ -0,0 +1,36 @@
1
+ ##################################################################################
2
+ # Auto-generated Metaflow stub file #
3
+ # MF version: 2.11.4.1 #
4
+ # Generated on 2024-02-28T05:30:44.006031 #
5
+ ##################################################################################
6
+
7
+ from __future__ import annotations
8
+
9
+
10
+ AWS_SANDBOX_ENABLED: bool
11
+
12
+ AWS_SANDBOX_REGION: None
13
+
14
+ SFN_EXECUTION_LOG_GROUP_ARN: None
15
+
16
+ class StepFunctionsClient(object, metaclass=type):
17
+ def __init__(self):
18
+ ...
19
+ def search(self, name):
20
+ ...
21
+ def push(self, name, definition, role_arn, log_execution_history):
22
+ ...
23
+ def get(self, name):
24
+ ...
25
+ def trigger(self, state_machine_arn, input):
26
+ ...
27
+ def list_executions(self, state_machine_arn, states):
28
+ ...
29
+ def terminate_execution(self, execution_arn):
30
+ ...
31
+ def get_state_machine_arn(self, name):
32
+ ...
33
+ def delete(self, name):
34
+ ...
35
+ ...
36
+
@@ -0,0 +1,49 @@
1
+ ##################################################################################
2
+ # Auto-generated Metaflow stub file #
3
+ # MF version: 2.11.4.1 #
4
+ # Generated on 2024-02-28T05:30:44.004739 #
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
+ class DynamoDbClient(object, metaclass=type):
33
+ def __init__(self):
34
+ ...
35
+ def save_foreach_cardinality(self, foreach_split_task_id, foreach_cardinality, ttl):
36
+ ...
37
+ def save_parent_task_id_for_foreach_join(self, foreach_split_task_id, foreach_join_parent_task_id):
38
+ ...
39
+ def get_parent_task_ids_for_foreach_join(self, foreach_split_task_id):
40
+ ...
41
+ ...
42
+
43
+ class StepFunctionsInternalDecorator(metaflow.decorators.StepDecorator, metaclass=type):
44
+ 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):
45
+ ...
46
+ def task_finished(self, step_name, flow, graph, is_task_ok, retry_count, max_user_code_retries):
47
+ ...
48
+ ...
49
+
@@ -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.934212 #
5
+ ##################################################################################
6
+
7
+ from __future__ import annotations
8
+
9
+
@@ -0,0 +1,28 @@
1
+ ##################################################################################
2
+ # Auto-generated Metaflow stub file #
3
+ # MF version: 2.11.4.1 #
4
+ # Generated on 2024-02-28T05:30:43.994653 #
5
+ ##################################################################################
6
+
7
+ from __future__ import annotations
8
+
9
+
10
+ class AzureDefaultClientProvider(object, metaclass=type):
11
+ @staticmethod
12
+ def create_cacheable_azure_credential(*args, **kwargs):
13
+ """
14
+ azure.identity.DefaultAzureCredential is not readily cacheable in a dictionary
15
+ because it does not have a content based hash and equality implementations.
16
+
17
+ We implement a subclass CacheableDefaultAzureCredential to add them.
18
+
19
+ We need this because credentials will be part of the cache key in _ClientCache.
20
+ """
21
+ ...
22
+ ...
23
+
24
+ cached_provider_class: None
25
+
26
+ def create_cacheable_azure_credential():
27
+ ...
28
+
@@ -0,0 +1,28 @@
1
+ ##################################################################################
2
+ # Auto-generated Metaflow stub file #
3
+ # MF version: 2.11.4.1 #
4
+ # Generated on 2024-02-28T05:30:43.994415 #
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 MetaflowAzureAuthenticationError(metaflow.exception.MetaflowException, metaclass=type):
21
+ ...
22
+
23
+ class MetaflowAzureResourceError(metaflow.exception.MetaflowException, metaclass=type):
24
+ ...
25
+
26
+ class MetaflowAzurePackageError(metaflow.exception.MetaflowException, metaclass=type):
27
+ ...
28
+
@@ -0,0 +1,76 @@
1
+ ##################################################################################
2
+ # Auto-generated Metaflow stub file #
3
+ # MF version: 2.11.4.1 #
4
+ # Generated on 2024-02-28T05:30:43.995237 #
5
+ ##################################################################################
6
+
7
+ from __future__ import annotations
8
+
9
+ import typing
10
+ if typing.TYPE_CHECKING:
11
+ import metaflow.exception
12
+
13
+ class MetaflowAzureAuthenticationError(metaflow.exception.MetaflowException, metaclass=type):
14
+ ...
15
+
16
+ class MetaflowAzureResourceError(metaflow.exception.MetaflowException, metaclass=type):
17
+ ...
18
+
19
+ class MetaflowAzurePackageError(metaflow.exception.MetaflowException, metaclass=type):
20
+ ...
21
+
22
+ class MetaflowInternalError(metaflow.exception.MetaflowException, metaclass=type):
23
+ ...
24
+
25
+ class MetaflowException(Exception, metaclass=type):
26
+ def __init__(self, msg = "", lineno = None):
27
+ ...
28
+ def __str__(self):
29
+ ...
30
+ ...
31
+
32
+ def create_cacheable_azure_credential():
33
+ ...
34
+
35
+ def check_azure_deps(func):
36
+ """
37
+ The decorated function checks Azure dependencies (as needed for Azure storage backend). This includes
38
+ various Azure SDK packages, as well as a Python version of >3.6
39
+
40
+ We also tune some warning and logging configurations to reduce excessive log lines from Azure SDK.
41
+ """
42
+ ...
43
+
44
+ def parse_azure_full_path(blob_full_uri):
45
+ """
46
+ Parse an Azure Blob Storage path str into a tuple (container_name, blob).
47
+
48
+ Expected format is: <container_name>/<blob>
49
+
50
+ This is sometimes used to parse an Azure sys root, in which case:
51
+
52
+ - <container_name> is the Azure Blob Storage container name
53
+ - <blob> is effectively a blob_prefix, a subpath within the container in which blobs will live
54
+
55
+ Blob may be None, if input looks like <container_name>. I.e. no slashes present.
56
+
57
+ We take a strict validation approach, doing no implicit string manipulations on
58
+ the user's behalf. Path manipulations by themselves are complicated enough without
59
+ adding magic.
60
+
61
+ We provide clear error messages so the user knows exactly how to fix any validation error.
62
+ """
63
+ ...
64
+
65
+ def process_exception(*args, **kwargs):
66
+ ...
67
+
68
+ def handle_exceptions(func):
69
+ """
70
+ This is a decorator leveraging the logic from process_exception()
71
+ """
72
+ ...
73
+
74
+ def create_static_token_credential(*args, **kwargs):
75
+ ...
76
+
@@ -0,0 +1,52 @@
1
+ ##################################################################################
2
+ # Auto-generated Metaflow stub file #
3
+ # MF version: 2.11.4.1 #
4
+ # Generated on 2024-02-28T05:30:43.995696 #
5
+ ##################################################################################
6
+
7
+ from __future__ import annotations
8
+
9
+
10
+ class MetaflowException(Exception, metaclass=type):
11
+ def __init__(self, msg = "", lineno = None):
12
+ ...
13
+ def __str__(self):
14
+ ...
15
+ ...
16
+
17
+ AZURE_STORAGE_BLOB_SERVICE_ENDPOINT: None
18
+
19
+ def check_azure_deps(func):
20
+ """
21
+ The decorated function checks Azure dependencies (as needed for Azure storage backend). This includes
22
+ various Azure SDK packages, as well as a Python version of >3.6
23
+
24
+ We also tune some warning and logging configurations to reduce excessive log lines from Azure SDK.
25
+ """
26
+ ...
27
+
28
+ def create_cacheable_azure_credential():
29
+ ...
30
+
31
+ AZURE_CLIENT_CONNECTION_DATA_BLOCK_SIZE: int
32
+
33
+ AZURE_CLIENT_MAX_SINGLE_GET_SIZE_MB: int
34
+
35
+ AZURE_CLIENT_MAX_SINGLE_PUT_SIZE_MB: int
36
+
37
+ AZURE_CLIENT_MAX_CHUNK_GET_SIZE_MB: int
38
+
39
+ BYTES_IN_MB: int
40
+
41
+ def get_azure_blob_service_client(credential = None, credential_is_cacheable = False, max_single_get_size = 33554432, max_single_put_size = 67108864, max_chunk_get_size = 16777216, connection_data_block_size = 262144):
42
+ """
43
+ Returns a azure.storage.blob.BlobServiceClient.
44
+
45
+ The value adds are:
46
+ - connection caching (see _ClientCache)
47
+ - auto storage account URL detection
48
+ - auto credential handling (pull SAS token from environment, OR DefaultAzureCredential)
49
+ - sensible default values for Azure SDK tunables
50
+ """
51
+ ...
52
+