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,34 @@
1
+ ##################################################################################
2
+ # Auto-generated Metaflow stub file #
3
+ # MF version: 2.11.4.1 #
4
+ # Generated on 2024-02-28T05:30:44.014274 #
5
+ ##################################################################################
6
+
7
+ from __future__ import annotations
8
+
9
+
10
+ def aws_retry(f):
11
+ ...
12
+
13
+ def get_s3_client(s3_role_arn = None, s3_session_vars = None, s3_client_params = None):
14
+ ...
15
+
16
+ class S3Tail(object, metaclass=type):
17
+ def __init__(self, s3url):
18
+ ...
19
+ def reset_client(self, hard_reset = False):
20
+ ...
21
+ def clone(self, s3url):
22
+ ...
23
+ @property
24
+ def bytes_read(self):
25
+ ...
26
+ @property
27
+ def tail(self):
28
+ ...
29
+ def __iter__(self):
30
+ ...
31
+ def _make_range_request(self, *args, **kwargs):
32
+ ...
33
+ ...
34
+
@@ -0,0 +1,45 @@
1
+ ##################################################################################
2
+ # Auto-generated Metaflow stub file #
3
+ # MF version: 2.11.4.1 #
4
+ # Generated on 2024-02-28T05:30:43.942308 #
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
+ DATATOOLS_CLIENT_PARAMS: dict
18
+
19
+ DATATOOLS_SESSION_VARS: dict
20
+
21
+ S3_RETRY_COUNT: int
22
+
23
+ RETRY_WARNING_THRESHOLD: int
24
+
25
+ TEST_S3_RETRY: bool
26
+
27
+ TRANSIENT_RETRY_LINE_CONTENT: str
28
+
29
+ TRANSIENT_RETRY_START_LINE: str
30
+
31
+ def get_s3_client(s3_role_arn = None, s3_session_vars = None, s3_client_params = None):
32
+ ...
33
+
34
+ def aws_retry(f):
35
+ ...
36
+
37
+ def read_in_chunks(dst, src, src_sz, max_chunk_size):
38
+ ...
39
+
40
+ def get_timestamp(dt):
41
+ """
42
+ Python2 compatible way to compute the timestamp (seconds since 1/1/1970)
43
+ """
44
+ ...
45
+
@@ -0,0 +1,25 @@
1
+ ##################################################################################
2
+ # Auto-generated Metaflow stub file #
3
+ # MF version: 2.11.4.1 #
4
+ # Generated on 2024-02-28T05:30:43.934516 #
5
+ ##################################################################################
6
+
7
+ from __future__ import annotations
8
+
9
+ import typing
10
+ if typing.TYPE_CHECKING:
11
+ import metaflow.event_logger
12
+
13
+ class DebugEventLogger(metaflow.event_logger.NullEventLogger, metaclass=type):
14
+ @classmethod
15
+ def get_worker(cls):
16
+ ...
17
+ ...
18
+
19
+ class DebugEventLoggerSidecar(object, metaclass=type):
20
+ def __init__(self):
21
+ ...
22
+ def process_message(self, msg):
23
+ ...
24
+ ...
25
+
@@ -0,0 +1,25 @@
1
+ ##################################################################################
2
+ # Auto-generated Metaflow stub file #
3
+ # MF version: 2.11.4.1 #
4
+ # Generated on 2024-02-28T05:30:43.934974 #
5
+ ##################################################################################
6
+
7
+ from __future__ import annotations
8
+
9
+ import typing
10
+ if typing.TYPE_CHECKING:
11
+ import metaflow.monitor
12
+
13
+ class DebugMonitor(metaflow.monitor.NullMonitor, metaclass=type):
14
+ @classmethod
15
+ def get_worker(cls):
16
+ ...
17
+ ...
18
+
19
+ class DebugMonitorSidecar(object, metaclass=type):
20
+ def __init__(self):
21
+ ...
22
+ def process_message(self, msg):
23
+ ...
24
+ ...
25
+
@@ -0,0 +1,17 @@
1
+ ##################################################################################
2
+ # Auto-generated Metaflow stub file #
3
+ # MF version: 2.11.4.1 #
4
+ # Generated on 2024-02-28T05:30:43.927550 #
5
+ ##################################################################################
6
+
7
+ from __future__ import annotations
8
+
9
+ import typing
10
+ if typing.TYPE_CHECKING:
11
+ import metaflow.decorators
12
+
13
+ class EnvironmentDecorator(metaflow.decorators.StepDecorator, metaclass=type):
14
+ def runtime_step_cli(self, cli_args, retry_count, max_user_code_retries, ubf_context):
15
+ ...
16
+ ...
17
+
@@ -0,0 +1,34 @@
1
+ ##################################################################################
2
+ # Auto-generated Metaflow stub file #
3
+ # MF version: 2.11.4.1 #
4
+ # Generated on 2024-02-28T05:30:43.933081 #
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
+
14
+ current: metaflow.metaflow_current.Current
15
+
16
+ class MetaflowException(Exception, metaclass=type):
17
+ def __init__(self, msg = "", lineno = None):
18
+ ...
19
+ def __str__(self):
20
+ ...
21
+ ...
22
+
23
+ class TriggerDecorator(metaflow.decorators.FlowDecorator, metaclass=type):
24
+ def flow_init(self, flow_name, graph, environment, flow_datastore, metadata, logger, echo, options):
25
+ ...
26
+ ...
27
+
28
+ class TriggerOnFinishDecorator(metaflow.decorators.FlowDecorator, metaclass=type):
29
+ def flow_init(self, flow_name, graph, environment, flow_datastore, metadata, logger, echo, options):
30
+ ...
31
+ def get_top_level_options(self):
32
+ ...
33
+ ...
34
+
@@ -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.929278 #
5
+ ##################################################################################
6
+
7
+ from __future__ import annotations
8
+
9
+
@@ -0,0 +1,42 @@
1
+ ##################################################################################
2
+ # Auto-generated Metaflow stub file #
3
+ # MF version: 2.11.4.1 #
4
+ # Generated on 2024-02-28T05:30:43.982403 #
5
+ ##################################################################################
6
+
7
+ from __future__ import annotations
8
+
9
+ import typing
10
+ if typing.TYPE_CHECKING:
11
+ import metaflow.metaflow_current
12
+ import metaflow.plugins.parallel_decorator
13
+ import metaflow.decorators
14
+
15
+ current: metaflow.metaflow_current.Current
16
+
17
+ class ParallelDecorator(metaflow.decorators.StepDecorator, metaclass=type):
18
+ def __init__(self, attributes = None, statically_defined = False):
19
+ ...
20
+ def runtime_step_cli(self, cli_args, retry_count, max_user_code_retries, ubf_context):
21
+ ...
22
+ def step_init(self, flow, graph, step_name, decorators, environment, flow_datastore, logger):
23
+ ...
24
+ def task_decorate(self, step_func, flow, graph, retry_count, max_user_code_retries, ubf_context):
25
+ ...
26
+ def setup_distributed_env(self, flow):
27
+ ...
28
+ ...
29
+
30
+ class PytorchParallelDecorator(metaflow.plugins.parallel_decorator.ParallelDecorator, metaclass=type):
31
+ def task_decorate(self, step_func, flow, graph, retry_count, max_user_code_retries, ubf_context):
32
+ ...
33
+ def setup_distributed_env(self, flow):
34
+ ...
35
+ ...
36
+
37
+ def setup_torch_distributed(master_port = None):
38
+ """
39
+ Set up environment variables for PyTorch's distributed (DDP).
40
+ """
41
+ ...
42
+
@@ -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.933646 #
5
+ ##################################################################################
6
+
7
+ from __future__ import annotations
8
+
9
+
@@ -0,0 +1,22 @@
1
+ ##################################################################################
2
+ # Auto-generated Metaflow stub file #
3
+ # MF version: 2.11.4.1 #
4
+ # Generated on 2024-02-28T05:30:43.993713 #
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 MetaflowGSPackageError(metaflow.exception.MetaflowException, metaclass=type):
21
+ ...
22
+
@@ -0,0 +1,26 @@
1
+ ##################################################################################
2
+ # Auto-generated Metaflow stub file #
3
+ # MF version: 2.11.4.1 #
4
+ # Generated on 2024-02-28T05:30:43.993487 #
5
+ ##################################################################################
6
+
7
+ from __future__ import annotations
8
+
9
+
10
+ class GcpDefaultClientProvider(object, metaclass=type):
11
+ @staticmethod
12
+ def get_gs_storage_client(*args, **kwargs):
13
+ ...
14
+ @staticmethod
15
+ def get_credentials(scopes, *args, **kwargs):
16
+ ...
17
+ ...
18
+
19
+ cached_provider_class: None
20
+
21
+ def get_gs_storage_client():
22
+ ...
23
+
24
+ def get_credentials(scopes, *args, **kwargs):
25
+ ...
26
+
@@ -0,0 +1,38 @@
1
+ ##################################################################################
2
+ # Auto-generated Metaflow stub file #
3
+ # MF version: 2.11.4.1 #
4
+ # Generated on 2024-02-28T05:30:43.994131 #
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 MetaflowInternalError(metaflow.exception.MetaflowException, metaclass=type):
21
+ ...
22
+
23
+ class MetaflowGSPackageError(metaflow.exception.MetaflowException, metaclass=type):
24
+ ...
25
+
26
+ def parse_gs_full_path(gs_uri):
27
+ ...
28
+
29
+ def check_gs_deps(func):
30
+ """
31
+ The decorated function checks GS dependencies (as needed for Google Cloud storage backend). This includes
32
+ various GCP SDK packages, as well as a Python version of >=3.7
33
+ """
34
+ ...
35
+
36
+ def process_gs_exception(*args, **kwargs):
37
+ ...
38
+
@@ -0,0 +1,63 @@
1
+ ##################################################################################
2
+ # Auto-generated Metaflow stub file #
3
+ # MF version: 2.11.4.1 #
4
+ # Generated on 2024-02-28T05:30:43.944384 #
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 MetaflowInternalError(metaflow.exception.MetaflowException, metaclass=type):
21
+ ...
22
+
23
+ class GS(object, metaclass=type):
24
+ @classmethod
25
+ def get_root_from_config(cls, echo, create_on_absent = True):
26
+ ...
27
+ def __init__(self):
28
+ ...
29
+ def __enter__(self):
30
+ ...
31
+ def __exit__(self, *args):
32
+ ...
33
+ def get(self, key = None, return_missing = False):
34
+ """
35
+ Key MUST be a fully qualified path. gs://<bucket_name>/b/l/o/b/n/a/m/e
36
+ """
37
+ ...
38
+ def put(self, key, obj, overwrite = True):
39
+ """
40
+ Key MUST be a fully qualified path. gs://<bucket_name>/b/l/o/b/n/a/m/e
41
+ """
42
+ ...
43
+ def info(self, key = None, return_missing = False):
44
+ ...
45
+ ...
46
+
47
+ class GSObject(object, metaclass=type):
48
+ def __init__(self, url, path, exists, size):
49
+ ...
50
+ @property
51
+ def path(self):
52
+ ...
53
+ @property
54
+ def url(self):
55
+ ...
56
+ @property
57
+ def exists(self):
58
+ ...
59
+ @property
60
+ def size(self):
61
+ ...
62
+ ...
63
+
@@ -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.927664 #
5
+ ##################################################################################
6
+
7
+ from __future__ import annotations
8
+
9
+
@@ -0,0 +1,127 @@
1
+ ##################################################################################
2
+ # Auto-generated Metaflow stub file #
3
+ # MF version: 2.11.4.1 #
4
+ # Generated on 2024-02-28T05:30:43.953160 #
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
+
14
+ current: metaflow.metaflow_current.Current
15
+
16
+ class MetaflowException(Exception, metaclass=type):
17
+ def __init__(self, msg = "", lineno = None):
18
+ ...
19
+ def __str__(self):
20
+ ...
21
+ ...
22
+
23
+ ARGO_EVENTS_EVENT: None
24
+
25
+ ARGO_EVENTS_EVENT_BUS: str
26
+
27
+ ARGO_EVENTS_EVENT_SOURCE: None
28
+
29
+ ARGO_EVENTS_SERVICE_ACCOUNT: None
30
+
31
+ ARGO_EVENTS_INTERNAL_WEBHOOK_URL: None
32
+
33
+ AWS_SECRETS_MANAGER_DEFAULT_REGION: None
34
+
35
+ ARGO_EVENTS_WEBHOOK_AUTH: str
36
+
37
+ AZURE_STORAGE_BLOB_SERVICE_ENDPOINT: None
38
+
39
+ CARD_AZUREROOT: None
40
+
41
+ CARD_GSROOT: None
42
+
43
+ CARD_S3ROOT: None
44
+
45
+ DATASTORE_SYSROOT_AZURE: None
46
+
47
+ DATASTORE_SYSROOT_GS: None
48
+
49
+ DATASTORE_SYSROOT_S3: None
50
+
51
+ DATATOOLS_S3ROOT: None
52
+
53
+ DEFAULT_AWS_CLIENT_PROVIDER: str
54
+
55
+ DEFAULT_METADATA: str
56
+
57
+ DEFAULT_SECRETS_BACKEND_TYPE: None
58
+
59
+ KUBERNETES_FETCH_EC2_METADATA: bool
60
+
61
+ KUBERNETES_LABELS: str
62
+
63
+ KUBERNETES_SANDBOX_INIT_SCRIPT: None
64
+
65
+ S3_ENDPOINT_URL: None
66
+
67
+ SERVICE_HEADERS: dict
68
+
69
+ SERVICE_INTERNAL_URL: None
70
+
71
+ S3_SERVER_SIDE_ENCRYPTION: None
72
+
73
+ OTEL_ENDPOINT: None
74
+
75
+ BASH_SAVE_LOGS: str
76
+
77
+ class KubernetesClient(object, metaclass=type):
78
+ def __init__(self):
79
+ ...
80
+ def get(self):
81
+ ...
82
+ def job(self, **kwargs):
83
+ ...
84
+ ...
85
+
86
+ LOGS_DIR: str
87
+
88
+ STDOUT_FILE: str
89
+
90
+ STDERR_FILE: str
91
+
92
+ STDOUT_PATH: str
93
+
94
+ STDERR_PATH: str
95
+
96
+ class KubernetesException(metaflow.exception.MetaflowException, metaclass=type):
97
+ ...
98
+
99
+ class KubernetesKilledException(metaflow.exception.MetaflowException, metaclass=type):
100
+ ...
101
+
102
+ class Kubernetes(object, metaclass=type):
103
+ def __init__(self, datastore, metadata, environment):
104
+ ...
105
+ def launch_job(self, **kwargs):
106
+ ...
107
+ 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):
108
+ ...
109
+ def wait(self, stdout_location, stderr_location, echo = None):
110
+ ...
111
+ ...
112
+
113
+ def validate_kube_labels(labels: typing.Optional[typing.Dict[str, typing.Optional[str]]]) -> bool:
114
+ """
115
+ Validate label values.
116
+
117
+ This validates the kubernetes label values. It does not validate the keys.
118
+ Ideally, keys should be static and also the validation rules for keys are
119
+ more complex than those for values. For full validation rules, see:
120
+
121
+ https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#syntax-and-character-set
122
+ """
123
+ ...
124
+
125
+ def parse_kube_keyvalue_list(items: typing.List[str], requires_both: bool = True):
126
+ ...
127
+
@@ -0,0 +1,73 @@
1
+ ##################################################################################
2
+ # Auto-generated Metaflow stub file #
3
+ # MF version: 2.11.4.1 #
4
+ # Generated on 2024-02-28T05:30:43.955710 #
5
+ ##################################################################################
6
+
7
+ from __future__ import annotations
8
+
9
+ import typing
10
+ if typing.TYPE_CHECKING:
11
+ import metaflow._vendor.click.types
12
+ import metaflow.decorators
13
+ import metaflow.exception
14
+
15
+ class JSONTypeClass(metaflow._vendor.click.types.ParamType, metaclass=type):
16
+ def convert(self, value, param, ctx):
17
+ ...
18
+ def __str__(self):
19
+ ...
20
+ def __repr__(self):
21
+ ...
22
+ ...
23
+
24
+ METAFLOW_EXIT_DISALLOW_RETRY: int
25
+
26
+ class CommandException(metaflow.exception.MetaflowException, metaclass=type):
27
+ ...
28
+
29
+ def sync_local_metadata_from_datastore(metadata_local_dir, task_ds):
30
+ ...
31
+
32
+ DATASTORE_LOCAL_DIR: str
33
+
34
+ KUBERNETES_LABELS: str
35
+
36
+ TASK_LOG_SOURCE: str
37
+
38
+ class Kubernetes(object, metaclass=type):
39
+ def __init__(self, datastore, metadata, environment):
40
+ ...
41
+ def launch_job(self, **kwargs):
42
+ ...
43
+ 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):
44
+ ...
45
+ def wait(self, stdout_location, stderr_location, echo = None):
46
+ ...
47
+ ...
48
+
49
+ class KubernetesKilledException(metaflow.exception.MetaflowException, metaclass=type):
50
+ ...
51
+
52
+ def parse_kube_keyvalue_list(items: typing.List[str], requires_both: bool = True):
53
+ ...
54
+
55
+ class KubernetesDecorator(metaflow.decorators.StepDecorator, metaclass=type):
56
+ def __init__(self, attributes = None, statically_defined = False):
57
+ ...
58
+ def step_init(self, flow, graph, step, decos, environment, flow_datastore, logger):
59
+ ...
60
+ def package_init(self, flow, step_name, environment):
61
+ ...
62
+ def runtime_init(self, flow, graph, package, run_id):
63
+ ...
64
+ def runtime_task_created(self, task_datastore, task_id, split_index, input_paths, is_cloned, ubf_context):
65
+ ...
66
+ def runtime_step_cli(self, cli_args, retry_count, max_user_code_retries, ubf_context):
67
+ ...
68
+ def task_pre_step(self, step_name, task_datastore, metadata, run_id, task_id, flow, graph, retry_count, max_retries, ubf_context, inputs):
69
+ ...
70
+ def task_finished(self, step_name, flow, graph, is_task_ok, retry_count, max_retries):
71
+ ...
72
+ ...
73
+
@@ -0,0 +1,62 @@
1
+ ##################################################################################
2
+ # Auto-generated Metaflow stub file #
3
+ # MF version: 2.11.4.1 #
4
+ # Generated on 2024-02-28T05:30:43.951784 #
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 KubernetesJob(object, metaclass=type):
21
+ def __init__(self, client, **kwargs):
22
+ ...
23
+ def create(self):
24
+ ...
25
+ def execute(self):
26
+ ...
27
+ def step_name(self, step_name):
28
+ ...
29
+ def namespace(self, namespace):
30
+ ...
31
+ def name(self, name):
32
+ ...
33
+ def command(self, command):
34
+ ...
35
+ def image(self, image):
36
+ ...
37
+ def cpu(self, cpu):
38
+ ...
39
+ def memory(self, mem):
40
+ ...
41
+ def environment_variable(self, name, value):
42
+ ...
43
+ def label(self, name, value):
44
+ ...
45
+ def annotation(self, name, value):
46
+ ...
47
+ ...
48
+
49
+ CLIENT_REFRESH_INTERVAL_SECONDS: int
50
+
51
+ class KubernetesClientException(metaflow.exception.MetaflowException, metaclass=type):
52
+ ...
53
+
54
+ class KubernetesClient(object, metaclass=type):
55
+ def __init__(self):
56
+ ...
57
+ def get(self):
58
+ ...
59
+ def job(self, **kwargs):
60
+ ...
61
+ ...
62
+