ob-metaflow-stubs 6.0.3.147__py2.py3-none-any.whl → 6.0.3.150__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 +599 -600
- metaflow-stubs/cards.pyi +2 -2
- metaflow-stubs/cli.pyi +2 -2
- metaflow-stubs/cli_components/__init__.pyi +2 -2
- metaflow-stubs/cli_components/utils.pyi +2 -2
- metaflow-stubs/client/__init__.pyi +2 -2
- metaflow-stubs/client/core.pyi +6 -6
- metaflow-stubs/client/filecache.pyi +2 -2
- metaflow-stubs/events.pyi +3 -3
- metaflow-stubs/exception.pyi +2 -2
- metaflow-stubs/flowspec.pyi +5 -5
- metaflow-stubs/generated_for.txt +1 -1
- metaflow-stubs/includefile.pyi +3 -3
- metaflow-stubs/info_file.pyi +2 -2
- metaflow-stubs/metadata_provider/__init__.pyi +2 -2
- metaflow-stubs/metadata_provider/heartbeat.pyi +2 -2
- metaflow-stubs/metadata_provider/metadata.pyi +3 -3
- metaflow-stubs/metadata_provider/util.pyi +2 -2
- metaflow-stubs/metaflow_config.pyi +4 -2
- metaflow-stubs/metaflow_current.pyi +116 -116
- metaflow-stubs/mf_extensions/__init__.pyi +2 -2
- metaflow-stubs/mf_extensions/obcheckpoint/__init__.pyi +2 -2
- metaflow-stubs/mf_extensions/obcheckpoint/plugins/__init__.pyi +2 -2
- metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/__init__.pyi +2 -2
- metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/card_utils/__init__.pyi +2 -2
- metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/card_utils/async_cards.pyi +3 -3
- metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/card_utils/deco_injection_mixin.pyi +2 -2
- metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/card_utils/extra_components.pyi +4 -4
- metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/checkpoints/__init__.pyi +2 -2
- metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/checkpoints/cards/__init__.pyi +2 -2
- metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/checkpoints/cards/checkpoint_lister.pyi +4 -4
- metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/checkpoints/cards/lineage_card.pyi +2 -2
- metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/checkpoints/checkpoint_storage.pyi +4 -4
- metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/checkpoints/constructors.pyi +2 -2
- metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/checkpoints/core.pyi +4 -4
- metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/checkpoints/decorator.pyi +5 -5
- metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/checkpoints/exceptions.pyi +2 -2
- metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/checkpoints/final_api.pyi +2 -2
- metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/checkpoints/lineage.pyi +2 -2
- metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/datastore/__init__.pyi +2 -2
- metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/datastore/core.pyi +2 -2
- metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/datastore/exceptions.pyi +2 -2
- metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/datastore/task_utils.pyi +4 -4
- metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/datastore/utils.pyi +2 -2
- metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/datastructures.pyi +3 -3
- metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/exceptions.pyi +2 -2
- metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/hf_hub/__init__.pyi +2 -2
- metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/hf_hub/decorator.pyi +2 -2
- metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/modeling_utils/__init__.pyi +2 -2
- metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/modeling_utils/core.pyi +3 -3
- metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/modeling_utils/exceptions.pyi +2 -2
- metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/modeling_utils/model_storage.pyi +4 -4
- metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/utils/__init__.pyi +2 -2
- metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/utils/flowspec_utils.pyi +2 -2
- metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/utils/general.pyi +2 -2
- metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/utils/identity_utils.pyi +3 -3
- metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/utils/serialization_handler/__init__.pyi +2 -2
- metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/utils/serialization_handler/base.pyi +2 -2
- metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/utils/serialization_handler/tar.pyi +3 -3
- metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/utils/tar_utils.pyi +3 -3
- metaflow-stubs/mf_extensions/outerbounds/__init__.pyi +2 -2
- metaflow-stubs/mf_extensions/outerbounds/plugins/__init__.pyi +2 -2
- metaflow-stubs/mf_extensions/outerbounds/plugins/card_utilities/__init__.pyi +2 -2
- metaflow-stubs/mf_extensions/outerbounds/plugins/card_utilities/injector.pyi +2 -2
- metaflow-stubs/mf_extensions/outerbounds/plugins/ollama/__init__.pyi +2 -2
- metaflow-stubs/mf_extensions/outerbounds/plugins/ollama/ollama.pyi +2 -2
- metaflow-stubs/mf_extensions/outerbounds/plugins/snowflake/__init__.pyi +2 -2
- metaflow-stubs/mf_extensions/outerbounds/plugins/snowflake/snowflake.pyi +2 -2
- metaflow-stubs/mf_extensions/outerbounds/profilers/__init__.pyi +2 -2
- metaflow-stubs/mf_extensions/outerbounds/profilers/gpu.pyi +2 -2
- metaflow-stubs/mf_extensions/outerbounds/remote_config.pyi +2 -2
- metaflow-stubs/mf_extensions/outerbounds/toplevel/__init__.pyi +2 -2
- metaflow-stubs/mf_extensions/outerbounds/toplevel/global_aliases_for_metaflow_package.pyi +2 -2
- metaflow-stubs/multicore_utils.pyi +2 -2
- metaflow-stubs/parameters.pyi +3 -3
- metaflow-stubs/plugins/__init__.pyi +15 -11
- metaflow-stubs/plugins/airflow/__init__.pyi +2 -2
- metaflow-stubs/plugins/airflow/airflow_utils.pyi +2 -2
- metaflow-stubs/plugins/airflow/exception.pyi +2 -2
- metaflow-stubs/plugins/airflow/sensors/__init__.pyi +2 -2
- metaflow-stubs/plugins/airflow/sensors/base_sensor.pyi +2 -2
- metaflow-stubs/plugins/airflow/sensors/external_task_sensor.pyi +2 -2
- metaflow-stubs/plugins/airflow/sensors/s3_sensor.pyi +2 -2
- metaflow-stubs/plugins/argo/__init__.pyi +2 -2
- metaflow-stubs/plugins/argo/argo_client.pyi +3 -3
- metaflow-stubs/plugins/argo/argo_events.pyi +2 -2
- metaflow-stubs/plugins/argo/argo_workflows.pyi +4 -4
- metaflow-stubs/plugins/argo/argo_workflows_decorator.pyi +2 -2
- metaflow-stubs/plugins/argo/argo_workflows_deployer.pyi +5 -5
- metaflow-stubs/plugins/argo/argo_workflows_deployer_objects.pyi +7 -5
- metaflow-stubs/plugins/aws/__init__.pyi +2 -2
- metaflow-stubs/plugins/aws/aws_client.pyi +2 -2
- metaflow-stubs/plugins/aws/aws_utils.pyi +2 -2
- metaflow-stubs/plugins/aws/batch/__init__.pyi +2 -2
- metaflow-stubs/plugins/aws/batch/batch.pyi +2 -2
- metaflow-stubs/plugins/aws/batch/batch_client.pyi +2 -2
- metaflow-stubs/plugins/aws/batch/batch_decorator.pyi +2 -2
- metaflow-stubs/plugins/aws/secrets_manager/__init__.pyi +2 -2
- metaflow-stubs/plugins/aws/secrets_manager/aws_secrets_manager_secrets_provider.pyi +3 -3
- metaflow-stubs/plugins/aws/step_functions/__init__.pyi +2 -2
- metaflow-stubs/plugins/aws/step_functions/event_bridge_client.pyi +2 -2
- metaflow-stubs/plugins/aws/step_functions/schedule_decorator.pyi +2 -2
- metaflow-stubs/plugins/aws/step_functions/step_functions.pyi +2 -2
- metaflow-stubs/plugins/aws/step_functions/step_functions_client.pyi +2 -2
- metaflow-stubs/plugins/aws/step_functions/step_functions_deployer.pyi +4 -4
- metaflow-stubs/plugins/aws/step_functions/step_functions_deployer_objects.pyi +4 -4
- metaflow-stubs/plugins/azure/__init__.pyi +2 -2
- metaflow-stubs/plugins/azure/azure_credential.pyi +2 -2
- metaflow-stubs/plugins/azure/azure_exceptions.pyi +2 -2
- metaflow-stubs/plugins/azure/azure_secret_manager_secrets_provider.pyi +3 -3
- metaflow-stubs/plugins/azure/azure_utils.pyi +2 -2
- metaflow-stubs/plugins/azure/blob_service_client_factory.pyi +2 -2
- metaflow-stubs/plugins/azure/includefile_support.pyi +2 -2
- metaflow-stubs/plugins/cards/__init__.pyi +6 -6
- metaflow-stubs/plugins/cards/card_client.pyi +3 -3
- metaflow-stubs/plugins/cards/card_creator.pyi +2 -2
- metaflow-stubs/plugins/cards/card_datastore.pyi +2 -2
- metaflow-stubs/plugins/cards/card_decorator.pyi +2 -2
- metaflow-stubs/plugins/cards/card_modules/__init__.pyi +2 -2
- metaflow-stubs/plugins/cards/card_modules/basic.pyi +3 -3
- metaflow-stubs/plugins/cards/card_modules/card.pyi +2 -2
- metaflow-stubs/plugins/cards/card_modules/components.pyi +4 -4
- metaflow-stubs/plugins/cards/card_modules/convert_to_native_type.pyi +2 -2
- metaflow-stubs/plugins/cards/card_modules/renderer_tools.pyi +2 -2
- metaflow-stubs/plugins/cards/card_modules/test_cards.pyi +2 -2
- metaflow-stubs/plugins/cards/card_resolver.pyi +2 -2
- metaflow-stubs/plugins/cards/component_serializer.pyi +2 -2
- metaflow-stubs/plugins/cards/exception.pyi +2 -2
- metaflow-stubs/plugins/catch_decorator.pyi +3 -3
- metaflow-stubs/plugins/datatools/__init__.pyi +2 -2
- metaflow-stubs/plugins/datatools/local.pyi +2 -2
- metaflow-stubs/plugins/datatools/s3/__init__.pyi +2 -2
- metaflow-stubs/plugins/datatools/s3/s3.pyi +4 -4
- metaflow-stubs/plugins/datatools/s3/s3tail.pyi +2 -2
- metaflow-stubs/plugins/datatools/s3/s3util.pyi +2 -2
- metaflow-stubs/plugins/debug_logger.pyi +2 -2
- metaflow-stubs/plugins/debug_monitor.pyi +2 -2
- metaflow-stubs/plugins/environment_decorator.pyi +2 -2
- metaflow-stubs/plugins/events_decorator.pyi +2 -2
- metaflow-stubs/plugins/frameworks/__init__.pyi +2 -2
- metaflow-stubs/plugins/frameworks/pytorch.pyi +2 -2
- metaflow-stubs/plugins/gcp/__init__.pyi +2 -2
- metaflow-stubs/plugins/gcp/gcp_secret_manager_secrets_provider.pyi +3 -3
- metaflow-stubs/plugins/gcp/gs_exceptions.pyi +2 -2
- metaflow-stubs/plugins/gcp/gs_storage_client_factory.pyi +2 -2
- metaflow-stubs/plugins/gcp/gs_utils.pyi +2 -2
- metaflow-stubs/plugins/gcp/includefile_support.pyi +2 -2
- metaflow-stubs/plugins/kubernetes/__init__.pyi +2 -2
- metaflow-stubs/plugins/kubernetes/kube_utils.pyi +3 -3
- metaflow-stubs/plugins/kubernetes/kubernetes.pyi +2 -2
- metaflow-stubs/plugins/kubernetes/kubernetes_client.pyi +2 -2
- metaflow-stubs/plugins/kubernetes/kubernetes_decorator.pyi +4 -2
- metaflow-stubs/plugins/kubernetes/kubernetes_jobsets.pyi +2 -2
- metaflow-stubs/plugins/kubernetes/spot_monitor_sidecar.pyi +2 -2
- metaflow-stubs/plugins/ollama/__init__.pyi +2 -2
- metaflow-stubs/plugins/parallel_decorator.pyi +2 -2
- metaflow-stubs/plugins/perimeters.pyi +2 -2
- metaflow-stubs/plugins/project_decorator.pyi +2 -2
- metaflow-stubs/plugins/pypi/__init__.pyi +3 -2
- metaflow-stubs/plugins/pypi/conda_decorator.pyi +2 -2
- metaflow-stubs/plugins/pypi/conda_environment.pyi +4 -4
- metaflow-stubs/plugins/pypi/parsers.pyi +113 -0
- metaflow-stubs/plugins/pypi/pypi_decorator.pyi +2 -2
- metaflow-stubs/plugins/pypi/pypi_environment.pyi +2 -2
- metaflow-stubs/plugins/pypi/utils.pyi +2 -2
- metaflow-stubs/plugins/resources_decorator.pyi +2 -2
- metaflow-stubs/plugins/retry_decorator.pyi +2 -2
- metaflow-stubs/plugins/secrets/__init__.pyi +3 -3
- metaflow-stubs/plugins/secrets/inline_secrets_provider.pyi +3 -3
- metaflow-stubs/plugins/secrets/secrets_decorator.pyi +2 -2
- metaflow-stubs/plugins/snowflake/__init__.pyi +2 -2
- metaflow-stubs/plugins/storage_executor.pyi +2 -2
- metaflow-stubs/plugins/test_unbounded_foreach_decorator.pyi +3 -3
- metaflow-stubs/plugins/timeout_decorator.pyi +3 -3
- metaflow-stubs/profilers/__init__.pyi +2 -2
- metaflow-stubs/pylint_wrapper.pyi +2 -2
- metaflow-stubs/runner/__init__.pyi +2 -2
- metaflow-stubs/runner/deployer.pyi +33 -31
- metaflow-stubs/runner/deployer_impl.pyi +3 -3
- metaflow-stubs/runner/metaflow_runner.pyi +4 -4
- metaflow-stubs/runner/nbdeploy.pyi +2 -2
- metaflow-stubs/runner/nbrun.pyi +2 -2
- metaflow-stubs/runner/subprocess_manager.pyi +2 -2
- metaflow-stubs/runner/utils.pyi +3 -3
- metaflow-stubs/system/__init__.pyi +2 -2
- metaflow-stubs/system/system_logger.pyi +3 -3
- metaflow-stubs/system/system_monitor.pyi +2 -2
- metaflow-stubs/tagging_util.pyi +2 -2
- metaflow-stubs/tuple_util.pyi +2 -2
- metaflow-stubs/user_configs/__init__.pyi +2 -2
- metaflow-stubs/user_configs/config_decorators.pyi +6 -6
- metaflow-stubs/user_configs/config_options.pyi +3 -3
- metaflow-stubs/user_configs/config_parameters.pyi +6 -6
- {ob_metaflow_stubs-6.0.3.147.dist-info → ob_metaflow_stubs-6.0.3.150.dist-info}/METADATA +1 -1
- ob_metaflow_stubs-6.0.3.150.dist-info/RECORD +198 -0
- ob_metaflow_stubs-6.0.3.147.dist-info/RECORD +0 -197
- {ob_metaflow_stubs-6.0.3.147.dist-info → ob_metaflow_stubs-6.0.3.150.dist-info}/WHEEL +0 -0
- {ob_metaflow_stubs-6.0.3.147.dist-info → ob_metaflow_stubs-6.0.3.150.dist-info}/top_level.txt +0 -0
@@ -1,7 +1,7 @@
|
|
1
1
|
######################################################################################################
|
2
2
|
# Auto-generated Metaflow stub file #
|
3
|
-
# MF version: 2.15.
|
4
|
-
# Generated on 2025-03-
|
3
|
+
# MF version: 2.15.5.1+obcheckpoint(0.1.9);ob(v1) #
|
4
|
+
# Generated on 2025-03-13T17:31:16.202840 #
|
5
5
|
######################################################################################################
|
6
6
|
|
7
7
|
from __future__ import annotations
|
@@ -1,7 +1,7 @@
|
|
1
1
|
######################################################################################################
|
2
2
|
# Auto-generated Metaflow stub file #
|
3
|
-
# MF version: 2.15.
|
4
|
-
# Generated on 2025-03-
|
3
|
+
# MF version: 2.15.5.1+obcheckpoint(0.1.9);ob(v1) #
|
4
|
+
# Generated on 2025-03-13T17:31:16.166134 #
|
5
5
|
######################################################################################################
|
6
6
|
|
7
7
|
from __future__ import annotations
|
@@ -1,7 +1,7 @@
|
|
1
1
|
######################################################################################################
|
2
2
|
# Auto-generated Metaflow stub file #
|
3
|
-
# MF version: 2.15.
|
4
|
-
# Generated on 2025-03-
|
3
|
+
# MF version: 2.15.5.1+obcheckpoint(0.1.9);ob(v1) #
|
4
|
+
# Generated on 2025-03-13T17:31:16.207256 #
|
5
5
|
######################################################################################################
|
6
6
|
|
7
7
|
from __future__ import annotations
|
@@ -1,7 +1,7 @@
|
|
1
1
|
######################################################################################################
|
2
2
|
# Auto-generated Metaflow stub file #
|
3
|
-
# MF version: 2.15.
|
4
|
-
# Generated on 2025-03-
|
3
|
+
# MF version: 2.15.5.1+obcheckpoint(0.1.9);ob(v1) #
|
4
|
+
# Generated on 2025-03-13T17:31:16.203000 #
|
5
5
|
######################################################################################################
|
6
6
|
|
7
7
|
from __future__ import annotations
|
@@ -14,6 +14,7 @@ from . import pypi_decorator as pypi_decorator
|
|
14
14
|
from . import utils as utils
|
15
15
|
from . import conda_environment as conda_environment
|
16
16
|
from . import pypi_environment as pypi_environment
|
17
|
+
from . import parsers as parsers
|
17
18
|
|
18
19
|
MAGIC_FILE: str
|
19
20
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
######################################################################################################
|
2
2
|
# Auto-generated Metaflow stub file #
|
3
|
-
# MF version: 2.15.
|
4
|
-
# Generated on 2025-03-
|
3
|
+
# MF version: 2.15.5.1+obcheckpoint(0.1.9);ob(v1) #
|
4
|
+
# Generated on 2025-03-13T17:31:16.220531 #
|
5
5
|
######################################################################################################
|
6
6
|
|
7
7
|
from __future__ import annotations
|
@@ -1,19 +1,19 @@
|
|
1
1
|
######################################################################################################
|
2
2
|
# Auto-generated Metaflow stub file #
|
3
|
-
# MF version: 2.15.
|
4
|
-
# Generated on 2025-03-
|
3
|
+
# MF version: 2.15.5.1+obcheckpoint(0.1.9);ob(v1) #
|
4
|
+
# Generated on 2025-03-13T17:31:16.221840 #
|
5
5
|
######################################################################################################
|
6
6
|
|
7
7
|
from __future__ import annotations
|
8
8
|
|
9
9
|
import abc
|
10
|
-
import metaflow
|
11
10
|
import io
|
11
|
+
import metaflow
|
12
12
|
import typing
|
13
13
|
if typing.TYPE_CHECKING:
|
14
|
+
import metaflow.metaflow_environment
|
14
15
|
import abc
|
15
16
|
import io
|
16
|
-
import metaflow.metaflow_environment
|
17
17
|
import metaflow.exception
|
18
18
|
|
19
19
|
from ...exception import MetaflowException as MetaflowException
|
@@ -0,0 +1,113 @@
|
|
1
|
+
######################################################################################################
|
2
|
+
# Auto-generated Metaflow stub file #
|
3
|
+
# MF version: 2.15.5.1+obcheckpoint(0.1.9);ob(v1) #
|
4
|
+
# Generated on 2025-03-13T17:31:16.178417 #
|
5
|
+
######################################################################################################
|
6
|
+
|
7
|
+
from __future__ import annotations
|
8
|
+
|
9
|
+
import metaflow
|
10
|
+
import typing
|
11
|
+
if typing.TYPE_CHECKING:
|
12
|
+
import metaflow.exception
|
13
|
+
|
14
|
+
from ...exception import MetaflowException as MetaflowException
|
15
|
+
|
16
|
+
class ParserValueError(metaflow.exception.MetaflowException, metaclass=type):
|
17
|
+
...
|
18
|
+
|
19
|
+
def requirements_txt_parser(content: str):
|
20
|
+
"""
|
21
|
+
Parse non-comment lines from a requirements.txt file as strictly valid
|
22
|
+
PEP 508 requirements.
|
23
|
+
|
24
|
+
Recognizes direct references (e.g. "my_lib @ git+https://..."), extras
|
25
|
+
(e.g. "requests[security]"), and version specifiers (e.g. "==2.0"). If
|
26
|
+
the package name is "python", its specifier is stored in the "python"
|
27
|
+
key instead of "packages".
|
28
|
+
|
29
|
+
Parameters
|
30
|
+
----------
|
31
|
+
content : str
|
32
|
+
Contents of a requirements.txt file.
|
33
|
+
|
34
|
+
Returns
|
35
|
+
-------
|
36
|
+
dict
|
37
|
+
A dictionary with two keys:
|
38
|
+
- "packages": dict(str -> str)
|
39
|
+
Mapping from package name (plus optional extras/references) to a
|
40
|
+
version specifier string.
|
41
|
+
- "python": str or None
|
42
|
+
The Python version constraints if present, otherwise None.
|
43
|
+
|
44
|
+
Raises
|
45
|
+
------
|
46
|
+
ParserValueError
|
47
|
+
If a requirement line is invalid PEP 508 or if environment markers are
|
48
|
+
detected, or if multiple Python constraints are specified.
|
49
|
+
"""
|
50
|
+
...
|
51
|
+
|
52
|
+
def pyproject_toml_parser(content: str):
|
53
|
+
"""
|
54
|
+
Parse a pyproject.toml file per PEP 621.
|
55
|
+
|
56
|
+
Reads the 'requires-python' and 'dependencies' fields from the "[project]" section.
|
57
|
+
Each dependency line must be a valid PEP 508 requirement. If the package name is
|
58
|
+
"python", its specifier is stored in the "python" key instead of "packages".
|
59
|
+
|
60
|
+
Parameters
|
61
|
+
----------
|
62
|
+
content : str
|
63
|
+
Contents of a pyproject.toml file.
|
64
|
+
|
65
|
+
Returns
|
66
|
+
-------
|
67
|
+
dict
|
68
|
+
A dictionary with two keys:
|
69
|
+
- "packages": dict(str -> str)
|
70
|
+
Mapping from package name (plus optional extras/references) to a
|
71
|
+
version specifier string.
|
72
|
+
- "python": str or None
|
73
|
+
The Python version constraints if present, otherwise None.
|
74
|
+
|
75
|
+
Raises
|
76
|
+
------
|
77
|
+
RuntimeError
|
78
|
+
If no TOML library (tomllib in Python 3.11+ or tomli in earlier versions) is found.
|
79
|
+
ParserValueError
|
80
|
+
If a dependency is not valid PEP 508, if environment markers are used, or if
|
81
|
+
multiple Python constraints are specified.
|
82
|
+
"""
|
83
|
+
...
|
84
|
+
|
85
|
+
def conda_environment_yml_parser(content: str):
|
86
|
+
"""
|
87
|
+
Parse a minimal environment.yml file under strict assumptions.
|
88
|
+
|
89
|
+
The file must contain a 'dependencies:' line, after which each dependency line
|
90
|
+
appears with a '- ' prefix. Python can appear as 'python=3.9', etc.; other
|
91
|
+
packages as 'numpy=1.21.2' or simply 'numpy'. Non-compliant lines raise ParserValueError.
|
92
|
+
|
93
|
+
Parameters
|
94
|
+
----------
|
95
|
+
content : str
|
96
|
+
Contents of a environment.yml file.
|
97
|
+
|
98
|
+
Returns
|
99
|
+
-------
|
100
|
+
dict
|
101
|
+
A dictionary with keys:
|
102
|
+
{
|
103
|
+
"packages": dict(str -> str),
|
104
|
+
"python": str or None
|
105
|
+
}
|
106
|
+
|
107
|
+
Raises
|
108
|
+
------
|
109
|
+
ParserValueError
|
110
|
+
If the file has malformed lines or unsupported sections.
|
111
|
+
"""
|
112
|
+
...
|
113
|
+
|
@@ -1,7 +1,7 @@
|
|
1
1
|
######################################################################################################
|
2
2
|
# Auto-generated Metaflow stub file #
|
3
|
-
# MF version: 2.15.
|
4
|
-
# Generated on 2025-03-
|
3
|
+
# MF version: 2.15.5.1+obcheckpoint(0.1.9);ob(v1) #
|
4
|
+
# Generated on 2025-03-13T17:31:16.220877 #
|
5
5
|
######################################################################################################
|
6
6
|
|
7
7
|
from __future__ import annotations
|
@@ -1,7 +1,7 @@
|
|
1
1
|
######################################################################################################
|
2
2
|
# Auto-generated Metaflow stub file #
|
3
|
-
# MF version: 2.15.
|
4
|
-
# Generated on 2025-03-
|
3
|
+
# MF version: 2.15.5.1+obcheckpoint(0.1.9);ob(v1) #
|
4
|
+
# Generated on 2025-03-13T17:31:16.221973 #
|
5
5
|
######################################################################################################
|
6
6
|
|
7
7
|
from __future__ import annotations
|
@@ -1,7 +1,7 @@
|
|
1
1
|
######################################################################################################
|
2
2
|
# Auto-generated Metaflow stub file #
|
3
|
-
# MF version: 2.15.
|
4
|
-
# Generated on 2025-03-
|
3
|
+
# MF version: 2.15.5.1+obcheckpoint(0.1.9);ob(v1) #
|
4
|
+
# Generated on 2025-03-13T17:31:16.221107 #
|
5
5
|
######################################################################################################
|
6
6
|
|
7
7
|
from __future__ import annotations
|
@@ -1,7 +1,7 @@
|
|
1
1
|
######################################################################################################
|
2
2
|
# Auto-generated Metaflow stub file #
|
3
|
-
# MF version: 2.15.
|
4
|
-
# Generated on 2025-03-
|
3
|
+
# MF version: 2.15.5.1+obcheckpoint(0.1.9);ob(v1) #
|
4
|
+
# Generated on 2025-03-13T17:31:16.205638 #
|
5
5
|
######################################################################################################
|
6
6
|
|
7
7
|
from __future__ import annotations
|
@@ -1,7 +1,7 @@
|
|
1
1
|
######################################################################################################
|
2
2
|
# Auto-generated Metaflow stub file #
|
3
|
-
# MF version: 2.15.
|
4
|
-
# Generated on 2025-03-
|
3
|
+
# MF version: 2.15.5.1+obcheckpoint(0.1.9);ob(v1) #
|
4
|
+
# Generated on 2025-03-13T17:31:16.204427 #
|
5
5
|
######################################################################################################
|
6
6
|
|
7
7
|
from __future__ import annotations
|
@@ -1,13 +1,13 @@
|
|
1
1
|
######################################################################################################
|
2
2
|
# Auto-generated Metaflow stub file #
|
3
|
-
# MF version: 2.15.
|
4
|
-
# Generated on 2025-03-
|
3
|
+
# MF version: 2.15.5.1+obcheckpoint(0.1.9);ob(v1) #
|
4
|
+
# Generated on 2025-03-13T17:31:16.205088 #
|
5
5
|
######################################################################################################
|
6
6
|
|
7
7
|
from __future__ import annotations
|
8
8
|
|
9
|
-
import abc
|
10
9
|
import typing
|
10
|
+
import abc
|
11
11
|
if typing.TYPE_CHECKING:
|
12
12
|
import abc
|
13
13
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
######################################################################################################
|
2
2
|
# Auto-generated Metaflow stub file #
|
3
|
-
# MF version: 2.15.
|
4
|
-
# Generated on 2025-03-
|
3
|
+
# MF version: 2.15.5.1+obcheckpoint(0.1.9);ob(v1) #
|
4
|
+
# Generated on 2025-03-13T17:31:16.229052 #
|
5
5
|
######################################################################################################
|
6
6
|
|
7
7
|
from __future__ import annotations
|
@@ -10,8 +10,8 @@ import abc
|
|
10
10
|
import metaflow
|
11
11
|
import typing
|
12
12
|
if typing.TYPE_CHECKING:
|
13
|
-
import abc
|
14
13
|
import metaflow.plugins.secrets
|
14
|
+
import abc
|
15
15
|
|
16
16
|
from . import SecretsProvider as SecretsProvider
|
17
17
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
######################################################################################################
|
2
2
|
# Auto-generated Metaflow stub file #
|
3
|
-
# MF version: 2.15.
|
4
|
-
# Generated on 2025-03-
|
3
|
+
# MF version: 2.15.5.1+obcheckpoint(0.1.9);ob(v1) #
|
4
|
+
# Generated on 2025-03-13T17:31:16.228868 #
|
5
5
|
######################################################################################################
|
6
6
|
|
7
7
|
from __future__ import annotations
|
@@ -1,7 +1,7 @@
|
|
1
1
|
######################################################################################################
|
2
2
|
# Auto-generated Metaflow stub file #
|
3
|
-
# MF version: 2.15.
|
4
|
-
# Generated on 2025-03-
|
3
|
+
# MF version: 2.15.5.1+obcheckpoint(0.1.9);ob(v1) #
|
4
|
+
# Generated on 2025-03-13T17:31:16.165384 #
|
5
5
|
######################################################################################################
|
6
6
|
|
7
7
|
from __future__ import annotations
|
@@ -1,7 +1,7 @@
|
|
1
1
|
######################################################################################################
|
2
2
|
# Auto-generated Metaflow stub file #
|
3
|
-
# MF version: 2.15.
|
4
|
-
# Generated on 2025-03-
|
3
|
+
# MF version: 2.15.5.1+obcheckpoint(0.1.9);ob(v1) #
|
4
|
+
# Generated on 2025-03-13T17:31:16.203931 #
|
5
5
|
######################################################################################################
|
6
6
|
|
7
7
|
from __future__ import annotations
|
@@ -1,7 +1,7 @@
|
|
1
1
|
######################################################################################################
|
2
2
|
# Auto-generated Metaflow stub file #
|
3
|
-
# MF version: 2.15.
|
4
|
-
# Generated on 2025-03-
|
3
|
+
# MF version: 2.15.5.1+obcheckpoint(0.1.9);ob(v1) #
|
4
|
+
# Generated on 2025-03-13T17:31:16.201977 #
|
5
5
|
######################################################################################################
|
6
6
|
|
7
7
|
from __future__ import annotations
|
@@ -9,8 +9,8 @@ from __future__ import annotations
|
|
9
9
|
import metaflow
|
10
10
|
import typing
|
11
11
|
if typing.TYPE_CHECKING:
|
12
|
-
import metaflow.unbounded_foreach
|
13
12
|
import metaflow.decorators
|
13
|
+
import metaflow.unbounded_foreach
|
14
14
|
|
15
15
|
from ..exception import MetaflowException as MetaflowException
|
16
16
|
from ..metadata_provider.metadata import MetaDatum as MetaDatum
|
@@ -1,7 +1,7 @@
|
|
1
1
|
######################################################################################################
|
2
2
|
# Auto-generated Metaflow stub file #
|
3
|
-
# MF version: 2.15.
|
4
|
-
# Generated on 2025-03-
|
3
|
+
# MF version: 2.15.5.1+obcheckpoint(0.1.9);ob(v1) #
|
4
|
+
# Generated on 2025-03-13T17:31:16.205492 #
|
5
5
|
######################################################################################################
|
6
6
|
|
7
7
|
from __future__ import annotations
|
@@ -9,8 +9,8 @@ from __future__ import annotations
|
|
9
9
|
import metaflow
|
10
10
|
import typing
|
11
11
|
if typing.TYPE_CHECKING:
|
12
|
-
import metaflow.decorators
|
13
12
|
import metaflow.exception
|
13
|
+
import metaflow.decorators
|
14
14
|
|
15
15
|
from ..exception import MetaflowException as MetaflowException
|
16
16
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
######################################################################################################
|
2
2
|
# Auto-generated Metaflow stub file #
|
3
|
-
# MF version: 2.15.
|
4
|
-
# Generated on 2025-03-
|
3
|
+
# MF version: 2.15.5.1+obcheckpoint(0.1.9);ob(v1) #
|
4
|
+
# Generated on 2025-03-13T17:31:16.166412 #
|
5
5
|
######################################################################################################
|
6
6
|
|
7
7
|
from __future__ import annotations
|
@@ -1,7 +1,7 @@
|
|
1
1
|
######################################################################################################
|
2
2
|
# Auto-generated Metaflow stub file #
|
3
|
-
# MF version: 2.15.
|
4
|
-
# Generated on 2025-03-
|
3
|
+
# MF version: 2.15.5.1+obcheckpoint(0.1.9);ob(v1) #
|
4
|
+
# Generated on 2025-03-13T17:31:16.188888 #
|
5
5
|
######################################################################################################
|
6
6
|
|
7
7
|
from __future__ import annotations
|
@@ -1,7 +1,7 @@
|
|
1
1
|
######################################################################################################
|
2
2
|
# Auto-generated Metaflow stub file #
|
3
|
-
# MF version: 2.15.
|
4
|
-
# Generated on 2025-03-
|
3
|
+
# MF version: 2.15.5.1+obcheckpoint(0.1.9);ob(v1) #
|
4
|
+
# Generated on 2025-03-13T17:31:16.175872 #
|
5
5
|
######################################################################################################
|
6
6
|
|
7
7
|
from __future__ import annotations
|
@@ -1,20 +1,20 @@
|
|
1
1
|
######################################################################################################
|
2
2
|
# Auto-generated Metaflow stub file #
|
3
|
-
# MF version: 2.15.
|
4
|
-
# Generated on 2025-03-
|
3
|
+
# MF version: 2.15.5.1+obcheckpoint(0.1.9);ob(v1) #
|
4
|
+
# Generated on 2025-03-13T17:31:16.316678 #
|
5
5
|
######################################################################################################
|
6
6
|
|
7
7
|
from __future__ import annotations
|
8
8
|
|
9
|
-
import metaflow
|
10
9
|
import typing
|
10
|
+
import metaflow
|
11
11
|
if typing.TYPE_CHECKING:
|
12
|
-
import metaflow.plugins.aws.step_functions.
|
12
|
+
import metaflow.plugins.aws.step_functions.step_functions_deployer_objects
|
13
13
|
import metaflow
|
14
|
-
import metaflow.plugins.argo.argo_workflows_deployer
|
15
14
|
import metaflow.runner.deployer
|
15
|
+
import metaflow.plugins.aws.step_functions.step_functions_deployer
|
16
|
+
import metaflow.plugins.argo.argo_workflows_deployer
|
16
17
|
import metaflow.plugins.argo.argo_workflows_deployer_objects
|
17
|
-
import metaflow.plugins.aws.step_functions.step_functions_deployer_objects
|
18
18
|
|
19
19
|
from ..exception import MetaflowNotFound as MetaflowNotFound
|
20
20
|
|
@@ -55,24 +55,24 @@ class Deployer(object, metaclass=DeployerMeta):
|
|
55
55
|
"""
|
56
56
|
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):
|
57
57
|
...
|
58
|
-
def
|
58
|
+
def step_functions(self, *, name: typing.Optional[str] = None) -> "metaflow.plugins.aws.step_functions.step_functions_deployer.StepFunctionsDeployer":
|
59
59
|
"""
|
60
|
-
Deployer implementation for
|
60
|
+
Deployer implementation for AWS Step Functions.
|
61
61
|
|
62
62
|
Parameters
|
63
63
|
----------
|
64
64
|
name : str, optional, default None
|
65
|
-
|
65
|
+
State Machine name. The flow name is used instead if this option is not specified.
|
66
66
|
"""
|
67
67
|
...
|
68
|
-
def
|
68
|
+
def argo_workflows(self, *, name: typing.Optional[str] = None) -> "metaflow.plugins.argo.argo_workflows_deployer.ArgoWorkflowsDeployer":
|
69
69
|
"""
|
70
|
-
Deployer implementation for
|
70
|
+
Deployer implementation for Argo Workflows.
|
71
71
|
|
72
72
|
Parameters
|
73
73
|
----------
|
74
74
|
name : str, optional, default None
|
75
|
-
|
75
|
+
Argo workflow name. The flow name is used instead if this option is not specified.
|
76
76
|
"""
|
77
77
|
...
|
78
78
|
...
|
@@ -82,7 +82,7 @@ class TriggeredRun(object, metaclass=type):
|
|
82
82
|
TriggeredRun class represents a run that has been triggered on a
|
83
83
|
production orchestrator.
|
84
84
|
"""
|
85
|
-
def wait_for_run(self, timeout: typing.Optional[int] = None):
|
85
|
+
def wait_for_run(self, check_interval: int = 5, timeout: typing.Optional[int] = None):
|
86
86
|
"""
|
87
87
|
Wait for the `run` property to become available.
|
88
88
|
|
@@ -91,6 +91,8 @@ class TriggeredRun(object, metaclass=type):
|
|
91
91
|
|
92
92
|
Parameters
|
93
93
|
----------
|
94
|
+
check_interval: int, default: 5
|
95
|
+
Frequency of checking for the `run` to become available, in seconds.
|
94
96
|
timeout : int, optional, default None
|
95
97
|
Maximum time to wait for the `run` to become available, in seconds. If
|
96
98
|
None, wait indefinitely.
|
@@ -157,45 +159,45 @@ class DeployedFlow(object, metaclass=DeployedFlowMeta):
|
|
157
159
|
"""
|
158
160
|
...
|
159
161
|
@classmethod
|
160
|
-
def
|
162
|
+
def from_step_functions(cls) -> "metaflow.plugins.aws.step_functions.step_functions_deployer_objects.StepFunctionsDeployedFlow":
|
161
163
|
"""
|
162
|
-
|
163
|
-
metadata.
|
164
|
-
|
164
|
+
This method is not currently implemented for Step Functions.
|
165
165
|
|
166
|
+
Raises
|
167
|
+
------
|
168
|
+
NotImplementedError
|
169
|
+
This method is not implemented for Step Functions.
|
166
170
|
|
167
171
|
Parameters
|
168
172
|
----------
|
169
|
-
identifier : str
|
170
|
-
Deployer specific identifier for the workflow to retrieve
|
171
|
-
metadata : str, optional, default None
|
172
|
-
Optional deployer specific metadata.
|
173
|
-
|
174
173
|
|
175
174
|
|
176
175
|
Returns
|
177
176
|
-------
|
178
|
-
ArgoWorkflowsDeployedFlow
|
179
|
-
A `ArgoWorkflowsDeployedFlow` object representing the
|
180
|
-
deployed flow on argo workflows.
|
181
177
|
"""
|
182
178
|
...
|
183
179
|
@classmethod
|
184
|
-
def
|
180
|
+
def from_argo_workflows(cls, *, identifier: str, metadata: typing.Optional[str] = None) -> "metaflow.plugins.argo.argo_workflows_deployer_objects.ArgoWorkflowsDeployedFlow":
|
185
181
|
"""
|
186
|
-
|
182
|
+
Retrieves a `ArgoWorkflowsDeployedFlow` object from an identifier and optional
|
183
|
+
metadata.
|
184
|
+
|
187
185
|
|
188
|
-
Raises
|
189
|
-
------
|
190
|
-
NotImplementedError
|
191
|
-
This method is not implemented for Step Functions.
|
192
186
|
|
193
187
|
Parameters
|
194
188
|
----------
|
189
|
+
identifier : str
|
190
|
+
Deployer specific identifier for the workflow to retrieve
|
191
|
+
metadata : str, optional, default None
|
192
|
+
Optional deployer specific metadata.
|
193
|
+
|
195
194
|
|
196
195
|
|
197
196
|
Returns
|
198
197
|
-------
|
198
|
+
ArgoWorkflowsDeployedFlow
|
199
|
+
A `ArgoWorkflowsDeployedFlow` object representing the
|
200
|
+
deployed flow on argo workflows.
|
199
201
|
"""
|
200
202
|
...
|
201
203
|
...
|
@@ -1,15 +1,15 @@
|
|
1
1
|
######################################################################################################
|
2
2
|
# Auto-generated Metaflow stub file #
|
3
|
-
# MF version: 2.15.
|
4
|
-
# Generated on 2025-03-
|
3
|
+
# MF version: 2.15.5.1+obcheckpoint(0.1.9);ob(v1) #
|
4
|
+
# Generated on 2025-03-13T17:31:16.201458 #
|
5
5
|
######################################################################################################
|
6
6
|
|
7
7
|
from __future__ import annotations
|
8
8
|
|
9
9
|
import typing
|
10
10
|
if typing.TYPE_CHECKING:
|
11
|
-
import metaflow.runner.deployer
|
12
11
|
import typing
|
12
|
+
import metaflow.runner.deployer
|
13
13
|
|
14
14
|
from .subprocess_manager import SubprocessManager as SubprocessManager
|
15
15
|
from .utils import get_lower_level_group as get_lower_level_group
|
@@ -1,17 +1,17 @@
|
|
1
1
|
######################################################################################################
|
2
2
|
# Auto-generated Metaflow stub file #
|
3
|
-
# MF version: 2.15.
|
4
|
-
# Generated on 2025-03-
|
3
|
+
# MF version: 2.15.5.1+obcheckpoint(0.1.9);ob(v1) #
|
4
|
+
# Generated on 2025-03-13T17:31:16.184508 #
|
5
5
|
######################################################################################################
|
6
6
|
|
7
7
|
from __future__ import annotations
|
8
8
|
|
9
|
-
import metaflow
|
10
9
|
import typing
|
10
|
+
import metaflow
|
11
11
|
if typing.TYPE_CHECKING:
|
12
12
|
import metaflow.client.core
|
13
|
-
import metaflow.runner.metaflow_runner
|
14
13
|
import metaflow.runner.subprocess_manager
|
14
|
+
import metaflow.runner.metaflow_runner
|
15
15
|
|
16
16
|
from ..client.core import Run as Run
|
17
17
|
from ..plugins import get_runner_cli as get_runner_cli
|
@@ -1,7 +1,7 @@
|
|
1
1
|
######################################################################################################
|
2
2
|
# Auto-generated Metaflow stub file #
|
3
|
-
# MF version: 2.15.
|
4
|
-
# Generated on 2025-03-
|
3
|
+
# MF version: 2.15.5.1+obcheckpoint(0.1.9);ob(v1) #
|
4
|
+
# Generated on 2025-03-13T17:31:16.185434 #
|
5
5
|
######################################################################################################
|
6
6
|
|
7
7
|
from __future__ import annotations
|
metaflow-stubs/runner/nbrun.pyi
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
######################################################################################################
|
2
2
|
# Auto-generated Metaflow stub file #
|
3
|
-
# MF version: 2.15.
|
4
|
-
# Generated on 2025-03-
|
3
|
+
# MF version: 2.15.5.1+obcheckpoint(0.1.9);ob(v1) #
|
4
|
+
# Generated on 2025-03-13T17:31:16.185046 #
|
5
5
|
######################################################################################################
|
6
6
|
|
7
7
|
from __future__ import annotations
|
@@ -1,7 +1,7 @@
|
|
1
1
|
######################################################################################################
|
2
2
|
# Auto-generated Metaflow stub file #
|
3
|
-
# MF version: 2.15.
|
4
|
-
# Generated on 2025-03-
|
3
|
+
# MF version: 2.15.5.1+obcheckpoint(0.1.9);ob(v1) #
|
4
|
+
# Generated on 2025-03-13T17:31:16.200819 #
|
5
5
|
######################################################################################################
|
6
6
|
|
7
7
|
from __future__ import annotations
|