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.
- metaflow-stubs/__init__.pyi +2753 -0
- metaflow-stubs/cards.pyi +266 -0
- metaflow-stubs/cli.pyi +137 -0
- metaflow-stubs/client/__init__.pyi +993 -0
- metaflow-stubs/client/core.pyi +1425 -0
- metaflow-stubs/client/filecache.pyi +87 -0
- metaflow-stubs/events.pyi +107 -0
- metaflow-stubs/exception.pyi +98 -0
- metaflow-stubs/flowspec.pyi +297 -0
- metaflow-stubs/generated_for.txt +1 -0
- metaflow-stubs/includefile.pyi +524 -0
- metaflow-stubs/metadata/metadata.pyi +377 -0
- metaflow-stubs/metadata/util.pyi +18 -0
- metaflow-stubs/metaflow_config.pyi +263 -0
- metaflow-stubs/metaflow_current.pyi +327 -0
- metaflow-stubs/mflog/mflog.pyi +22 -0
- metaflow-stubs/multicore_utils.pyi +62 -0
- metaflow-stubs/parameters.pyi +114 -0
- metaflow-stubs/plugins/__init__.pyi +209 -0
- metaflow-stubs/plugins/airflow/__init__.pyi +9 -0
- metaflow-stubs/plugins/airflow/airflow.pyi +179 -0
- metaflow-stubs/plugins/airflow/airflow_cli.pyi +90 -0
- metaflow-stubs/plugins/airflow/airflow_decorator.pyi +50 -0
- metaflow-stubs/plugins/airflow/airflow_utils.pyi +137 -0
- metaflow-stubs/plugins/airflow/exception.pyi +27 -0
- metaflow-stubs/plugins/airflow/sensors/__init__.pyi +26 -0
- metaflow-stubs/plugins/airflow/sensors/base_sensor.pyi +60 -0
- metaflow-stubs/plugins/airflow/sensors/external_task_sensor.pyi +54 -0
- metaflow-stubs/plugins/airflow/sensors/s3_sensor.pyi +50 -0
- metaflow-stubs/plugins/argo/__init__.pyi +9 -0
- metaflow-stubs/plugins/argo/argo_client.pyi +77 -0
- metaflow-stubs/plugins/argo/argo_events.pyi +79 -0
- metaflow-stubs/plugins/argo/argo_workflows.pyi +604 -0
- metaflow-stubs/plugins/argo/argo_workflows_cli.pyi +180 -0
- metaflow-stubs/plugins/argo/argo_workflows_decorator.pyi +169 -0
- metaflow-stubs/plugins/aws/__init__.pyi +9 -0
- metaflow-stubs/plugins/aws/aws_client.pyi +22 -0
- metaflow-stubs/plugins/aws/aws_utils.pyi +93 -0
- metaflow-stubs/plugins/aws/batch/__init__.pyi +9 -0
- metaflow-stubs/plugins/aws/batch/batch.pyi +120 -0
- metaflow-stubs/plugins/aws/batch/batch_cli.pyi +42 -0
- metaflow-stubs/plugins/aws/batch/batch_client.pyi +159 -0
- metaflow-stubs/plugins/aws/batch/batch_decorator.pyi +145 -0
- metaflow-stubs/plugins/aws/secrets_manager/__init__.pyi +9 -0
- metaflow-stubs/plugins/aws/secrets_manager/aws_secrets_manager_secrets_provider.pyi +73 -0
- metaflow-stubs/plugins/aws/step_functions/__init__.pyi +9 -0
- metaflow-stubs/plugins/aws/step_functions/dynamo_db_client.pyi +22 -0
- metaflow-stubs/plugins/aws/step_functions/event_bridge_client.pyi +27 -0
- metaflow-stubs/plugins/aws/step_functions/production_token.pyi +18 -0
- metaflow-stubs/plugins/aws/step_functions/schedule_decorator.pyi +17 -0
- metaflow-stubs/plugins/aws/step_functions/step_functions.pyi +220 -0
- metaflow-stubs/plugins/aws/step_functions/step_functions_cli.pyi +139 -0
- metaflow-stubs/plugins/aws/step_functions/step_functions_client.pyi +36 -0
- metaflow-stubs/plugins/aws/step_functions/step_functions_decorator.pyi +49 -0
- metaflow-stubs/plugins/azure/__init__.pyi +9 -0
- metaflow-stubs/plugins/azure/azure_credential.pyi +28 -0
- metaflow-stubs/plugins/azure/azure_exceptions.pyi +28 -0
- metaflow-stubs/plugins/azure/azure_utils.pyi +76 -0
- metaflow-stubs/plugins/azure/blob_service_client_factory.pyi +52 -0
- metaflow-stubs/plugins/azure/includefile_support.pyi +63 -0
- metaflow-stubs/plugins/cards/__init__.pyi +9 -0
- metaflow-stubs/plugins/cards/card_cli.pyi +557 -0
- metaflow-stubs/plugins/cards/card_client.pyi +178 -0
- metaflow-stubs/plugins/cards/card_creator.pyi +26 -0
- metaflow-stubs/plugins/cards/card_datastore.pyi +111 -0
- metaflow-stubs/plugins/cards/card_decorator.pyi +133 -0
- metaflow-stubs/plugins/cards/card_modules/__init__.pyi +67 -0
- metaflow-stubs/plugins/cards/card_modules/basic.pyi +263 -0
- metaflow-stubs/plugins/cards/card_modules/card.pyi +62 -0
- metaflow-stubs/plugins/cards/card_modules/chevron/__init__.pyi +78 -0
- metaflow-stubs/plugins/cards/card_modules/chevron/main.pyi +77 -0
- metaflow-stubs/plugins/cards/card_modules/chevron/metadata.pyi +11 -0
- metaflow-stubs/plugins/cards/card_modules/chevron/renderer.pyi +114 -0
- metaflow-stubs/plugins/cards/card_modules/chevron/tokenizer.pyi +75 -0
- metaflow-stubs/plugins/cards/card_modules/components.pyi +251 -0
- metaflow-stubs/plugins/cards/card_modules/convert_to_native_type.pyi +45 -0
- metaflow-stubs/plugins/cards/card_modules/renderer_tools.pyi +24 -0
- metaflow-stubs/plugins/cards/card_modules/test_cards.pyi +155 -0
- metaflow-stubs/plugins/cards/card_resolver.pyi +60 -0
- metaflow-stubs/plugins/cards/component_serializer.pyi +227 -0
- metaflow-stubs/plugins/cards/exception.pyi +71 -0
- metaflow-stubs/plugins/catch_decorator.pyi +58 -0
- metaflow-stubs/plugins/datatools/__init__.pyi +339 -0
- metaflow-stubs/plugins/datatools/local.pyi +82 -0
- metaflow-stubs/plugins/datatools/s3/__init__.pyi +589 -0
- metaflow-stubs/plugins/datatools/s3/s3.pyi +875 -0
- metaflow-stubs/plugins/datatools/s3/s3tail.pyi +34 -0
- metaflow-stubs/plugins/datatools/s3/s3util.pyi +45 -0
- metaflow-stubs/plugins/debug_logger.pyi +25 -0
- metaflow-stubs/plugins/debug_monitor.pyi +25 -0
- metaflow-stubs/plugins/environment_decorator.pyi +17 -0
- metaflow-stubs/plugins/events_decorator.pyi +34 -0
- metaflow-stubs/plugins/frameworks/__init__.pyi +9 -0
- metaflow-stubs/plugins/frameworks/pytorch.pyi +42 -0
- metaflow-stubs/plugins/gcp/__init__.pyi +9 -0
- metaflow-stubs/plugins/gcp/gs_exceptions.pyi +22 -0
- metaflow-stubs/plugins/gcp/gs_storage_client_factory.pyi +26 -0
- metaflow-stubs/plugins/gcp/gs_utils.pyi +38 -0
- metaflow-stubs/plugins/gcp/includefile_support.pyi +63 -0
- metaflow-stubs/plugins/kubernetes/__init__.pyi +9 -0
- metaflow-stubs/plugins/kubernetes/kubernetes.pyi +127 -0
- metaflow-stubs/plugins/kubernetes/kubernetes_cli.pyi +73 -0
- metaflow-stubs/plugins/kubernetes/kubernetes_client.pyi +62 -0
- metaflow-stubs/plugins/kubernetes/kubernetes_decorator.pyi +165 -0
- metaflow-stubs/plugins/kubernetes/kubernetes_job.pyi +100 -0
- metaflow-stubs/plugins/package_cli.pyi +9 -0
- metaflow-stubs/plugins/parallel_decorator.pyi +34 -0
- metaflow-stubs/plugins/project_decorator.pyi +36 -0
- metaflow-stubs/plugins/pypi/__init__.pyi +18 -0
- metaflow-stubs/plugins/pypi/conda_decorator.pyi +59 -0
- metaflow-stubs/plugins/pypi/conda_environment.pyi +86 -0
- metaflow-stubs/plugins/pypi/pypi_decorator.pyi +22 -0
- metaflow-stubs/plugins/pypi/pypi_environment.pyi +50 -0
- metaflow-stubs/plugins/pypi/utils.pyi +28 -0
- metaflow-stubs/plugins/resources_decorator.pyi +15 -0
- metaflow-stubs/plugins/retry_decorator.pyi +28 -0
- metaflow-stubs/plugins/secrets/__init__.pyi +21 -0
- metaflow-stubs/plugins/secrets/inline_secrets_provider.pyi +30 -0
- metaflow-stubs/plugins/secrets/secrets_decorator.pyi +75 -0
- metaflow-stubs/plugins/storage_executor.pyi +33 -0
- metaflow-stubs/plugins/tag_cli.pyi +370 -0
- metaflow-stubs/plugins/test_unbounded_foreach_decorator.pyi +54 -0
- metaflow-stubs/plugins/timeout_decorator.pyi +39 -0
- metaflow-stubs/procpoll.pyi +51 -0
- metaflow-stubs/py.typed +0 -0
- metaflow-stubs/pylint_wrapper.pyi +31 -0
- metaflow-stubs/tagging_util.pyi +52 -0
- ob_metaflow_stubs-2.11.4.1.dist-info/METADATA +22 -0
- ob_metaflow_stubs-2.11.4.1.dist-info/RECORD +131 -0
- ob_metaflow_stubs-2.11.4.1.dist-info/WHEEL +6 -0
- ob_metaflow_stubs-2.11.4.1.dist-info/top_level.txt +1 -0
@@ -0,0 +1,165 @@
|
|
1
|
+
##################################################################################
|
2
|
+
# Auto-generated Metaflow stub file #
|
3
|
+
# MF version: 2.11.4.1 #
|
4
|
+
# Generated on 2024-02-28T05:30:43.954547 #
|
5
|
+
##################################################################################
|
6
|
+
|
7
|
+
from __future__ import annotations
|
8
|
+
|
9
|
+
import typing
|
10
|
+
if typing.TYPE_CHECKING:
|
11
|
+
import metaflow.metaflow_current
|
12
|
+
import metaflow.decorators
|
13
|
+
import metaflow.exception
|
14
|
+
|
15
|
+
current: metaflow.metaflow_current.Current
|
16
|
+
|
17
|
+
class MetaflowException(Exception, metaclass=type):
|
18
|
+
def __init__(self, msg = "", lineno = None):
|
19
|
+
...
|
20
|
+
def __str__(self):
|
21
|
+
...
|
22
|
+
...
|
23
|
+
|
24
|
+
class MetaDatum(tuple, metaclass=type):
|
25
|
+
@staticmethod
|
26
|
+
def __new__(_cls, field, value, type, tags):
|
27
|
+
"""
|
28
|
+
Create new instance of MetaDatum(field, value, type, tags)
|
29
|
+
"""
|
30
|
+
...
|
31
|
+
def __repr__(self):
|
32
|
+
"""
|
33
|
+
Return a nicely formatted representation string
|
34
|
+
"""
|
35
|
+
...
|
36
|
+
def __getnewargs__(self):
|
37
|
+
"""
|
38
|
+
Return self as a plain tuple. Used by copy and pickle.
|
39
|
+
"""
|
40
|
+
...
|
41
|
+
...
|
42
|
+
|
43
|
+
def sync_local_metadata_to_datastore(metadata_local_dir, task_ds):
|
44
|
+
...
|
45
|
+
|
46
|
+
DATASTORE_LOCAL_DIR: str
|
47
|
+
|
48
|
+
KUBERNETES_CONTAINER_IMAGE: None
|
49
|
+
|
50
|
+
KUBERNETES_CONTAINER_REGISTRY: None
|
51
|
+
|
52
|
+
KUBERNETES_FETCH_EC2_METADATA: bool
|
53
|
+
|
54
|
+
KUBERNETES_IMAGE_PULL_POLICY: None
|
55
|
+
|
56
|
+
KUBERNETES_GPU_VENDOR: str
|
57
|
+
|
58
|
+
KUBERNETES_NAMESPACE: str
|
59
|
+
|
60
|
+
KUBERNETES_NODE_SELECTOR: str
|
61
|
+
|
62
|
+
KUBERNETES_PERSISTENT_VOLUME_CLAIMS: str
|
63
|
+
|
64
|
+
KUBERNETES_TOLERATIONS: str
|
65
|
+
|
66
|
+
KUBERNETES_SERVICE_ACCOUNT: None
|
67
|
+
|
68
|
+
KUBERNETES_PORT: None
|
69
|
+
|
70
|
+
KUBERNETES_SHARED_MEMORY: None
|
71
|
+
|
72
|
+
class ResourcesDecorator(metaflow.decorators.StepDecorator, metaclass=type):
|
73
|
+
...
|
74
|
+
|
75
|
+
def get_run_time_limit_for_task(step_decos):
|
76
|
+
...
|
77
|
+
|
78
|
+
UBF_CONTROL: str
|
79
|
+
|
80
|
+
def get_docker_registry(image_uri):
|
81
|
+
"""
|
82
|
+
Explanation:
|
83
|
+
(.+?(?:[:.].+?)\/)? - [GROUP 0] REGISTRY
|
84
|
+
.+? - A registry must start with at least one character
|
85
|
+
(?:[:.].+?)\/ - A registry must have ":" or "." and end with "/"
|
86
|
+
? - Make a registry optional
|
87
|
+
(.*?) - [GROUP 1] REPOSITORY
|
88
|
+
.*? - Get repository name until separator
|
89
|
+
(?:[@:])? - SEPARATOR
|
90
|
+
?: - Don't capture separator
|
91
|
+
[@:] - The separator must be either "@" or ":"
|
92
|
+
? - The separator is optional
|
93
|
+
((?<=[@:]).*)? - [GROUP 2] TAG / DIGEST
|
94
|
+
(?<=[@:]) - A tag / digest must be preceded by "@" or ":"
|
95
|
+
.* - Capture rest of tag / digest
|
96
|
+
? - A tag / digest is optional
|
97
|
+
Examples:
|
98
|
+
image
|
99
|
+
- None
|
100
|
+
- image
|
101
|
+
- None
|
102
|
+
example/image
|
103
|
+
- None
|
104
|
+
- example/image
|
105
|
+
- None
|
106
|
+
example/image:tag
|
107
|
+
- None
|
108
|
+
- example/image
|
109
|
+
- tag
|
110
|
+
example.domain.com/example/image:tag
|
111
|
+
- example.domain.com/
|
112
|
+
- example/image
|
113
|
+
- tag
|
114
|
+
123.123.123.123:123/example/image:tag
|
115
|
+
- 123.123.123.123:123/
|
116
|
+
- example/image
|
117
|
+
- tag
|
118
|
+
example.domain.com/example/image@sha256:45b23dee0
|
119
|
+
- example.domain.com/
|
120
|
+
- example/image
|
121
|
+
- sha256:45b23dee0
|
122
|
+
"""
|
123
|
+
...
|
124
|
+
|
125
|
+
def get_ec2_instance_metadata():
|
126
|
+
"""
|
127
|
+
Fetches the EC2 instance metadata through AWS instance metadata service
|
128
|
+
|
129
|
+
Returns either an empty dictionary, or one with the keys
|
130
|
+
- ec2-instance-id
|
131
|
+
- ec2-instance-type
|
132
|
+
- ec2-region
|
133
|
+
- ec2-availability-zone
|
134
|
+
"""
|
135
|
+
...
|
136
|
+
|
137
|
+
class KubernetesException(metaflow.exception.MetaflowException, metaclass=type):
|
138
|
+
...
|
139
|
+
|
140
|
+
def parse_kube_keyvalue_list(items: typing.List[str], requires_both: bool = True):
|
141
|
+
...
|
142
|
+
|
143
|
+
MAX_MEMORY_PER_TASK: None
|
144
|
+
|
145
|
+
MAX_CPU_PER_TASK: None
|
146
|
+
|
147
|
+
class KubernetesDecorator(metaflow.decorators.StepDecorator, metaclass=type):
|
148
|
+
def __init__(self, attributes = None, statically_defined = False):
|
149
|
+
...
|
150
|
+
def step_init(self, flow, graph, step, decos, environment, flow_datastore, logger):
|
151
|
+
...
|
152
|
+
def package_init(self, flow, step_name, environment):
|
153
|
+
...
|
154
|
+
def runtime_init(self, flow, graph, package, run_id):
|
155
|
+
...
|
156
|
+
def runtime_task_created(self, task_datastore, task_id, split_index, input_paths, is_cloned, ubf_context):
|
157
|
+
...
|
158
|
+
def runtime_step_cli(self, cli_args, retry_count, max_user_code_retries, ubf_context):
|
159
|
+
...
|
160
|
+
def task_pre_step(self, step_name, task_datastore, metadata, run_id, task_id, flow, graph, retry_count, max_retries, ubf_context, inputs):
|
161
|
+
...
|
162
|
+
def task_finished(self, step_name, flow, graph, is_task_ok, retry_count, max_retries):
|
163
|
+
...
|
164
|
+
...
|
165
|
+
|
@@ -0,0 +1,100 @@
|
|
1
|
+
##################################################################################
|
2
|
+
# Auto-generated Metaflow stub file #
|
3
|
+
# MF version: 2.11.4.1 #
|
4
|
+
# Generated on 2024-02-28T05:30:43.951085 #
|
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
|
+
KUBERNETES_SECRETS: str
|
21
|
+
|
22
|
+
CLIENT_REFRESH_INTERVAL_SECONDS: int
|
23
|
+
|
24
|
+
class KubernetesJobException(metaflow.exception.MetaflowException, metaclass=type):
|
25
|
+
...
|
26
|
+
|
27
|
+
def k8s_retry(deadline_seconds = 60, max_backoff = 32):
|
28
|
+
...
|
29
|
+
|
30
|
+
class KubernetesJob(object, metaclass=type):
|
31
|
+
def __init__(self, client, **kwargs):
|
32
|
+
...
|
33
|
+
def create(self):
|
34
|
+
...
|
35
|
+
def execute(self):
|
36
|
+
...
|
37
|
+
def step_name(self, step_name):
|
38
|
+
...
|
39
|
+
def namespace(self, namespace):
|
40
|
+
...
|
41
|
+
def name(self, name):
|
42
|
+
...
|
43
|
+
def command(self, command):
|
44
|
+
...
|
45
|
+
def image(self, image):
|
46
|
+
...
|
47
|
+
def cpu(self, cpu):
|
48
|
+
...
|
49
|
+
def memory(self, mem):
|
50
|
+
...
|
51
|
+
def environment_variable(self, name, value):
|
52
|
+
...
|
53
|
+
def label(self, name, value):
|
54
|
+
...
|
55
|
+
def annotation(self, name, value):
|
56
|
+
...
|
57
|
+
...
|
58
|
+
|
59
|
+
class RunningJob(object, metaclass=type):
|
60
|
+
def __init__(self, client, name, uid, namespace):
|
61
|
+
...
|
62
|
+
def __repr__(self):
|
63
|
+
...
|
64
|
+
def kill(self):
|
65
|
+
...
|
66
|
+
@property
|
67
|
+
def id(self):
|
68
|
+
...
|
69
|
+
@property
|
70
|
+
def is_done(self):
|
71
|
+
...
|
72
|
+
@property
|
73
|
+
def status(self):
|
74
|
+
...
|
75
|
+
@property
|
76
|
+
def has_succeeded(self):
|
77
|
+
...
|
78
|
+
@property
|
79
|
+
def has_failed(self):
|
80
|
+
...
|
81
|
+
@property
|
82
|
+
def _have_containers_succeeded(self):
|
83
|
+
...
|
84
|
+
@property
|
85
|
+
def _has_any_container_failed(self):
|
86
|
+
...
|
87
|
+
@property
|
88
|
+
def _are_pod_containers_done(self):
|
89
|
+
...
|
90
|
+
@property
|
91
|
+
def is_running(self):
|
92
|
+
...
|
93
|
+
@property
|
94
|
+
def is_waiting(self):
|
95
|
+
...
|
96
|
+
@property
|
97
|
+
def reason(self):
|
98
|
+
...
|
99
|
+
...
|
100
|
+
|
@@ -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.941736 #
|
5
|
+
##################################################################################
|
6
|
+
|
7
|
+
from __future__ import annotations
|
8
|
+
|
9
|
+
|
@@ -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.929728 #
|
5
|
+
##################################################################################
|
6
|
+
|
7
|
+
from __future__ import annotations
|
8
|
+
|
9
|
+
import typing
|
10
|
+
if typing.TYPE_CHECKING:
|
11
|
+
import metaflow.decorators
|
12
|
+
|
13
|
+
UBF_CONTROL: str
|
14
|
+
|
15
|
+
class MetaflowException(Exception, metaclass=type):
|
16
|
+
def __init__(self, msg = "", lineno = None):
|
17
|
+
...
|
18
|
+
def __str__(self):
|
19
|
+
...
|
20
|
+
...
|
21
|
+
|
22
|
+
class ParallelDecorator(metaflow.decorators.StepDecorator, metaclass=type):
|
23
|
+
def __init__(self, attributes = None, statically_defined = False):
|
24
|
+
...
|
25
|
+
def runtime_step_cli(self, cli_args, retry_count, max_user_code_retries, ubf_context):
|
26
|
+
...
|
27
|
+
def step_init(self, flow, graph, step_name, decorators, environment, flow_datastore, logger):
|
28
|
+
...
|
29
|
+
def task_decorate(self, step_func, flow, graph, retry_count, max_user_code_retries, ubf_context):
|
30
|
+
...
|
31
|
+
def setup_distributed_env(self, flow):
|
32
|
+
...
|
33
|
+
...
|
34
|
+
|
@@ -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:43.933532 #
|
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
|
+
class MetaflowException(Exception, metaclass=type):
|
15
|
+
def __init__(self, msg = "", lineno = None):
|
16
|
+
...
|
17
|
+
def __str__(self):
|
18
|
+
...
|
19
|
+
...
|
20
|
+
|
21
|
+
current: metaflow.metaflow_current.Current
|
22
|
+
|
23
|
+
VALID_NAME_RE: str
|
24
|
+
|
25
|
+
VALID_NAME_LEN: int
|
26
|
+
|
27
|
+
class ProjectDecorator(metaflow.decorators.FlowDecorator, metaclass=type):
|
28
|
+
def flow_init(self, flow, graph, environment, flow_datastore, metadata, logger, echo, options):
|
29
|
+
...
|
30
|
+
def get_top_level_options(self):
|
31
|
+
...
|
32
|
+
...
|
33
|
+
|
34
|
+
def format_name(flow_name, project_name, deploy_prod, given_branch, user_name):
|
35
|
+
...
|
36
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
##################################################################################
|
2
|
+
# Auto-generated Metaflow stub file #
|
3
|
+
# MF version: 2.11.4.1 #
|
4
|
+
# Generated on 2024-02-28T05:30:43.928983 #
|
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
|
+
MAGIC_FILE: str
|
18
|
+
|
@@ -0,0 +1,59 @@
|
|
1
|
+
##################################################################################
|
2
|
+
# Auto-generated Metaflow stub file #
|
3
|
+
# MF version: 2.11.4.1 #
|
4
|
+
# Generated on 2024-02-28T05:30:43.958051 #
|
5
|
+
##################################################################################
|
6
|
+
|
7
|
+
from __future__ import annotations
|
8
|
+
|
9
|
+
import typing
|
10
|
+
if typing.TYPE_CHECKING:
|
11
|
+
import metaflow.decorators
|
12
|
+
|
13
|
+
EXT_PKG: str
|
14
|
+
|
15
|
+
class MetaDatum(tuple, metaclass=type):
|
16
|
+
@staticmethod
|
17
|
+
def __new__(_cls, field, value, type, tags):
|
18
|
+
"""
|
19
|
+
Create new instance of MetaDatum(field, value, type, tags)
|
20
|
+
"""
|
21
|
+
...
|
22
|
+
def __repr__(self):
|
23
|
+
"""
|
24
|
+
Return a nicely formatted representation string
|
25
|
+
"""
|
26
|
+
...
|
27
|
+
def __getnewargs__(self):
|
28
|
+
"""
|
29
|
+
Return self as a plain tuple. Used by copy and pickle.
|
30
|
+
"""
|
31
|
+
...
|
32
|
+
...
|
33
|
+
|
34
|
+
INFO_FILE: str
|
35
|
+
|
36
|
+
class CondaStepDecorator(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 task_pre_step(self, step_name, task_datastore, meta, run_id, task_id, flow, graph, retry_count, max_retries, ubf_context, inputs):
|
46
|
+
...
|
47
|
+
def runtime_step_cli(self, cli_args, retry_count, max_user_code_retries, ubf_context):
|
48
|
+
...
|
49
|
+
def runtime_finished(self, exception):
|
50
|
+
...
|
51
|
+
...
|
52
|
+
|
53
|
+
class CondaFlowDecorator(metaflow.decorators.FlowDecorator, metaclass=type):
|
54
|
+
def __init__(self, attributes = None, statically_defined = False):
|
55
|
+
...
|
56
|
+
def flow_init(self, flow, graph, environment, flow_datastore, metadata, logger, echo, options):
|
57
|
+
...
|
58
|
+
...
|
59
|
+
|
@@ -0,0 +1,86 @@
|
|
1
|
+
##################################################################################
|
2
|
+
# Auto-generated Metaflow stub file #
|
3
|
+
# MF version: 2.11.4.1 #
|
4
|
+
# Generated on 2024-02-28T05:30:43.959635 #
|
5
|
+
##################################################################################
|
6
|
+
|
7
|
+
from __future__ import annotations
|
8
|
+
|
9
|
+
import typing
|
10
|
+
if typing.TYPE_CHECKING:
|
11
|
+
import io
|
12
|
+
import metaflow.metaflow_environment
|
13
|
+
import abc
|
14
|
+
import metaflow.exception
|
15
|
+
|
16
|
+
class MetaflowException(Exception, metaclass=type):
|
17
|
+
def __init__(self, msg = "", lineno = None):
|
18
|
+
...
|
19
|
+
def __str__(self):
|
20
|
+
...
|
21
|
+
...
|
22
|
+
|
23
|
+
def get_pinned_conda_libs(python_version, datastore_type):
|
24
|
+
...
|
25
|
+
|
26
|
+
MAGIC_FILE: str
|
27
|
+
|
28
|
+
def conda_platform():
|
29
|
+
...
|
30
|
+
|
31
|
+
class CondaEnvironmentException(metaflow.exception.MetaflowException, metaclass=type):
|
32
|
+
def __init__(self, msg):
|
33
|
+
...
|
34
|
+
...
|
35
|
+
|
36
|
+
class CondaEnvironment(metaflow.metaflow_environment.MetaflowEnvironment, metaclass=type):
|
37
|
+
def __init__(self, flow):
|
38
|
+
...
|
39
|
+
def set_local_root(self, local_root):
|
40
|
+
...
|
41
|
+
def decospecs(self):
|
42
|
+
...
|
43
|
+
def validate_environment(self, echo, datastore_type):
|
44
|
+
...
|
45
|
+
def init_environment(self, echo):
|
46
|
+
...
|
47
|
+
def executable(self, step_name, default = None):
|
48
|
+
...
|
49
|
+
def interpreter(self, step_name):
|
50
|
+
...
|
51
|
+
def is_disabled(self, step):
|
52
|
+
...
|
53
|
+
def pylint_config(self):
|
54
|
+
...
|
55
|
+
@classmethod
|
56
|
+
def get_client_info(cls, flow_name, metadata):
|
57
|
+
...
|
58
|
+
def add_to_package(self):
|
59
|
+
...
|
60
|
+
def bootstrap_commands(self, step_name, datastore_type):
|
61
|
+
...
|
62
|
+
def get_environment_manifest_path(self):
|
63
|
+
...
|
64
|
+
def read_from_environment_manifest(self, keys):
|
65
|
+
...
|
66
|
+
def write_to_environment_manifest(self, keys, value):
|
67
|
+
...
|
68
|
+
...
|
69
|
+
|
70
|
+
class LazyOpen(io.BufferedIOBase, metaclass=abc.ABCMeta):
|
71
|
+
def __init__(self, filename, mode = "rb", url = None):
|
72
|
+
...
|
73
|
+
def readable(self):
|
74
|
+
...
|
75
|
+
def seekable(self):
|
76
|
+
...
|
77
|
+
def read(self, size = -1):
|
78
|
+
...
|
79
|
+
def seek(self, offset, whence = 0):
|
80
|
+
...
|
81
|
+
def tell(self):
|
82
|
+
...
|
83
|
+
def close(self):
|
84
|
+
...
|
85
|
+
...
|
86
|
+
|
@@ -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.957255 #
|
5
|
+
##################################################################################
|
6
|
+
|
7
|
+
from __future__ import annotations
|
8
|
+
|
9
|
+
import typing
|
10
|
+
if typing.TYPE_CHECKING:
|
11
|
+
import metaflow.decorators
|
12
|
+
|
13
|
+
class PyPIStepDecorator(metaflow.decorators.StepDecorator, metaclass=type):
|
14
|
+
def step_init(self, flow, graph, step, decos, environment, flow_datastore, logger):
|
15
|
+
...
|
16
|
+
...
|
17
|
+
|
18
|
+
class PyPIFlowDecorator(metaflow.decorators.FlowDecorator, metaclass=type):
|
19
|
+
def flow_init(self, flow, graph, environment, flow_datastore, metadata, logger, echo, options):
|
20
|
+
...
|
21
|
+
...
|
22
|
+
|
@@ -0,0 +1,50 @@
|
|
1
|
+
##################################################################################
|
2
|
+
# Auto-generated Metaflow stub file #
|
3
|
+
# MF version: 2.11.4.1 #
|
4
|
+
# Generated on 2024-02-28T05:30:43.960176 #
|
5
|
+
##################################################################################
|
6
|
+
|
7
|
+
from __future__ import annotations
|
8
|
+
|
9
|
+
import typing
|
10
|
+
if typing.TYPE_CHECKING:
|
11
|
+
import metaflow.plugins.pypi.conda_environment
|
12
|
+
import metaflow.metaflow_environment
|
13
|
+
|
14
|
+
class CondaEnvironment(metaflow.metaflow_environment.MetaflowEnvironment, metaclass=type):
|
15
|
+
def __init__(self, flow):
|
16
|
+
...
|
17
|
+
def set_local_root(self, local_root):
|
18
|
+
...
|
19
|
+
def decospecs(self):
|
20
|
+
...
|
21
|
+
def validate_environment(self, echo, datastore_type):
|
22
|
+
...
|
23
|
+
def init_environment(self, echo):
|
24
|
+
...
|
25
|
+
def executable(self, step_name, default = None):
|
26
|
+
...
|
27
|
+
def interpreter(self, step_name):
|
28
|
+
...
|
29
|
+
def is_disabled(self, step):
|
30
|
+
...
|
31
|
+
def pylint_config(self):
|
32
|
+
...
|
33
|
+
@classmethod
|
34
|
+
def get_client_info(cls, flow_name, metadata):
|
35
|
+
...
|
36
|
+
def add_to_package(self):
|
37
|
+
...
|
38
|
+
def bootstrap_commands(self, step_name, datastore_type):
|
39
|
+
...
|
40
|
+
def get_environment_manifest_path(self):
|
41
|
+
...
|
42
|
+
def read_from_environment_manifest(self, keys):
|
43
|
+
...
|
44
|
+
def write_to_environment_manifest(self, keys, value):
|
45
|
+
...
|
46
|
+
...
|
47
|
+
|
48
|
+
class PyPIEnvironment(metaflow.plugins.pypi.conda_environment.CondaEnvironment, metaclass=type):
|
49
|
+
...
|
50
|
+
|
@@ -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.958470 #
|
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
|
+
def conda_platform():
|
18
|
+
...
|
19
|
+
|
20
|
+
def wheel_tags(wheel):
|
21
|
+
...
|
22
|
+
|
23
|
+
def pip_tags(python_version, mamba_platform):
|
24
|
+
...
|
25
|
+
|
26
|
+
def parse_filename_from_url(url):
|
27
|
+
...
|
28
|
+
|
@@ -0,0 +1,15 @@
|
|
1
|
+
##################################################################################
|
2
|
+
# Auto-generated Metaflow stub file #
|
3
|
+
# MF version: 2.11.4.1 #
|
4
|
+
# Generated on 2024-02-28T05:30:43.927805 #
|
5
|
+
##################################################################################
|
6
|
+
|
7
|
+
from __future__ import annotations
|
8
|
+
|
9
|
+
import typing
|
10
|
+
if typing.TYPE_CHECKING:
|
11
|
+
import metaflow.decorators
|
12
|
+
|
13
|
+
class ResourcesDecorator(metaflow.decorators.StepDecorator, metaclass=type):
|
14
|
+
...
|
15
|
+
|
@@ -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.928750 #
|
5
|
+
##################################################################################
|
6
|
+
|
7
|
+
from __future__ import annotations
|
8
|
+
|
9
|
+
import typing
|
10
|
+
if typing.TYPE_CHECKING:
|
11
|
+
import metaflow.decorators
|
12
|
+
|
13
|
+
class MetaflowException(Exception, metaclass=type):
|
14
|
+
def __init__(self, msg = "", lineno = None):
|
15
|
+
...
|
16
|
+
def __str__(self):
|
17
|
+
...
|
18
|
+
...
|
19
|
+
|
20
|
+
MAX_ATTEMPTS: int
|
21
|
+
|
22
|
+
class RetryDecorator(metaflow.decorators.StepDecorator, metaclass=type):
|
23
|
+
def step_init(self, flow, graph, step, decos, environment, flow_datastore, logger):
|
24
|
+
...
|
25
|
+
def step_task_retry_count(self):
|
26
|
+
...
|
27
|
+
...
|
28
|
+
|
@@ -0,0 +1,21 @@
|
|
1
|
+
##################################################################################
|
2
|
+
# Auto-generated Metaflow stub file #
|
3
|
+
# MF version: 2.11.4.1 #
|
4
|
+
# Generated on 2024-02-28T05:30:43.932618 #
|
5
|
+
##################################################################################
|
6
|
+
|
7
|
+
from __future__ import annotations
|
8
|
+
|
9
|
+
import typing
|
10
|
+
if typing.TYPE_CHECKING:
|
11
|
+
import abc
|
12
|
+
|
13
|
+
class SecretsProvider(abc.ABC, metaclass=abc.ABCMeta):
|
14
|
+
def get_secret_as_dict(self, secret_id, options = {}, role = None) -> typing.Dict[str, str]:
|
15
|
+
"""
|
16
|
+
Retrieve the secret from secrets backend, and return a dictionary of
|
17
|
+
environment variables.
|
18
|
+
"""
|
19
|
+
...
|
20
|
+
...
|
21
|
+
|