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,15 +1,17 @@
1
- ##################################################################################
2
- # Auto-generated Metaflow stub file #
3
- # MF version: 2.12.27.1+obcheckpoint(0.1.2);ob(v1) #
4
- # Generated on 2024-11-13T19:05:29.430822 #
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.867765 #
5
+ ######################################################################################################
6
6
 
7
7
  from __future__ import annotations
8
8
 
9
+ import metaflow
9
10
  import typing
10
11
  if typing.TYPE_CHECKING:
11
12
  import metaflow.decorators
12
13
 
14
+
13
15
  class ScheduleDecorator(metaflow.decorators.FlowDecorator, metaclass=type):
14
16
  """
15
17
  Specifies the times when the flow should be run when running on a
@@ -1,21 +1,21 @@
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.433231 #
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.888924 #
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
15
+ from ....parameters import deploy_time_eval as deploy_time_eval
16
+ from ..batch.batch import Batch as Batch
17
+ from .event_bridge_client import EventBridgeClient as EventBridgeClient
18
+ from .step_functions_client import StepFunctionsClient as StepFunctionsClient
19
19
 
20
20
  EVENTS_SFN_ACCESS_IAM_ROLE: None
21
21
 
@@ -29,60 +29,6 @@ SFN_IAM_ROLE: None
29
29
 
30
30
  SFN_S3_DISTRIBUTED_MAP_OUTPUT_PATH: None
31
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, ephemeral_storage = None, log_driver = None, log_options = None):
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 = {}, ephemeral_storage = None, log_driver = None, log_options = None):
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
32
  class StepFunctionsException(metaflow.exception.MetaflowException, metaclass=type):
87
33
  ...
88
34
 
@@ -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.431399 #
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.889543 #
5
+ ######################################################################################################
6
6
 
7
7
  from __future__ import annotations
8
8
 
9
9
 
10
+
10
11
  AWS_SANDBOX_ENABLED: bool
11
12
 
12
13
  AWS_SANDBOX_REGION: None
@@ -1,324 +1,84 @@
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.434505 #
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.868160 #
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.runner.deployer
12
+ import metaflow.runner.deployer_impl
13
+ import metaflow.plugins.aws.step_functions.step_functions_deployer_objects
14
+ import typing
12
15
 
13
- class StepFunctions(object, metaclass=type):
14
- 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):
15
- ...
16
- def to_json(self):
17
- ...
18
- def trigger_explanation(self):
19
- ...
20
- def deploy(self, log_execution_history):
21
- ...
22
- def schedule(self):
23
- ...
24
- @classmethod
25
- def delete(cls, name):
26
- ...
27
- @classmethod
28
- def terminate(cls, flow_name, name):
29
- ...
30
- @classmethod
31
- def trigger(cls, name, parameters):
32
- ...
33
- @classmethod
34
- def list(cls, name, states):
35
- ...
36
- @classmethod
37
- def get_existing_deployment(cls, name):
38
- ...
39
- @classmethod
40
- def get_execution(cls, state_machine_name, name):
41
- ...
42
- ...
16
+ from ....runner.deployer_impl import DeployerImpl as DeployerImpl
43
17
 
44
- class DeployerImpl(object, metaclass=type):
18
+ TYPE_CHECKING: bool
19
+
20
+ class StepFunctionsDeployer(metaflow.runner.deployer_impl.DeployerImpl, metaclass=type):
45
21
  """
46
- Base class for deployer implementations. Each implementation should define a TYPE
47
- class variable that matches the name of the CLI group.
22
+ Deployer implementation for AWS Step Functions.
48
23
 
49
24
  Parameters
50
25
  ----------
51
- flow_file : str
52
- Path to the flow file to deploy.
53
- show_output : bool, default True
54
- Show the 'stdout' and 'stderr' to the console by default.
55
- profile : Optional[str], default None
56
- Metaflow profile to use for the deployment. If not specified, the default
57
- profile is used.
58
- env : Optional[Dict], default None
59
- Additional environment variables to set for the deployment.
60
- cwd : Optional[str], default None
61
- The directory to run the subprocess in; if not specified, the current
62
- directory is used.
63
- file_read_timeout : int, default 3600
64
- The timeout until which we try to read the deployer attribute file.
65
- **kwargs : Any
66
- Additional arguments that you would pass to `python myflow.py` before
67
- the deployment command.
26
+ name : str, optional, default None
27
+ State Machine name. The flow name is used instead if this option is not specified.
68
28
  """
69
- def __init__(self, flow_file: str, show_output: bool = True, profile: typing.Optional[str] = None, env: typing.Optional[typing.Dict] = None, cwd: typing.Optional[str] = None, file_read_timeout: int = 3600, **kwargs):
70
- ...
71
- def __enter__(self) -> metaflow.runner.deployer.DeployerImpl:
72
- ...
73
- def create(self, **kwargs) -> metaflow.runner.deployer.DeployedFlow:
29
+ def __init__(self, deployer_kwargs: typing.Dict[str, str], **kwargs):
74
30
  """
75
- Create a deployed flow using the deployer implementation.
31
+ Initialize the StepFunctionsDeployer.
76
32
 
77
33
  Parameters
78
34
  ----------
35
+ deployer_kwargs : Dict[str, str]
36
+ The deployer-specific keyword arguments.
79
37
  **kwargs : Any
80
- Additional arguments to pass to `create` corresponding to the
81
- command line arguments of `create`
82
-
83
- Returns
84
- -------
85
- DeployedFlow
86
- DeployedFlow object representing the deployed flow.
87
-
88
- Raises
89
- ------
90
- Exception
91
- If there is an error during deployment.
92
- """
93
- ...
94
- def __exit__(self, exc_type, exc_value, traceback):
95
- """
96
- Cleanup resources on exit.
97
- """
98
- ...
99
- def cleanup(self):
100
- """
101
- Cleanup resources.
38
+ Additional arguments to pass to the superclass constructor.
102
39
  """
103
40
  ...
104
- ...
105
-
106
- class DeployedFlow(object, metaclass=metaflow.runner.deployer.DeploymentMethodsMeta):
107
- """
108
- DeployedFlow class represents a flow that has been deployed.
109
-
110
- Parameters
111
- ----------
112
- deployer : DeployerImpl
113
- Instance of the deployer implementation.
114
- """
115
- def __init__(self, deployer: metaflow.runner.deployer.DeployerImpl):
41
+ @property
42
+ def deployer_kwargs(self) -> typing.Dict[str, typing.Any]:
116
43
  ...
117
44
  @staticmethod
118
- def from_deployment(identifier, metadata = None, impl = None):
119
- ...
120
- ...
121
-
122
- class TriggeredRun(object, metaclass=type):
123
- """
124
- TriggeredRun class represents a run that has been triggered on a production orchestrator.
125
-
126
- Only when the `start` task starts running, the `run` object corresponding to the run
127
- becomes available.
128
- """
129
- def __init__(self, deployer: metaflow.runner.deployer.DeployerImpl, content: str):
45
+ def deployed_flow_type() -> typing.Type["metaflow.plugins.aws.step_functions.step_functions_deployer_objects.StepFunctionsDeployedFlow"]:
130
46
  ...
131
- def wait_for_run(self, timeout = None):
47
+ def create(self, **kwargs) -> "metaflow.plugins.aws.step_functions.step_functions_deployer_objects.StepFunctionsDeployedFlow":
132
48
  """
133
- Wait for the `run` property to become available.
49
+ Create a new AWS Step Functions State Machine deployment.
134
50
 
135
51
  Parameters
136
52
  ----------
137
- timeout : int, optional
138
- Maximum time to wait for the `run` to become available, in seconds. If None, wait indefinitely.
139
-
140
- Raises
141
- ------
142
- TimeoutError
143
- If the `run` is not available within the specified timeout.
144
- """
145
- ...
146
- @property
147
- def run(self):
148
- """
149
- Retrieve the `Run` object for the triggered run.
150
-
151
- Note that Metaflow `Run` becomes available only when the `start` task
152
- has started executing.
53
+ authorize : str, optional, default None
54
+ Authorize using this production token. Required when re-deploying an existing flow
55
+ for the first time. The token is cached in METAFLOW_HOME.
56
+ generate_new_token : bool, optional, default False
57
+ Generate a new production token for this flow. Moves the production flow to a new namespace.
58
+ given_token : str, optional, default None
59
+ Use the given production token for this flow. Moves the production flow to the given namespace.
60
+ tags : List[str], optional, default None
61
+ Annotate all objects produced by AWS Step Functions runs with these tags.
62
+ user_namespace : str, optional, default None
63
+ Change the namespace from the default (production token) to the given tag.
64
+ only_json : bool, optional, default False
65
+ Only print out JSON sent to AWS Step Functions without deploying anything.
66
+ max_workers : int, optional, default 100
67
+ Maximum number of parallel processes.
68
+ workflow_timeout : int, optional, default None
69
+ Workflow timeout in seconds.
70
+ log_execution_history : bool, optional, default False
71
+ Log AWS Step Functions execution history to AWS CloudWatch Logs log group.
72
+ use_distributed_map : bool, optional, default False
73
+ Use AWS Step Functions Distributed Map instead of Inline Map for defining foreach
74
+ tasks in Amazon State Language.
75
+ deployer_attribute_file : str, optional, default None
76
+ Write the workflow name to the specified file. Used internally for Metaflow's Deployer API.
153
77
 
154
78
  Returns
155
79
  -------
156
- Run, optional
157
- Metaflow Run object if the `start` step has started executing, otherwise None.
158
- """
159
- ...
160
- ...
161
-
162
- def get_lower_level_group(api, top_level_kwargs: typing.Dict, _type: typing.Optional[str], deployer_kwargs: typing.Dict):
163
- """
164
- Retrieve a lower-level group from the API based on the type and provided arguments.
165
-
166
- Parameters
167
- ----------
168
- api : MetaflowAPI
169
- Metaflow API instance.
170
- top_level_kwargs : Dict
171
- Top-level keyword arguments to pass to the API.
172
- _type : str
173
- Type of the deployer implementation to target.
174
- deployer_kwargs : Dict
175
- Keyword arguments specific to the deployer.
176
-
177
- Returns
178
- -------
179
- Any
180
- The lower-level group object retrieved from the API.
181
-
182
- Raises
183
- ------
184
- ValueError
185
- If the `_type` is None.
186
- """
187
- ...
188
-
189
- def handle_timeout(tfp_runner_attribute, command_obj: "CommandManager", file_read_timeout: int):
190
- """
191
- Handle the timeout for a running subprocess command that reads a file
192
- and raises an error with appropriate logs if a TimeoutError occurs.
193
-
194
- Parameters
195
- ----------
196
- tfp_runner_attribute : NamedTemporaryFile
197
- Temporary file that stores runner attribute data.
198
- command_obj : CommandManager
199
- Command manager object that encapsulates the running command details.
200
- file_read_timeout : int
201
- Timeout for reading the file.
202
-
203
- Returns
204
- -------
205
- str
206
- Content read from the temporary file.
207
-
208
- Raises
209
- ------
210
- RuntimeError
211
- If a TimeoutError occurs, it raises a RuntimeError with the command's
212
- stdout and stderr logs.
213
- """
214
- ...
215
-
216
- def terminate(instance: metaflow.runner.deployer.TriggeredRun, **kwargs):
217
- """
218
- Terminate the running workflow.
219
-
220
- Parameters
221
- ----------
222
- **kwargs : Any
223
- Additional arguments to pass to the terminate command.
224
-
225
- Returns
226
- -------
227
- bool
228
- True if the command was successful, False otherwise.
229
- """
230
- ...
231
-
232
- def production_token(instance: metaflow.runner.deployer.DeployedFlow):
233
- """
234
- Get the production token for the deployed flow.
235
-
236
- Returns
237
- -------
238
- str, optional
239
- The production token, None if it cannot be retrieved.
240
- """
241
- ...
242
-
243
- def list_runs(instance: metaflow.runner.deployer.DeployedFlow, states: typing.Optional[typing.List[str]] = None):
244
- """
245
- List runs of the deployed flow.
246
-
247
- Parameters
248
- ----------
249
- states : Optional[List[str]], optional
250
- A list of states to filter the runs by. Allowed values are:
251
- RUNNING, SUCCEEDED, FAILED, TIMED_OUT, ABORTED.
252
- If not provided, all states will be considered.
253
-
254
- Returns
255
- -------
256
- List[TriggeredRun]
257
- A list of TriggeredRun objects representing the runs of the deployed flow.
258
-
259
- Raises
260
- ------
261
- ValueError
262
- If any of the provided states are invalid or if there are duplicate states.
263
- """
264
- ...
265
-
266
- def delete(instance: metaflow.runner.deployer.DeployedFlow, **kwargs):
267
- """
268
- Delete the deployed flow.
269
-
270
- Parameters
271
- ----------
272
- **kwargs : Any
273
- Additional arguments to pass to the delete command.
274
-
275
- Returns
276
- -------
277
- bool
278
- True if the command was successful, False otherwise.
279
- """
280
- ...
281
-
282
- def trigger(instance: metaflow.runner.deployer.DeployedFlow, **kwargs):
283
- """
284
- Trigger a new run for the deployed flow.
285
-
286
- Parameters
287
- ----------
288
- **kwargs : Any
289
- Additional arguments to pass to the trigger command, `Parameters` in particular
290
-
291
- Returns
292
- -------
293
- StepFunctionsTriggeredRun
294
- The triggered run instance.
295
-
296
- Raises
297
- ------
298
- Exception
299
- If there is an error during the trigger process.
300
- """
301
- ...
302
-
303
- class StepFunctionsDeployer(metaflow.runner.deployer.DeployerImpl, metaclass=type):
304
- """
305
- Deployer implementation for AWS Step Functions.
306
-
307
- Attributes
308
- ----------
309
- TYPE : ClassVar[Optional[str]]
310
- The type of the deployer, which is "step-functions".
311
- """
312
- def __init__(self, deployer_kwargs, **kwargs):
313
- """
314
- Initialize the StepFunctionsDeployer.
315
-
316
- Parameters
317
- ----------
318
- deployer_kwargs : dict
319
- The deployer-specific keyword arguments.
320
- **kwargs : Any
321
- Additional arguments to pass to the superclass constructor.
80
+ StepFunctionsDeployedFlow
81
+ The Flow deployed to AWS Step Functions.
322
82
  """
323
83
  ...
324
84
  ...
@@ -0,0 +1,127 @@
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.886592 #
5
+ ######################################################################################################
6
+
7
+ from __future__ import annotations
8
+
9
+ import metaflow
10
+ import typing
11
+ if typing.TYPE_CHECKING:
12
+ import metaflow.plugins.aws.step_functions.step_functions_deployer_objects
13
+ import metaflow.runner.deployer
14
+
15
+ from .step_functions import StepFunctions as StepFunctions
16
+ from ....runner.deployer import DeployedFlow as DeployedFlow
17
+ from ....runner.deployer import TriggeredRun as TriggeredRun
18
+ from ....runner.utils import get_lower_level_group as get_lower_level_group
19
+ from ....runner.utils import handle_timeout as handle_timeout
20
+
21
+ class StepFunctionsTriggeredRun(metaflow.runner.deployer.TriggeredRun, metaclass=type):
22
+ """
23
+ A class representing a triggered AWS Step Functions state machine execution.
24
+ """
25
+ def terminate(self, **kwargs) -> bool:
26
+ """
27
+ Terminate the running state machine execution.
28
+
29
+ Parameters
30
+ ----------
31
+ authorize : str, optional, default None
32
+ Authorize the termination with a production token.
33
+
34
+ Returns
35
+ -------
36
+ bool
37
+ True if the command was successful, False otherwise.
38
+ """
39
+ ...
40
+ ...
41
+
42
+ class StepFunctionsDeployedFlow(metaflow.runner.deployer.DeployedFlow, metaclass=metaflow.runner.deployer.DeployedFlowMeta):
43
+ """
44
+ A class representing a deployed AWS Step Functions state machine.
45
+ """
46
+ @classmethod
47
+ def from_deployment(cls, identifier: str, metadata: typing.Optional[str] = None):
48
+ """
49
+ This method is not currently implemented for Step Functions.
50
+
51
+ Raises
52
+ ------
53
+ NotImplementedError
54
+ This method is not implemented for Step Functions.
55
+ """
56
+ ...
57
+ @property
58
+ def production_token(self: metaflow.runner.deployer.DeployedFlow) -> typing.Optional[str]:
59
+ """
60
+ Get the production token for the deployed flow.
61
+
62
+ Returns
63
+ -------
64
+ str, optional
65
+ The production token, None if it cannot be retrieved.
66
+ """
67
+ ...
68
+ def list_runs(self, states: typing.Optional[typing.List[str]] = None) -> typing.List[StepFunctionsTriggeredRun]:
69
+ """
70
+ List runs of the deployed flow.
71
+
72
+ Parameters
73
+ ----------
74
+ states : List[str], optional, default None
75
+ A list of states to filter the runs by. Allowed values are:
76
+ RUNNING, SUCCEEDED, FAILED, TIMED_OUT, ABORTED.
77
+ If not provided, all states will be considered.
78
+
79
+ Returns
80
+ -------
81
+ List[StepFunctionsTriggeredRun]
82
+ A list of TriggeredRun objects representing the runs of the deployed flow.
83
+
84
+ Raises
85
+ ------
86
+ ValueError
87
+ If any of the provided states are invalid or if there are duplicate states.
88
+ """
89
+ ...
90
+ def delete(self, **kwargs) -> bool:
91
+ """
92
+ Delete the deployed state machine.
93
+
94
+ Parameters
95
+ ----------
96
+ authorize : str, optional, default None
97
+ Authorize the deletion with a production token.
98
+
99
+ Returns
100
+ -------
101
+ bool
102
+ True if the command was successful, False otherwise.
103
+ """
104
+ ...
105
+ def trigger(self, **kwargs) -> StepFunctionsTriggeredRun:
106
+ """
107
+ Trigger a new run for the deployed flow.
108
+
109
+ Parameters
110
+ ----------
111
+ **kwargs : Any
112
+ Additional arguments to pass to the trigger command,
113
+ `Parameters` in particular
114
+
115
+ Returns
116
+ -------
117
+ StepFunctionsTriggeredRun
118
+ The triggered run instance.
119
+
120
+ Raises
121
+ ------
122
+ Exception
123
+ If there is an error during the trigger process.
124
+ """
125
+ ...
126
+ ...
127
+
@@ -1,12 +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.389319 #
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.832114 #
5
+ ######################################################################################################
6
6
 
7
7
  from __future__ import annotations
8
8
 
9
9
 
10
- def create_azure_credential():
11
- ...
10
+ from . import azure_credential as azure_credential
11
+ from .azure_credential import create_cacheable_azure_credential as create_azure_credential
12
+ from . import azure_exceptions as azure_exceptions
13
+ from . import azure_utils as azure_utils
14
+ from . import blob_service_client_factory as blob_service_client_factory
15
+ from . import includefile_support as includefile_support
16
+ from . import azure_secret_manager_secrets_provider as azure_secret_manager_secrets_provider
12
17