ob-metaflow-stubs 6.0.4.6rc1__py2.py3-none-any.whl → 6.0.4.8rc1__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 +729 -704
- metaflow-stubs/cards.pyi +2 -2
- metaflow-stubs/cli.pyi +3 -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 +7 -8
- metaflow-stubs/client/filecache.pyi +2 -2
- metaflow-stubs/events.pyi +3 -3
- metaflow-stubs/exception.pyi +2 -2
- metaflow-stubs/flowspec.pyi +8 -8
- metaflow-stubs/generated_for.txt +1 -1
- metaflow-stubs/includefile.pyi +4 -4
- metaflow-stubs/{info_file.pyi → meta_files.pyi} +2 -6
- metaflow-stubs/metadata_provider/__init__.pyi +2 -2
- metaflow-stubs/metadata_provider/heartbeat.pyi +2 -2
- metaflow-stubs/metadata_provider/metadata.pyi +2 -2
- metaflow-stubs/metadata_provider/util.pyi +2 -2
- metaflow-stubs/metaflow_config.pyi +6 -2
- metaflow-stubs/metaflow_current.pyi +34 -34
- metaflow-stubs/metaflow_git.pyi +2 -2
- 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 +2 -2
- 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 +3 -3
- 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 +3 -3
- 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 +4 -4
- 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 +3 -3
- 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/context.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/decorator.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 +2 -2
- 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 +2 -2
- 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 +3 -3
- 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 +3 -3
- 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 +2 -2
- 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 +2 -2
- metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/utils/tar_utils.pyi +2 -2
- 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/apps/__init__.pyi +2 -2
- metaflow-stubs/mf_extensions/outerbounds/plugins/apps/core/__init__.pyi +2 -2
- metaflow-stubs/mf_extensions/outerbounds/plugins/apps/core/_state_machine.pyi +2 -2
- metaflow-stubs/mf_extensions/outerbounds/plugins/apps/core/_vendor/__init__.pyi +2 -2
- metaflow-stubs/mf_extensions/outerbounds/plugins/apps/core/_vendor/spinner/__init__.pyi +2 -2
- metaflow-stubs/mf_extensions/outerbounds/plugins/apps/core/_vendor/spinner/spinners.pyi +2 -2
- metaflow-stubs/mf_extensions/outerbounds/plugins/apps/core/app_cli.pyi +3 -3
- metaflow-stubs/mf_extensions/outerbounds/plugins/apps/core/app_config.pyi +3 -3
- metaflow-stubs/mf_extensions/outerbounds/plugins/apps/core/capsule.pyi +2 -2
- metaflow-stubs/mf_extensions/outerbounds/plugins/apps/core/click_importer.pyi +2 -2
- metaflow-stubs/mf_extensions/outerbounds/plugins/apps/core/code_package/__init__.pyi +2 -2
- metaflow-stubs/mf_extensions/outerbounds/plugins/apps/core/code_package/code_packager.pyi +2 -2
- metaflow-stubs/mf_extensions/outerbounds/plugins/apps/core/config/__init__.pyi +2 -2
- metaflow-stubs/mf_extensions/outerbounds/plugins/apps/core/config/cli_generator.pyi +2 -2
- metaflow-stubs/mf_extensions/outerbounds/plugins/apps/core/config/config_utils.pyi +4 -4
- metaflow-stubs/mf_extensions/outerbounds/plugins/apps/core/config/schema_export.pyi +2 -2
- metaflow-stubs/mf_extensions/outerbounds/plugins/apps/core/config/typed_configs.pyi +3 -3
- metaflow-stubs/mf_extensions/outerbounds/plugins/apps/core/config/unified_config.pyi +3 -3
- metaflow-stubs/mf_extensions/outerbounds/plugins/apps/core/dependencies.pyi +2 -2
- metaflow-stubs/mf_extensions/outerbounds/plugins/apps/core/deployer.pyi +4 -4
- metaflow-stubs/mf_extensions/outerbounds/plugins/apps/core/experimental/__init__.pyi +2 -2
- metaflow-stubs/mf_extensions/outerbounds/plugins/apps/core/perimeters.pyi +2 -2
- metaflow-stubs/mf_extensions/outerbounds/plugins/apps/core/utils.pyi +4 -4
- metaflow-stubs/mf_extensions/outerbounds/plugins/aws/__init__.pyi +2 -2
- metaflow-stubs/mf_extensions/outerbounds/plugins/aws/assume_role_decorator.pyi +12 -8
- metaflow-stubs/mf_extensions/outerbounds/plugins/card_utilities/__init__.pyi +2 -2
- metaflow-stubs/mf_extensions/outerbounds/plugins/card_utilities/async_cards.pyi +2 -2
- metaflow-stubs/mf_extensions/outerbounds/plugins/card_utilities/injector.pyi +2 -2
- metaflow-stubs/mf_extensions/outerbounds/plugins/checkpoint_datastores/__init__.pyi +2 -2
- metaflow-stubs/mf_extensions/outerbounds/plugins/checkpoint_datastores/coreweave.pyi +13 -8
- metaflow-stubs/mf_extensions/outerbounds/plugins/checkpoint_datastores/nebius.pyi +11 -8
- metaflow-stubs/mf_extensions/outerbounds/plugins/fast_bakery/__init__.pyi +2 -2
- metaflow-stubs/mf_extensions/outerbounds/plugins/fast_bakery/baker.pyi +2 -2
- metaflow-stubs/mf_extensions/outerbounds/plugins/fast_bakery/docker_environment.pyi +3 -3
- metaflow-stubs/mf_extensions/outerbounds/plugins/fast_bakery/fast_bakery.pyi +2 -2
- metaflow-stubs/mf_extensions/outerbounds/plugins/kubernetes/__init__.pyi +2 -2
- metaflow-stubs/mf_extensions/outerbounds/plugins/kubernetes/pod_killer.pyi +2 -2
- metaflow-stubs/mf_extensions/outerbounds/plugins/ollama/__init__.pyi +2 -2
- metaflow-stubs/mf_extensions/outerbounds/plugins/ollama/constants.pyi +2 -2
- metaflow-stubs/mf_extensions/outerbounds/plugins/ollama/exceptions.pyi +2 -2
- metaflow-stubs/mf_extensions/outerbounds/plugins/ollama/ollama.pyi +2 -2
- metaflow-stubs/mf_extensions/outerbounds/plugins/ollama/status_card.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/ob_internal.pyi +2 -2
- metaflow-stubs/packaging_sys/__init__.pyi +430 -0
- metaflow-stubs/packaging_sys/backend.pyi +73 -0
- metaflow-stubs/packaging_sys/distribution_support.pyi +57 -0
- metaflow-stubs/packaging_sys/tar_backend.pyi +53 -0
- metaflow-stubs/packaging_sys/utils.pyi +26 -0
- metaflow-stubs/packaging_sys/v1.pyi +145 -0
- metaflow-stubs/parameters.pyi +4 -4
- metaflow-stubs/plugins/__init__.pyi +11 -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 +4 -4
- metaflow-stubs/plugins/argo/argo_workflows_deployer_objects.pyi +21 -3
- metaflow-stubs/plugins/argo/exit_hooks.pyi +2 -2
- 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 +4 -4
- metaflow-stubs/plugins/aws/batch/batch_client.pyi +2 -2
- metaflow-stubs/plugins/aws/batch/batch_decorator.pyi +4 -2
- metaflow-stubs/plugins/aws/secrets_manager/__init__.pyi +2 -2
- metaflow-stubs/plugins/aws/secrets_manager/aws_secrets_manager_secrets_provider.pyi +4 -4
- 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 +3 -3
- metaflow-stubs/plugins/aws/step_functions/step_functions_client.pyi +2 -2
- metaflow-stubs/plugins/aws/step_functions/step_functions_deployer.pyi +3 -3
- metaflow-stubs/plugins/aws/step_functions/step_functions_deployer_objects.pyi +13 -2
- 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 +4 -4
- 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 +2 -2
- metaflow-stubs/plugins/cards/card_client.pyi +2 -2
- 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 -4
- 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 +2 -2
- 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 +3 -3
- 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/exit_hook/__init__.pyi +2 -2
- metaflow-stubs/plugins/exit_hook/exit_hook_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 +4 -4
- 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 +2 -2
- metaflow-stubs/plugins/kubernetes/kubernetes.pyi +4 -4
- metaflow-stubs/plugins/kubernetes/kubernetes_client.pyi +2 -2
- metaflow-stubs/plugins/kubernetes/kubernetes_decorator.pyi +5 -3
- 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 +3 -3
- metaflow-stubs/plugins/perimeters.pyi +2 -2
- metaflow-stubs/plugins/project_decorator.pyi +2 -2
- metaflow-stubs/plugins/pypi/__init__.pyi +2 -2
- metaflow-stubs/plugins/pypi/conda_decorator.pyi +5 -8
- metaflow-stubs/plugins/pypi/conda_environment.pyi +5 -4
- metaflow-stubs/plugins/pypi/parsers.pyi +2 -2
- metaflow-stubs/plugins/pypi/pypi_decorator.pyi +4 -4
- 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/secrets/secrets_func.pyi +2 -2
- metaflow-stubs/plugins/secrets/secrets_spec.pyi +2 -2
- metaflow-stubs/plugins/secrets/utils.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 +2 -2
- metaflow-stubs/plugins/torchtune/__init__.pyi +2 -2
- metaflow-stubs/plugins/uv/__init__.pyi +2 -2
- metaflow-stubs/plugins/uv/uv_environment.pyi +3 -2
- 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 +31 -6
- metaflow-stubs/runner/deployer_impl.pyi +2 -2
- metaflow-stubs/runner/metaflow_runner.pyi +3 -3
- metaflow-stubs/runner/nbdeploy.pyi +2 -2
- metaflow-stubs/runner/nbrun.pyi +2 -2
- metaflow-stubs/runner/subprocess_manager.pyi +3 -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 -3
- metaflow-stubs/user_configs/config_options.pyi +4 -5
- metaflow-stubs/user_configs/config_parameters.pyi +6 -8
- metaflow-stubs/user_decorators/__init__.pyi +15 -0
- metaflow-stubs/user_decorators/common.pyi +38 -0
- metaflow-stubs/user_decorators/mutable_flow.pyi +223 -0
- metaflow-stubs/user_decorators/mutable_step.pyi +152 -0
- metaflow-stubs/user_decorators/user_flow_decorator.pyi +137 -0
- metaflow-stubs/user_decorators/user_step_decorator.pyi +323 -0
- {ob_metaflow_stubs-6.0.4.6rc1.dist-info → ob_metaflow_stubs-6.0.4.8rc1.dist-info}/METADATA +1 -1
- ob_metaflow_stubs-6.0.4.8rc1.dist-info/RECORD +260 -0
- metaflow-stubs/user_configs/config_decorators.pyi +0 -251
- ob_metaflow_stubs-6.0.4.6rc1.dist-info/RECORD +0 -249
- {ob_metaflow_stubs-6.0.4.6rc1.dist-info → ob_metaflow_stubs-6.0.4.8rc1.dist-info}/WHEEL +0 -0
- {ob_metaflow_stubs-6.0.4.6rc1.dist-info → ob_metaflow_stubs-6.0.4.8rc1.dist-info}/top_level.txt +0 -0
@@ -1,7 +1,7 @@
|
|
1
1
|
######################################################################################################
|
2
2
|
# Auto-generated Metaflow stub file #
|
3
|
-
# MF version: 2.
|
4
|
-
# Generated on 2025-07-
|
3
|
+
# MF version: 2.16.5.1+obcheckpoint(0.2.4);ob(v1) #
|
4
|
+
# Generated on 2025-07-28T18:04:46.408643 #
|
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.
|
4
|
-
# Generated on 2025-07-
|
3
|
+
# MF version: 2.16.5.1+obcheckpoint(0.2.4);ob(v1) #
|
4
|
+
# Generated on 2025-07-28T18:04:46.392788 #
|
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.
|
4
|
-
# Generated on 2025-07-
|
3
|
+
# MF version: 2.16.5.1+obcheckpoint(0.2.4);ob(v1) #
|
4
|
+
# Generated on 2025-07-28T18:04:46.563921 #
|
5
5
|
######################################################################################################
|
6
6
|
|
7
7
|
from __future__ import annotations
|
@@ -9,12 +9,12 @@ from __future__ import annotations
|
|
9
9
|
import metaflow
|
10
10
|
import typing
|
11
11
|
if typing.TYPE_CHECKING:
|
12
|
-
import metaflow.plugins.
|
13
|
-
import metaflow
|
12
|
+
import metaflow.plugins.argo.argo_workflows_deployer
|
14
13
|
import metaflow.runner.deployer
|
15
|
-
import metaflow.plugins.aws.step_functions.step_functions_deployer_objects
|
16
14
|
import metaflow.plugins.argo.argo_workflows_deployer_objects
|
17
|
-
import metaflow
|
15
|
+
import metaflow
|
16
|
+
import metaflow.plugins.aws.step_functions.step_functions_deployer
|
17
|
+
import metaflow.plugins.aws.step_functions.step_functions_deployer_objects
|
18
18
|
|
19
19
|
from ..exception import MetaflowNotFound as MetaflowNotFound
|
20
20
|
|
@@ -162,6 +162,25 @@ class DeployedFlow(object, metaclass=DeployedFlowMeta):
|
|
162
162
|
"""
|
163
163
|
...
|
164
164
|
@classmethod
|
165
|
+
def list_deployed_flows(cls, flow_name: typing.Optional[str] = None, impl: str = 'argo_workflows'):
|
166
|
+
"""
|
167
|
+
List all deployed flows for the specified implementation.
|
168
|
+
|
169
|
+
Parameters
|
170
|
+
----------
|
171
|
+
flow_name : str, optional, default None
|
172
|
+
If specified, only list deployed flows for this specific flow name.
|
173
|
+
If None, list all deployed flows.
|
174
|
+
impl : str, optional, default given by METAFLOW_DEFAULT_FROM_DEPLOYMENT_IMPL
|
175
|
+
The default implementation to use if not specified
|
176
|
+
|
177
|
+
Yields
|
178
|
+
------
|
179
|
+
DeployedFlow
|
180
|
+
`DeployedFlow` objects representing deployed flows.
|
181
|
+
"""
|
182
|
+
...
|
183
|
+
@classmethod
|
165
184
|
def from_step_functions(cls) -> "metaflow.plugins.aws.step_functions.step_functions_deployer_objects.StepFunctionsDeployedFlow":
|
166
185
|
"""
|
167
186
|
This method is not currently implemented for Step Functions.
|
@@ -180,6 +199,9 @@ class DeployedFlow(object, metaclass=DeployedFlowMeta):
|
|
180
199
|
"""
|
181
200
|
...
|
182
201
|
@classmethod
|
202
|
+
def list_step_functions(cls, flow_name: typing.Optional[str] = None):
|
203
|
+
...
|
204
|
+
@classmethod
|
183
205
|
def from_argo_workflows(cls, *, identifier: str, metadata: typing.Optional[str] = None) -> "metaflow.plugins.argo.argo_workflows_deployer_objects.ArgoWorkflowsDeployedFlow":
|
184
206
|
"""
|
185
207
|
Retrieves a `ArgoWorkflowsDeployedFlow` object from an identifier and optional
|
@@ -203,5 +225,8 @@ class DeployedFlow(object, metaclass=DeployedFlowMeta):
|
|
203
225
|
deployed flow on argo workflows.
|
204
226
|
"""
|
205
227
|
...
|
228
|
+
@classmethod
|
229
|
+
def list_argo_workflows(cls, flow_name: typing.Optional[str] = None):
|
230
|
+
...
|
206
231
|
...
|
207
232
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
######################################################################################################
|
2
2
|
# Auto-generated Metaflow stub file #
|
3
|
-
# MF version: 2.
|
4
|
-
# Generated on 2025-07-
|
3
|
+
# MF version: 2.16.5.1+obcheckpoint(0.2.4);ob(v1) #
|
4
|
+
# Generated on 2025-07-28T18:04:46.428436 #
|
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.
|
4
|
-
# Generated on 2025-07-
|
3
|
+
# MF version: 2.16.5.1+obcheckpoint(0.2.4);ob(v1) #
|
4
|
+
# Generated on 2025-07-28T18:04:46.401226 #
|
5
5
|
######################################################################################################
|
6
6
|
|
7
7
|
from __future__ import annotations
|
@@ -9,9 +9,9 @@ from __future__ import annotations
|
|
9
9
|
import metaflow
|
10
10
|
import typing
|
11
11
|
if typing.TYPE_CHECKING:
|
12
|
+
import metaflow.runner.metaflow_runner
|
12
13
|
import metaflow.client.core
|
13
14
|
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.
|
4
|
-
# Generated on 2025-07-
|
3
|
+
# MF version: 2.16.5.1+obcheckpoint(0.2.4);ob(v1) #
|
4
|
+
# Generated on 2025-07-28T18:04:46.402102 #
|
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.
|
4
|
-
# Generated on 2025-07-
|
3
|
+
# MF version: 2.16.5.1+obcheckpoint(0.2.4);ob(v1) #
|
4
|
+
# Generated on 2025-07-28T18:04:46.401743 #
|
5
5
|
######################################################################################################
|
6
6
|
|
7
7
|
from __future__ import annotations
|
@@ -1,13 +1,14 @@
|
|
1
1
|
######################################################################################################
|
2
2
|
# Auto-generated Metaflow stub file #
|
3
|
-
# MF version: 2.
|
4
|
-
# Generated on 2025-07-
|
3
|
+
# MF version: 2.16.5.1+obcheckpoint(0.2.4);ob(v1) #
|
4
|
+
# Generated on 2025-07-28T18:04:46.427891 #
|
5
5
|
######################################################################################################
|
6
6
|
|
7
7
|
from __future__ import annotations
|
8
8
|
|
9
9
|
import typing
|
10
10
|
|
11
|
+
from ..packaging_sys import MetaflowCodeContent as MetaflowCodeContent
|
11
12
|
from .utils import check_process_exited as check_process_exited
|
12
13
|
|
13
14
|
def kill_processes_and_descendants(pids: typing.List[str], termination_timeout: float):
|
metaflow-stubs/runner/utils.pyi
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
######################################################################################################
|
2
2
|
# Auto-generated Metaflow stub file #
|
3
|
-
# MF version: 2.
|
4
|
-
# Generated on 2025-07-
|
3
|
+
# MF version: 2.16.5.1+obcheckpoint(0.2.4);ob(v1) #
|
4
|
+
# Generated on 2025-07-28T18:04:46.426771 #
|
5
5
|
######################################################################################################
|
6
6
|
|
7
7
|
from __future__ import annotations
|
@@ -9,8 +9,8 @@ from __future__ import annotations
|
|
9
9
|
import typing
|
10
10
|
if typing.TYPE_CHECKING:
|
11
11
|
import metaflow.runner.click_api
|
12
|
-
import metaflow.runner.subprocess_manager
|
13
12
|
import typing
|
13
|
+
import metaflow.runner.subprocess_manager
|
14
14
|
|
15
15
|
|
16
16
|
TYPE_CHECKING: bool
|
@@ -1,7 +1,7 @@
|
|
1
1
|
######################################################################################################
|
2
2
|
# Auto-generated Metaflow stub file #
|
3
|
-
# MF version: 2.
|
4
|
-
# Generated on 2025-07-
|
3
|
+
# MF version: 2.16.5.1+obcheckpoint(0.2.4);ob(v1) #
|
4
|
+
# Generated on 2025-07-28T18:04:46.408392 #
|
5
5
|
######################################################################################################
|
6
6
|
|
7
7
|
from __future__ import annotations
|
@@ -1,15 +1,15 @@
|
|
1
1
|
######################################################################################################
|
2
2
|
# Auto-generated Metaflow stub file #
|
3
|
-
# MF version: 2.
|
4
|
-
# Generated on 2025-07-
|
3
|
+
# MF version: 2.16.5.1+obcheckpoint(0.2.4);ob(v1) #
|
4
|
+
# Generated on 2025-07-28T18:04:46.446741 #
|
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.event_logger
|
12
11
|
import typing
|
12
|
+
import metaflow.event_logger
|
13
13
|
|
14
14
|
|
15
15
|
class SystemLogger(object, metaclass=type):
|
@@ -1,7 +1,7 @@
|
|
1
1
|
######################################################################################################
|
2
2
|
# Auto-generated Metaflow stub file #
|
3
|
-
# MF version: 2.
|
4
|
-
# Generated on 2025-07-
|
3
|
+
# MF version: 2.16.5.1+obcheckpoint(0.2.4);ob(v1) #
|
4
|
+
# Generated on 2025-07-28T18:04:46.446413 #
|
5
5
|
######################################################################################################
|
6
6
|
|
7
7
|
from __future__ import annotations
|
metaflow-stubs/tagging_util.pyi
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
######################################################################################################
|
2
2
|
# Auto-generated Metaflow stub file #
|
3
|
-
# MF version: 2.
|
4
|
-
# Generated on 2025-07-
|
3
|
+
# MF version: 2.16.5.1+obcheckpoint(0.2.4);ob(v1) #
|
4
|
+
# Generated on 2025-07-28T18:04:46.386132 #
|
5
5
|
######################################################################################################
|
6
6
|
|
7
7
|
from __future__ import annotations
|
metaflow-stubs/tuple_util.pyi
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
######################################################################################################
|
2
2
|
# Auto-generated Metaflow stub file #
|
3
|
-
# MF version: 2.
|
4
|
-
# Generated on 2025-07-
|
3
|
+
# MF version: 2.16.5.1+obcheckpoint(0.2.4);ob(v1) #
|
4
|
+
# Generated on 2025-07-28T18:04:46.391569 #
|
5
5
|
######################################################################################################
|
6
6
|
|
7
7
|
from __future__ import annotations
|
@@ -1,13 +1,12 @@
|
|
1
1
|
######################################################################################################
|
2
2
|
# Auto-generated Metaflow stub file #
|
3
|
-
# MF version: 2.
|
4
|
-
# Generated on 2025-07-
|
3
|
+
# MF version: 2.16.5.1+obcheckpoint(0.2.4);ob(v1) #
|
4
|
+
# Generated on 2025-07-28T18:04:46.385563 #
|
5
5
|
######################################################################################################
|
6
6
|
|
7
7
|
from __future__ import annotations
|
8
8
|
|
9
9
|
|
10
10
|
from . import config_parameters as config_parameters
|
11
|
-
from . import config_decorators as config_decorators
|
12
11
|
from . import config_options as config_options
|
13
12
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
######################################################################################################
|
2
2
|
# Auto-generated Metaflow stub file #
|
3
|
-
# MF version: 2.
|
4
|
-
# Generated on 2025-07-
|
3
|
+
# MF version: 2.16.5.1+obcheckpoint(0.2.4);ob(v1) #
|
4
|
+
# Generated on 2025-07-28T18:04:46.417229 #
|
5
5
|
######################################################################################################
|
6
6
|
|
7
7
|
from __future__ import annotations
|
@@ -9,18 +9,17 @@ from __future__ import annotations
|
|
9
9
|
import metaflow
|
10
10
|
import typing
|
11
11
|
if typing.TYPE_CHECKING:
|
12
|
-
import metaflow._vendor.click.types
|
13
12
|
import typing
|
13
|
+
import metaflow._vendor.click.types
|
14
14
|
|
15
15
|
from .._vendor import click as click
|
16
16
|
from .config_parameters import ConfigValue as ConfigValue
|
17
17
|
from ..exception import MetaflowException as MetaflowException
|
18
18
|
from ..exception import MetaflowInternalError as MetaflowInternalError
|
19
|
+
from ..packaging_sys import MetaflowCodeContent as MetaflowCodeContent
|
19
20
|
from ..parameters import DeployTimeField as DeployTimeField
|
20
21
|
from ..parameters import ParameterContext as ParameterContext
|
21
22
|
|
22
|
-
CONFIG_FILE: str
|
23
|
-
|
24
23
|
class ConvertPath(metaflow._vendor.click.types.Path, metaclass=type):
|
25
24
|
def convert(self, value, param, ctx):
|
26
25
|
...
|
@@ -1,21 +1,21 @@
|
|
1
1
|
######################################################################################################
|
2
2
|
# Auto-generated Metaflow stub file #
|
3
|
-
# MF version: 2.
|
4
|
-
# Generated on 2025-07-
|
3
|
+
# MF version: 2.16.5.1+obcheckpoint(0.2.4);ob(v1) #
|
4
|
+
# Generated on 2025-07-28T18:04:46.389217 #
|
5
5
|
######################################################################################################
|
6
6
|
|
7
7
|
from __future__ import annotations
|
8
8
|
|
9
|
-
import collections
|
10
|
-
import abc
|
11
9
|
import metaflow
|
12
10
|
import typing
|
11
|
+
import collections
|
12
|
+
import abc
|
13
13
|
if typing.TYPE_CHECKING:
|
14
|
+
import collections.abc
|
14
15
|
import typing
|
16
|
+
import metaflow.parameters
|
15
17
|
import abc
|
16
|
-
import collections.abc
|
17
18
|
import metaflow.user_configs.config_parameters
|
18
|
-
import metaflow.parameters
|
19
19
|
|
20
20
|
from ..exception import MetaflowException as MetaflowException
|
21
21
|
from ..parameters import Parameter as Parameter
|
@@ -23,8 +23,6 @@ from ..parameters import ParameterContext as ParameterContext
|
|
23
23
|
|
24
24
|
TYPE_CHECKING: bool
|
25
25
|
|
26
|
-
CONFIG_FILE: str
|
27
|
-
|
28
26
|
UNPACK_KEY: str
|
29
27
|
|
30
28
|
def dump_config_values(flow: "FlowSpec"):
|
@@ -0,0 +1,15 @@
|
|
1
|
+
######################################################################################################
|
2
|
+
# Auto-generated Metaflow stub file #
|
3
|
+
# MF version: 2.16.5.1+obcheckpoint(0.2.4);ob(v1) #
|
4
|
+
# Generated on 2025-07-28T18:04:46.385782 #
|
5
|
+
######################################################################################################
|
6
|
+
|
7
|
+
from __future__ import annotations
|
8
|
+
|
9
|
+
|
10
|
+
from . import mutable_flow as mutable_flow
|
11
|
+
from . import common as common
|
12
|
+
from . import user_step_decorator as user_step_decorator
|
13
|
+
from . import mutable_step as mutable_step
|
14
|
+
from . import user_flow_decorator as user_flow_decorator
|
15
|
+
|
@@ -0,0 +1,38 @@
|
|
1
|
+
######################################################################################################
|
2
|
+
# Auto-generated Metaflow stub file #
|
3
|
+
# MF version: 2.16.5.1+obcheckpoint(0.2.4);ob(v1) #
|
4
|
+
# Generated on 2025-07-28T18:04:46.418459 #
|
5
|
+
######################################################################################################
|
6
|
+
|
7
|
+
from __future__ import annotations
|
8
|
+
|
9
|
+
import typing
|
10
|
+
|
11
|
+
|
12
|
+
class ClassPath_Trie(object, metaclass=type):
|
13
|
+
def __init__(self):
|
14
|
+
...
|
15
|
+
def init(self, initial_nodes: typing.Optional[typing.List[typing.Tuple[str, type]]] = None):
|
16
|
+
...
|
17
|
+
def insert(self, classpath_name: str, value: type):
|
18
|
+
...
|
19
|
+
def search(self, classpath_name: str) -> typing.Optional[type]:
|
20
|
+
...
|
21
|
+
def remove(self, classpath_name: str):
|
22
|
+
...
|
23
|
+
def unique_prefix_value(self, classpath_name: str) -> typing.Optional[type]:
|
24
|
+
...
|
25
|
+
def unique_prefix_for_type(self, value: type) -> typing.Optional[str]:
|
26
|
+
...
|
27
|
+
def get_unique_prefixes(self) -> typing.Dict[str, type]:
|
28
|
+
"""
|
29
|
+
Get all unique prefixes in the trie.
|
30
|
+
|
31
|
+
Returns
|
32
|
+
-------
|
33
|
+
List[str]
|
34
|
+
A list of unique prefixes.
|
35
|
+
"""
|
36
|
+
...
|
37
|
+
...
|
38
|
+
|
@@ -0,0 +1,223 @@
|
|
1
|
+
######################################################################################################
|
2
|
+
# Auto-generated Metaflow stub file #
|
3
|
+
# MF version: 2.16.5.1+obcheckpoint(0.2.4);ob(v1) #
|
4
|
+
# Generated on 2025-07-28T18:04:46.418073 #
|
5
|
+
######################################################################################################
|
6
|
+
|
7
|
+
from __future__ import annotations
|
8
|
+
|
9
|
+
import typing
|
10
|
+
if typing.TYPE_CHECKING:
|
11
|
+
import functools
|
12
|
+
import metaflow.user_decorators.mutable_step
|
13
|
+
import typing
|
14
|
+
import metaflow.parameters
|
15
|
+
import metaflow.flowspec
|
16
|
+
import metaflow.user_configs.config_parameters
|
17
|
+
|
18
|
+
from ..exception import MetaflowException as MetaflowException
|
19
|
+
from ..user_configs.config_parameters import ConfigValue as ConfigValue
|
20
|
+
|
21
|
+
TYPE_CHECKING: bool
|
22
|
+
|
23
|
+
class MutableFlow(object, metaclass=type):
|
24
|
+
def __init__(self, flow_spec: "metaflow.flowspec.FlowSpec", pre_mutate: bool = False, statically_defined: bool = False, inserted_by: typing.Optional[str] = None):
|
25
|
+
...
|
26
|
+
@property
|
27
|
+
def decorator_specs(self) -> typing.Generator[typing.Tuple[str, str, typing.List[typing.Any], typing.Dict[str, typing.Any]], None, None]:
|
28
|
+
"""
|
29
|
+
Iterate over all the decorator specifications of this flow. Note that the same
|
30
|
+
type of decorator may be present multiple times and no order is guaranteed.
|
31
|
+
|
32
|
+
The returned tuple contains:
|
33
|
+
- The decorator's name (shortest possible)
|
34
|
+
- The decorator's fully qualified name (in the case of Metaflow decorators, this
|
35
|
+
will indicate which extension the decorator comes from)
|
36
|
+
- A list of positional arguments
|
37
|
+
- A dictionary of keyword arguments
|
38
|
+
|
39
|
+
You can use the decorator specification to remove a decorator from the flow
|
40
|
+
for example.
|
41
|
+
|
42
|
+
Yields
|
43
|
+
------
|
44
|
+
str, str, List[Any], Dict[str, Any]
|
45
|
+
A tuple containing the decorator name, it's fully qualified name,
|
46
|
+
a list of positional arguments, and a dictionary of keyword arguments.
|
47
|
+
"""
|
48
|
+
...
|
49
|
+
@property
|
50
|
+
def configs(self) -> typing.Generator[typing.Tuple[str, metaflow.user_configs.config_parameters.ConfigValue], None, None]:
|
51
|
+
"""
|
52
|
+
Iterate over all user configurations in this flow
|
53
|
+
|
54
|
+
Use this to parameterize your flow based on configuration. As an example, the
|
55
|
+
`pre_mutate`/`mutate` methods can add decorators to steps in the flow that
|
56
|
+
depend on values in the configuration.
|
57
|
+
|
58
|
+
```
|
59
|
+
class MyDecorator(FlowMutator):
|
60
|
+
def mutate(flow: MutableFlow):
|
61
|
+
val = next(flow.configs)[1].steps.start.cpu
|
62
|
+
flow.start.add_decorator(environment, vars={'mycpu': val})
|
63
|
+
return flow
|
64
|
+
|
65
|
+
@MyDecorator()
|
66
|
+
class TestFlow(FlowSpec):
|
67
|
+
config = Config('myconfig.json')
|
68
|
+
|
69
|
+
@step
|
70
|
+
def start(self):
|
71
|
+
pass
|
72
|
+
```
|
73
|
+
can be used to add an environment decorator to the `start` step.
|
74
|
+
|
75
|
+
Yields
|
76
|
+
------
|
77
|
+
Tuple[str, ConfigValue]
|
78
|
+
Iterates over the configurations of the flow
|
79
|
+
"""
|
80
|
+
...
|
81
|
+
@property
|
82
|
+
def parameters(self) -> typing.Generator[typing.Tuple[str, "metaflow.parameters.Parameter"], None, None]:
|
83
|
+
"""
|
84
|
+
Iterate over all the parameters in this flow.
|
85
|
+
|
86
|
+
Yields
|
87
|
+
------
|
88
|
+
Tuple[str, Parameter]
|
89
|
+
Name of the parameter and parameter in the flow
|
90
|
+
"""
|
91
|
+
...
|
92
|
+
@property
|
93
|
+
def steps(self) -> typing.Generator[typing.Tuple[str, "metaflow.user_decorators.mutable_step.MutableStep"], None, None]:
|
94
|
+
"""
|
95
|
+
Iterate over all the steps in this flow. The order of the steps
|
96
|
+
returned is not guaranteed.
|
97
|
+
|
98
|
+
Yields
|
99
|
+
------
|
100
|
+
Tuple[str, MutableStep]
|
101
|
+
A tuple with the step name and the step proxy
|
102
|
+
"""
|
103
|
+
...
|
104
|
+
def add_parameter(self, name: str, value: "metaflow.parameters.Parameter", overwrite: bool = False):
|
105
|
+
"""
|
106
|
+
Add a parameter to the flow. You can only add parameters in the `pre_mutate`
|
107
|
+
method.
|
108
|
+
|
109
|
+
Parameters
|
110
|
+
----------
|
111
|
+
name : str
|
112
|
+
Name of the parameter
|
113
|
+
value : Parameter
|
114
|
+
Parameter to add to the flow
|
115
|
+
overwrite : bool, default False
|
116
|
+
If True, overwrite the parameter if it already exists
|
117
|
+
"""
|
118
|
+
...
|
119
|
+
def remove_parameter(self, parameter_name: str) -> bool:
|
120
|
+
"""
|
121
|
+
Remove a parameter from the flow.
|
122
|
+
|
123
|
+
The name given should match the name of the parameter (can be different
|
124
|
+
from the name of the parameter in the flow. You can not remove config parameters.
|
125
|
+
You can only remove parameters in the `pre_mutate` method.
|
126
|
+
|
127
|
+
Parameters
|
128
|
+
----------
|
129
|
+
parameter_name : str
|
130
|
+
Name of the parameter
|
131
|
+
|
132
|
+
Returns
|
133
|
+
-------
|
134
|
+
bool
|
135
|
+
Returns True if the parameter was removed
|
136
|
+
"""
|
137
|
+
...
|
138
|
+
def add_decorator(self, deco_type: typing.Union[functools.partial, str], deco_args: typing.Optional[typing.List[typing.Any]] = None, deco_kwargs: typing.Optional[typing.Dict[str, typing.Any]] = None, duplicates: int = 1):
|
139
|
+
"""
|
140
|
+
Add a Metaflow flow-decorator to a flow. You can only add decorators in the
|
141
|
+
`pre_mutate` method.
|
142
|
+
|
143
|
+
You can either add the decorator itself or its decorator specification for it
|
144
|
+
(the same you would get back from decorator_specs). You can also mix and match
|
145
|
+
but you cannot provide arguments both through the string and the
|
146
|
+
deco_args/deco_kwargs.
|
147
|
+
|
148
|
+
As an example:
|
149
|
+
```
|
150
|
+
from metaflow import project
|
151
|
+
|
152
|
+
...
|
153
|
+
my_flow.add_decorator(project, deco_kwargs={"name":"my_project"})
|
154
|
+
```
|
155
|
+
|
156
|
+
is equivalent to:
|
157
|
+
```
|
158
|
+
my_flow.add_decorator("project:name=my_project")
|
159
|
+
```
|
160
|
+
|
161
|
+
Note in the later case, there is no need to import the flow decorator.
|
162
|
+
|
163
|
+
The latter syntax is useful to, for example, allow decorators to be stored as
|
164
|
+
strings in a configuration file.
|
165
|
+
|
166
|
+
In terms of precedence for decorators:
|
167
|
+
- if a decorator can be applied multiple times all decorators
|
168
|
+
added are kept (this is rare for flow-decorators).
|
169
|
+
- if `duplicates` is set to `MutableFlow.IGNORE`, then the decorator
|
170
|
+
being added is ignored (in other words, the existing decorator has precedence).
|
171
|
+
- if `duplicates` is set to `MutableFlow.OVERRIDE`, then the *existing*
|
172
|
+
decorator is removed and this newly added one replaces it (in other
|
173
|
+
words, the newly added decorator has precedence).
|
174
|
+
- if `duplicates` is set to `MutableFlow.ERROR`, then an error is raised but only
|
175
|
+
if the newly added decorator is *static* (ie: defined directly in the code).
|
176
|
+
If not, it is ignored.
|
177
|
+
|
178
|
+
Parameters
|
179
|
+
----------
|
180
|
+
deco_type : Union[partial, str]
|
181
|
+
The decorator class to add to this flow. If using a string, you cannot specify
|
182
|
+
additional arguments as all argument will be parsed from the decorator
|
183
|
+
specification.
|
184
|
+
deco_args : List[Any], optional, default None
|
185
|
+
Positional arguments to pass to the decorator.
|
186
|
+
deco_kwargs : Dict[str, Any], optional, default None
|
187
|
+
Keyword arguments to pass to the decorator.
|
188
|
+
duplicates : int, default MutableFlow.IGNORE
|
189
|
+
Instruction on how to handle duplicates. It can be one of:
|
190
|
+
- `MutableFlow.IGNORE`: Ignore the decorator if it already exists.
|
191
|
+
- `MutableFlow.ERROR`: Raise an error if the decorator already exists.
|
192
|
+
- `MutableFlow.OVERRIDE`: Remove the existing decorator and add this one.
|
193
|
+
"""
|
194
|
+
...
|
195
|
+
def remove_decorator(self, deco_name: str, deco_args: typing.Optional[typing.List[typing.Any]] = None, deco_kwargs: typing.Optional[typing.Dict[str, typing.Any]] = None) -> bool:
|
196
|
+
"""
|
197
|
+
Remove a flow-level decorator. To remove a decorator, you can pass the decorator
|
198
|
+
specification (obtained from `decorator_specs` for example).
|
199
|
+
Note that if multiple decorators share the same decorator specification
|
200
|
+
(very rare), they will all be removed.
|
201
|
+
|
202
|
+
You can only remove decorators in the `pre_mutate` method.
|
203
|
+
|
204
|
+
Parameters
|
205
|
+
----------
|
206
|
+
deco_name : str
|
207
|
+
Decorator specification of the decorator to remove. If nothing else is
|
208
|
+
specified, all decorators matching that name will be removed.
|
209
|
+
deco_args : List[Any], optional, default None
|
210
|
+
Positional arguments to match the decorator specification.
|
211
|
+
deco_kwargs : Dict[str, Any], optional, default None
|
212
|
+
Keyword arguments to match the decorator specification.
|
213
|
+
|
214
|
+
Returns
|
215
|
+
-------
|
216
|
+
bool
|
217
|
+
Returns True if a decorator was removed.
|
218
|
+
"""
|
219
|
+
...
|
220
|
+
def __getattr__(self, name):
|
221
|
+
...
|
222
|
+
...
|
223
|
+
|