ob-metaflow-stubs 6.0.4.7__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 +984 -978
- 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 +2 -2
- metaflow-stubs/exception.pyi +2 -2
- metaflow-stubs/flowspec.pyi +10 -10
- 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 +3 -3
- metaflow-stubs/metadata_provider/util.pyi +2 -2
- metaflow-stubs/metaflow_config.pyi +6 -2
- metaflow-stubs/metaflow_current.pyi +46 -46
- 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 +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 +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 +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/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 +3 -3
- 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 +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 +4 -4
- 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 +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 +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/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 +2 -2
- metaflow-stubs/mf_extensions/outerbounds/plugins/apps/core/app_config.pyi +2 -2
- metaflow-stubs/mf_extensions/outerbounds/plugins/apps/core/capsule.pyi +4 -4
- 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 +3 -3
- 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 +2 -2
- metaflow-stubs/mf_extensions/outerbounds/plugins/apps/core/config/unified_config.pyi +3 -3
- metaflow-stubs/mf_extensions/outerbounds/plugins/apps/core/dependencies.pyi +3 -3
- metaflow-stubs/mf_extensions/outerbounds/plugins/apps/core/deployer.pyi +5 -5
- 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 +2 -2
- 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 +3 -3
- 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 +3 -3
- 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 +2 -2
- 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 +3 -3
- metaflow-stubs/plugins/argo/argo_workflows_deployer_objects.pyi +3 -3
- metaflow-stubs/plugins/argo/exit_hooks.pyi +3 -3
- 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 +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 +3 -3
- 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 +3 -3
- 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 +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 +3 -5
- 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 +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/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 +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 +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 +4 -3
- 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 +2 -2
- 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 +4 -4
- 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 +7 -7
- 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 +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.7.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.7.dist-info/RECORD +0 -249
- {ob_metaflow_stubs-6.0.4.7.dist-info → ob_metaflow_stubs-6.0.4.8rc1.dist-info}/WHEEL +0 -0
- {ob_metaflow_stubs-6.0.4.7.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.394039 #
|
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.384194 #
|
5
5
|
######################################################################################################
|
6
6
|
|
7
7
|
from __future__ import annotations
|
metaflow-stubs/ob_internal.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.378558 #
|
5
5
|
######################################################################################################
|
6
6
|
|
7
7
|
from __future__ import annotations
|
@@ -0,0 +1,430 @@
|
|
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.381875 #
|
5
|
+
######################################################################################################
|
6
|
+
|
7
|
+
from __future__ import annotations
|
8
|
+
|
9
|
+
import metaflow
|
10
|
+
import typing
|
11
|
+
import enum
|
12
|
+
if typing.TYPE_CHECKING:
|
13
|
+
import metaflow.packaging_sys
|
14
|
+
import enum
|
15
|
+
import typing
|
16
|
+
import metaflow.extension_support.metadata
|
17
|
+
import metaflow.packaging_sys.backend
|
18
|
+
import metaflow.packaging_sys.tar_backend
|
19
|
+
|
20
|
+
from . import distribution_support as distribution_support
|
21
|
+
from .distribution_support import PackagedDistributionFinder as PackagedDistributionFinder
|
22
|
+
from . import backend as backend
|
23
|
+
from .backend import PackagingBackend as PackagingBackend
|
24
|
+
from . import tar_backend as tar_backend
|
25
|
+
from .tar_backend import TarPackagingBackend as TarPackagingBackend
|
26
|
+
from . import utils as utils
|
27
|
+
from . import v1 as v1
|
28
|
+
|
29
|
+
TYPE_CHECKING: bool
|
30
|
+
|
31
|
+
MFCONTENT_MARKER: str
|
32
|
+
|
33
|
+
class ContentType(enum.IntEnum, metaclass=enum.EnumType):
|
34
|
+
def __new__(cls, value):
|
35
|
+
...
|
36
|
+
...
|
37
|
+
|
38
|
+
class MetaflowCodeContent(object, metaclass=type):
|
39
|
+
"""
|
40
|
+
Base class for all Metaflow code packages (non user code).
|
41
|
+
|
42
|
+
A Metaflow code package, at a minimum, contains:
|
43
|
+
- a special INFO file (containing a bunch of metadata about the Metaflow environment)
|
44
|
+
- a special CONFIG file (containing user configurations for the flow)
|
45
|
+
|
46
|
+
Declare all other MetaflowCodeContent subclasses (versions) here to handle just the functions
|
47
|
+
that are not implemented here. In a *separate* file, declare any other
|
48
|
+
function for that specific version.
|
49
|
+
|
50
|
+
NOTE: This file must remain as dependency-free as possible as it is loaded *very*
|
51
|
+
early on. This is why you must decleare a *separate* class implementing what you want
|
52
|
+
the Metaflow code package (non user) to do.
|
53
|
+
"""
|
54
|
+
@classmethod
|
55
|
+
def get_info(cls) -> typing.Optional[typing.Dict[str, typing.Any]]:
|
56
|
+
"""
|
57
|
+
Get the content of the special INFO file on the local filesystem after
|
58
|
+
the code package has been expanded.
|
59
|
+
|
60
|
+
Returns
|
61
|
+
-------
|
62
|
+
Optional[Dict[str, Any]]
|
63
|
+
The content of the INFO file -- None if there is no such file.
|
64
|
+
"""
|
65
|
+
...
|
66
|
+
@classmethod
|
67
|
+
def get_config(cls) -> typing.Optional[typing.Dict[str, typing.Any]]:
|
68
|
+
"""
|
69
|
+
Get the content of the special CONFIG file on the local filesystem after
|
70
|
+
the code package has been expanded.
|
71
|
+
|
72
|
+
Returns
|
73
|
+
-------
|
74
|
+
Optional[Dict[str, Any]]
|
75
|
+
The content of the CONFIG file -- None if there is no such file.
|
76
|
+
"""
|
77
|
+
...
|
78
|
+
@classmethod
|
79
|
+
def get_filename(cls, filename: str, content_type: ContentType) -> typing.Optional[str]:
|
80
|
+
"""
|
81
|
+
Get the path to a file extracted from the archive. The filename is the filename
|
82
|
+
passed in when creating the archive and content_type is the type of the content.
|
83
|
+
|
84
|
+
This function will return the local path where the file can be found after
|
85
|
+
the package has been extracted.
|
86
|
+
|
87
|
+
Parameters
|
88
|
+
----------
|
89
|
+
filename: str
|
90
|
+
The name of the file on the filesystem.
|
91
|
+
content_type: ContentType
|
92
|
+
|
93
|
+
Returns
|
94
|
+
-------
|
95
|
+
str
|
96
|
+
The path to the file on the local filesystem or None if not found.
|
97
|
+
"""
|
98
|
+
...
|
99
|
+
@classmethod
|
100
|
+
def get_env_vars_for_packaged_metaflow(cls, dest_dir: str) -> typing.Optional[typing.Dict[str, str]]:
|
101
|
+
"""
|
102
|
+
Get the environment variables that are needed to run Metaflow when it is
|
103
|
+
packaged. This is typically used to set the PYTHONPATH to include the
|
104
|
+
directory where the Metaflow code package has been extracted.
|
105
|
+
|
106
|
+
Returns
|
107
|
+
-------
|
108
|
+
Optional[Dict[str, str]]
|
109
|
+
The environment variables that are needed to run Metaflow when it is
|
110
|
+
packaged -- None if there are no such variables (not packaged for example)
|
111
|
+
"""
|
112
|
+
...
|
113
|
+
@classmethod
|
114
|
+
def get_archive_info(cls, archive: typing.Any, packaging_backend: typing.Type[metaflow.packaging_sys.backend.PackagingBackend] = metaflow.packaging_sys.tar_backend.TarPackagingBackend) -> typing.Optional[typing.Dict[str, typing.Any]]:
|
115
|
+
"""
|
116
|
+
Get the content of the special INFO file in the archive.
|
117
|
+
|
118
|
+
Returns
|
119
|
+
-------
|
120
|
+
Optional[Dict[str, Any]]
|
121
|
+
The content of the INFO file -- None if there is no such file.
|
122
|
+
"""
|
123
|
+
...
|
124
|
+
@classmethod
|
125
|
+
def get_archive_config(cls, archive: typing.Any, packaging_backend: typing.Type[metaflow.packaging_sys.backend.PackagingBackend] = metaflow.packaging_sys.tar_backend.TarPackagingBackend) -> typing.Optional[typing.Dict[str, typing.Any]]:
|
126
|
+
"""
|
127
|
+
Get the content of the special CONFIG file in the archive.
|
128
|
+
|
129
|
+
Returns
|
130
|
+
-------
|
131
|
+
Optional[Dict[str, Any]]
|
132
|
+
The content of the CONFIG file -- None if there is no such file.
|
133
|
+
"""
|
134
|
+
...
|
135
|
+
@classmethod
|
136
|
+
def get_archive_filename(cls, archive: typing.Any, filename: str, content_type: ContentType, packaging_backend: typing.Type[metaflow.packaging_sys.backend.PackagingBackend] = metaflow.packaging_sys.tar_backend.TarPackagingBackend) -> typing.Optional[str]:
|
137
|
+
"""
|
138
|
+
Get the filename of the archive. This does not do any extraction but simply
|
139
|
+
returns where, in the archive, the file is located. This is the equivalent of
|
140
|
+
get_filename but for files not extracted yet.
|
141
|
+
|
142
|
+
Parameters
|
143
|
+
----------
|
144
|
+
archive: Any
|
145
|
+
The archive to get the filename from.
|
146
|
+
filename: str
|
147
|
+
The name of the file in the archive.
|
148
|
+
content_type: ContentType
|
149
|
+
The type of the content (e.g., code, other, etc.).
|
150
|
+
packaging_backend: Type[PackagingBackend], default TarPackagingBackend
|
151
|
+
The packaging backend to use.
|
152
|
+
|
153
|
+
Returns
|
154
|
+
-------
|
155
|
+
str
|
156
|
+
The filename of the archive or None if not found.
|
157
|
+
"""
|
158
|
+
...
|
159
|
+
@classmethod
|
160
|
+
def get_archive_content_names(cls, archive: typing.Any, content_types: typing.Optional[int] = None, packaging_backend: typing.Type[metaflow.packaging_sys.backend.PackagingBackend] = metaflow.packaging_sys.tar_backend.TarPackagingBackend) -> typing.List[str]:
|
161
|
+
...
|
162
|
+
@classmethod
|
163
|
+
def get_distribution_finder(cls) -> typing.Optional["metaflow.extension_support.metadata.DistributionFinder"]:
|
164
|
+
"""
|
165
|
+
Get the distribution finder for the Metaflow code package (if applicable).
|
166
|
+
|
167
|
+
Some packages will include distribution information to "pretend" that some packages
|
168
|
+
are actually distributions even if we just include them in the code package.
|
169
|
+
|
170
|
+
Returns
|
171
|
+
-------
|
172
|
+
Optional["metaflow.extension_support.metadata.DistributionFinder"]
|
173
|
+
The distribution finder for the Metaflow code package -- None if there is no
|
174
|
+
such finder.
|
175
|
+
"""
|
176
|
+
...
|
177
|
+
@classmethod
|
178
|
+
def get_post_extract_env_vars(cls, version_id: int, dest_dir: str = '.') -> typing.Dict[str, str]:
|
179
|
+
"""
|
180
|
+
Get the post-extract environment variables that are needed to access the content
|
181
|
+
that has been extracted into dest_dir.
|
182
|
+
|
183
|
+
This will typically involve setting PYTHONPATH.
|
184
|
+
|
185
|
+
Parameters
|
186
|
+
----------
|
187
|
+
version_id: int
|
188
|
+
The version of MetaflowCodeContent for this package.
|
189
|
+
dest_dir: str, default "."
|
190
|
+
The directory where the content has been extracted to.
|
191
|
+
|
192
|
+
Returns
|
193
|
+
-------
|
194
|
+
Dict[str, str]
|
195
|
+
The post-extract environment variables that are needed to access the content
|
196
|
+
that has been extracted into extracted_dir.
|
197
|
+
"""
|
198
|
+
...
|
199
|
+
@classmethod
|
200
|
+
def get_info_impl(cls, mfcontent_info: typing.Optional[typing.Dict[str, typing.Any]]) -> typing.Optional[typing.Dict[str, typing.Any]]:
|
201
|
+
...
|
202
|
+
@classmethod
|
203
|
+
def get_config_impl(cls, mfcontent_info: typing.Optional[typing.Dict[str, typing.Any]]) -> typing.Optional[typing.Dict[str, typing.Any]]:
|
204
|
+
...
|
205
|
+
@classmethod
|
206
|
+
def get_filename_impl(cls, mfcontent_info: typing.Optional[typing.Dict[str, typing.Any]], filename: str, content_type: ContentType) -> typing.Optional[str]:
|
207
|
+
...
|
208
|
+
@classmethod
|
209
|
+
def get_distribution_finder_impl(cls, mfcontent_info: typing.Optional[typing.Dict[str, typing.Any]]) -> typing.Optional["metaflow.extension_support.metadata.DistributionFinder"]:
|
210
|
+
...
|
211
|
+
@classmethod
|
212
|
+
def get_archive_info_impl(cls, mfcontent_info: typing.Optional[typing.Dict[str, typing.Any]], archive: typing.Any, packaging_backend: typing.Type[metaflow.packaging_sys.backend.PackagingBackend] = metaflow.packaging_sys.tar_backend.TarPackagingBackend) -> typing.Optional[typing.Dict[str, typing.Any]]:
|
213
|
+
...
|
214
|
+
@classmethod
|
215
|
+
def get_archive_config_impl(cls, mfcontent_info: typing.Optional[typing.Dict[str, typing.Any]], archive: typing.Any, packaging_backend: typing.Type[metaflow.packaging_sys.backend.PackagingBackend] = metaflow.packaging_sys.tar_backend.TarPackagingBackend) -> typing.Optional[typing.Dict[str, typing.Any]]:
|
216
|
+
...
|
217
|
+
@classmethod
|
218
|
+
def get_archive_filename_impl(cls, mfcontent_info: typing.Optional[typing.Dict[str, typing.Any]], archive: typing.Any, filename: str, content_type: ContentType, packaging_backend: typing.Type[metaflow.packaging_sys.backend.PackagingBackend] = metaflow.packaging_sys.tar_backend.TarPackagingBackend) -> typing.Optional[str]:
|
219
|
+
...
|
220
|
+
@classmethod
|
221
|
+
def get_archive_content_names_impl(cls, mfcontent_info: typing.Optional[typing.Dict[str, typing.Any]], archive: typing.Any, content_types: typing.Optional[int] = None, packaging_backend: typing.Type[metaflow.packaging_sys.backend.PackagingBackend] = metaflow.packaging_sys.tar_backend.TarPackagingBackend) -> typing.List[str]:
|
222
|
+
...
|
223
|
+
@classmethod
|
224
|
+
def get_post_extract_env_vars_impl(cls, dest_dir: str) -> typing.Dict[str, str]:
|
225
|
+
...
|
226
|
+
@classmethod
|
227
|
+
def __init_subclass__(cls, version_id, **kwargs):
|
228
|
+
...
|
229
|
+
def get_excluded_tl_entries(self) -> typing.List[str]:
|
230
|
+
"""
|
231
|
+
When packaging Metaflow from within an executing Metaflow flow, we need to
|
232
|
+
exclude the files that are inserted by this content from being packaged (possibly).
|
233
|
+
|
234
|
+
Use this function to return these files or top-level directories.
|
235
|
+
|
236
|
+
Returns
|
237
|
+
-------
|
238
|
+
List[str]
|
239
|
+
Files or directories to exclude
|
240
|
+
"""
|
241
|
+
...
|
242
|
+
def content_names(self, content_types: typing.Optional[int] = None) -> typing.Generator[typing.Tuple[str, str], None, None]:
|
243
|
+
"""
|
244
|
+
Detailed list of the content of this MetaflowCodeContent. This will list all files
|
245
|
+
(or non files -- for the INFO or CONFIG data for example) present in the archive.
|
246
|
+
|
247
|
+
Parameters
|
248
|
+
----------
|
249
|
+
content_types : Optional[int]
|
250
|
+
The type of content to get the names of. If None, all content is returned.
|
251
|
+
|
252
|
+
Yields
|
253
|
+
------
|
254
|
+
Generator[Tuple[str, str], None, None]
|
255
|
+
Path on the filesystem and the name in the archive
|
256
|
+
"""
|
257
|
+
...
|
258
|
+
def contents(self, content_types: typing.Optional[int] = None) -> typing.Generator[typing.Tuple[typing.Union[bytes, str], str], None, None]:
|
259
|
+
"""
|
260
|
+
Very similar to content_names but returns the content of the non-files
|
261
|
+
as well as bytes. For files, identical output as content_names
|
262
|
+
|
263
|
+
Parameters
|
264
|
+
----------
|
265
|
+
content_types : Optional[int]
|
266
|
+
The type of content to get the content of. If None, all content is returned.
|
267
|
+
|
268
|
+
Yields
|
269
|
+
------
|
270
|
+
Generator[Tuple[Union[str, bytes], str], None, None]
|
271
|
+
Content of the MF content
|
272
|
+
"""
|
273
|
+
...
|
274
|
+
def show(self) -> str:
|
275
|
+
"""
|
276
|
+
Returns a more human-readable string representation of the content of this
|
277
|
+
MetaflowCodeContent. This will not, for example, list all files but summarize what
|
278
|
+
is included at a more high level.
|
279
|
+
|
280
|
+
Returns
|
281
|
+
-------
|
282
|
+
str
|
283
|
+
A human-readable string representation of the content of this MetaflowCodeContent
|
284
|
+
"""
|
285
|
+
...
|
286
|
+
def add_info(self, info: typing.Dict[str, typing.Any]):
|
287
|
+
"""
|
288
|
+
Add the content of the INFO file to the Metaflow content
|
289
|
+
|
290
|
+
Parameters
|
291
|
+
----------
|
292
|
+
info: Dict[str, Any]
|
293
|
+
The content of the INFO file
|
294
|
+
"""
|
295
|
+
...
|
296
|
+
def add_config(self, config: typing.Dict[str, typing.Any]):
|
297
|
+
"""
|
298
|
+
Add the content of the CONFIG file to the Metaflow content
|
299
|
+
|
300
|
+
Parameters
|
301
|
+
----------
|
302
|
+
config: Dict[str, Any]
|
303
|
+
The content of the CONFIG file
|
304
|
+
"""
|
305
|
+
...
|
306
|
+
def add_module(self, module_path: module):
|
307
|
+
"""
|
308
|
+
Add a python module to the Metaflow content
|
309
|
+
|
310
|
+
Parameters
|
311
|
+
----------
|
312
|
+
module_path: ModuleType
|
313
|
+
The module to add
|
314
|
+
"""
|
315
|
+
...
|
316
|
+
def add_code_file(self, file_path: str, file_name: str):
|
317
|
+
"""
|
318
|
+
Add a code file to the Metaflow content
|
319
|
+
|
320
|
+
Parameters
|
321
|
+
----------
|
322
|
+
file_path: str
|
323
|
+
The path to the code file to add (on the filesystem)
|
324
|
+
file_name: str
|
325
|
+
The path in the archive to add the code file to
|
326
|
+
"""
|
327
|
+
...
|
328
|
+
def add_other_file(self, file_path: str, file_name: str):
|
329
|
+
"""
|
330
|
+
Add a non-python file to the Metaflow content
|
331
|
+
|
332
|
+
Parameters
|
333
|
+
----------
|
334
|
+
file_path: str
|
335
|
+
The path to the file to add (on the filesystem)
|
336
|
+
file_name: str
|
337
|
+
The path in the archive to add the file to
|
338
|
+
"""
|
339
|
+
...
|
340
|
+
def get_package_version(self) -> int:
|
341
|
+
"""
|
342
|
+
Get the version of MetaflowCodeContent for this package.
|
343
|
+
"""
|
344
|
+
...
|
345
|
+
...
|
346
|
+
|
347
|
+
class MetaflowCodeContentV0(MetaflowCodeContent, metaclass=type):
|
348
|
+
@classmethod
|
349
|
+
def get_info_impl(cls, mfcontent_info: typing.Optional[typing.Dict[str, typing.Any]]) -> typing.Optional[typing.Dict[str, typing.Any]]:
|
350
|
+
...
|
351
|
+
@classmethod
|
352
|
+
def get_config_impl(cls, mfcontent_info: typing.Optional[typing.Dict[str, typing.Any]]) -> typing.Optional[typing.Dict[str, typing.Any]]:
|
353
|
+
...
|
354
|
+
@classmethod
|
355
|
+
def get_filename_impl(cls, mfcontent_info: typing.Optional[typing.Dict[str, typing.Any]], filename: str, content_type: ContentType) -> typing.Optional[str]:
|
356
|
+
"""
|
357
|
+
For V0, the filename is simply the filename passed in.
|
358
|
+
"""
|
359
|
+
...
|
360
|
+
@classmethod
|
361
|
+
def get_distribution_finder_impl(cls, mfcontent_info: typing.Optional[typing.Dict[str, typing.Any]]) -> typing.Optional["metaflow.extension_support.metadata.DistributionFinder"]:
|
362
|
+
...
|
363
|
+
@classmethod
|
364
|
+
def get_archive_info_impl(cls, mfcontent_info: typing.Optional[typing.Dict[str, typing.Any]], archive: typing.Any, packaging_backend: typing.Type[metaflow.packaging_sys.backend.PackagingBackend] = metaflow.packaging_sys.tar_backend.TarPackagingBackend) -> typing.Optional[typing.Dict[str, typing.Any]]:
|
365
|
+
...
|
366
|
+
@classmethod
|
367
|
+
def get_archive_config_impl(cls, mfcontent_info: typing.Optional[typing.Dict[str, typing.Any]], archive: typing.Any, packaging_backend: typing.Type[metaflow.packaging_sys.backend.PackagingBackend] = metaflow.packaging_sys.tar_backend.TarPackagingBackend) -> typing.Optional[typing.Dict[str, typing.Any]]:
|
368
|
+
...
|
369
|
+
@classmethod
|
370
|
+
def get_archive_filename_impl(cls, mfcontent_info: typing.Optional[typing.Dict[str, typing.Any]], archive: typing.Any, filename: str, content_type: ContentType, packaging_backend: typing.Type[metaflow.packaging_sys.backend.PackagingBackend] = metaflow.packaging_sys.tar_backend.TarPackagingBackend) -> str:
|
371
|
+
...
|
372
|
+
@classmethod
|
373
|
+
def get_archive_content_names_impl(cls, mfcontent_info: typing.Optional[typing.Dict[str, typing.Any]], archive: typing.Any, content_types: typing.Optional[int] = None, packaging_backend: typing.Type[metaflow.packaging_sys.backend.PackagingBackend] = metaflow.packaging_sys.tar_backend.TarPackagingBackend) -> typing.List[str]:
|
374
|
+
"""
|
375
|
+
For V0, we use a static list of known files to classify the content
|
376
|
+
"""
|
377
|
+
...
|
378
|
+
@classmethod
|
379
|
+
def get_post_extract_env_vars_impl(cls, dest_dir: str) -> typing.Dict[str, str]:
|
380
|
+
...
|
381
|
+
def get_excluded_tl_entries(self) -> typing.List[str]:
|
382
|
+
"""
|
383
|
+
When packaging Metaflow from within an executing Metaflow flow, we need to
|
384
|
+
exclude the files that are inserted by this content from being packaged (possibly).
|
385
|
+
|
386
|
+
Use this function to return these files or top-level directories.
|
387
|
+
|
388
|
+
Returns
|
389
|
+
-------
|
390
|
+
List[str]
|
391
|
+
Files or directories to exclude
|
392
|
+
"""
|
393
|
+
...
|
394
|
+
...
|
395
|
+
|
396
|
+
class MetaflowCodeContentV1Base(MetaflowCodeContent, metaclass=type):
|
397
|
+
@classmethod
|
398
|
+
def __init_subclass__(cls, **kwargs):
|
399
|
+
...
|
400
|
+
def __init__(self, code_dir: str, other_dir: str):
|
401
|
+
...
|
402
|
+
@classmethod
|
403
|
+
def get_info_impl(cls, mfcontent_info: typing.Optional[typing.Dict[str, typing.Any]]) -> typing.Optional[typing.Dict[str, typing.Any]]:
|
404
|
+
...
|
405
|
+
@classmethod
|
406
|
+
def get_config_impl(cls, mfcontent_info: typing.Optional[typing.Dict[str, typing.Any]]) -> typing.Optional[typing.Dict[str, typing.Any]]:
|
407
|
+
...
|
408
|
+
@classmethod
|
409
|
+
def get_filename_impl(cls, mfcontent_info: typing.Optional[typing.Dict[str, typing.Any]], filename: str, content_type: ContentType) -> typing.Optional[str]:
|
410
|
+
...
|
411
|
+
@classmethod
|
412
|
+
def get_distribution_finder_impl(cls, mfcontent_info: typing.Optional[typing.Dict[str, typing.Any]]) -> typing.Optional["metaflow.extension_support.metadata.DistributionFinder"]:
|
413
|
+
...
|
414
|
+
@classmethod
|
415
|
+
def get_archive_info_impl(cls, mfcontent_info: typing.Optional[typing.Dict[str, typing.Any]], archive: typing.Any, packaging_backend: typing.Type[metaflow.packaging_sys.backend.PackagingBackend] = metaflow.packaging_sys.tar_backend.TarPackagingBackend) -> typing.Optional[typing.Dict[str, typing.Any]]:
|
416
|
+
...
|
417
|
+
@classmethod
|
418
|
+
def get_archive_config_impl(cls, mfcontent_info: typing.Optional[typing.Dict[str, typing.Any]], archive: typing.Any, packaging_backend: typing.Type[metaflow.packaging_sys.backend.PackagingBackend] = metaflow.packaging_sys.tar_backend.TarPackagingBackend) -> typing.Optional[typing.Dict[str, typing.Any]]:
|
419
|
+
...
|
420
|
+
@classmethod
|
421
|
+
def get_archive_filename_impl(cls, mfcontent_info: typing.Optional[typing.Dict[str, typing.Any]], archive: typing.Any, filename: str, content_type: ContentType, packaging_backend: typing.Type[metaflow.packaging_sys.backend.PackagingBackend] = metaflow.packaging_sys.tar_backend.TarPackagingBackend) -> str:
|
422
|
+
...
|
423
|
+
@classmethod
|
424
|
+
def get_archive_content_names_impl(cls, mfcontent_info: typing.Optional[typing.Dict[str, typing.Any]], archive: typing.Any, content_types: typing.Optional[int] = None, packaging_backend: typing.Type[metaflow.packaging_sys.backend.PackagingBackend] = metaflow.packaging_sys.tar_backend.TarPackagingBackend) -> typing.List[str]:
|
425
|
+
...
|
426
|
+
@classmethod
|
427
|
+
def get_post_extract_env_vars_impl(cls, dest_dir: str) -> typing.Dict[str, str]:
|
428
|
+
...
|
429
|
+
...
|
430
|
+
|
@@ -0,0 +1,73 @@
|
|
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.414750 #
|
5
|
+
######################################################################################################
|
6
|
+
|
7
|
+
from __future__ import annotations
|
8
|
+
|
9
|
+
import typing
|
10
|
+
import abc
|
11
|
+
if typing.TYPE_CHECKING:
|
12
|
+
import typing
|
13
|
+
import io
|
14
|
+
import abc
|
15
|
+
|
16
|
+
|
17
|
+
class PackagingBackend(abc.ABC, metaclass=abc.ABCMeta):
|
18
|
+
@classmethod
|
19
|
+
def __init_subclass__(cls, **kwargs):
|
20
|
+
...
|
21
|
+
@classmethod
|
22
|
+
def get_backend(cls, name: str) -> "PackagingBackend":
|
23
|
+
...
|
24
|
+
@classmethod
|
25
|
+
def backend_type(cls) -> str:
|
26
|
+
...
|
27
|
+
@classmethod
|
28
|
+
def get_extract_commands(cls, archive_name: str, dest_dir: str) -> typing.List[str]:
|
29
|
+
...
|
30
|
+
def __init__(self):
|
31
|
+
...
|
32
|
+
def create(self) -> "PackagingBackend":
|
33
|
+
...
|
34
|
+
def add_file(self, filename: str, arcname: typing.Optional[str] = None):
|
35
|
+
...
|
36
|
+
def add_data(self, data: io.BytesIO, arcname: str):
|
37
|
+
...
|
38
|
+
def close(self):
|
39
|
+
...
|
40
|
+
def get_blob(self) -> typing.Union[bytes, bytearray, None]:
|
41
|
+
...
|
42
|
+
@classmethod
|
43
|
+
def cls_open(cls, content: typing.IO[bytes]) -> typing.Any:
|
44
|
+
"""
|
45
|
+
Open the archive from the given content.
|
46
|
+
"""
|
47
|
+
...
|
48
|
+
@classmethod
|
49
|
+
def cls_has_member(cls, archive: typing.Any, name: str) -> bool:
|
50
|
+
...
|
51
|
+
@classmethod
|
52
|
+
def cls_get_member(cls, archive: typing.Any, name: str) -> typing.Optional[bytes]:
|
53
|
+
...
|
54
|
+
@classmethod
|
55
|
+
def cls_extract_members(cls, archive: typing.Any, members: typing.Optional[typing.List[str]] = None, dest_dir: str = '.'):
|
56
|
+
...
|
57
|
+
@classmethod
|
58
|
+
def cls_list_members(cls, archive: typing.Any) -> typing.Optional[typing.List[str]]:
|
59
|
+
...
|
60
|
+
def has_member(self, name: str) -> bool:
|
61
|
+
...
|
62
|
+
def get_member(self, name: str) -> typing.Optional[bytes]:
|
63
|
+
...
|
64
|
+
def extract_members(self, members: typing.Optional[typing.List[str]] = None, dest_dir: str = '.'):
|
65
|
+
...
|
66
|
+
def list_members(self) -> typing.Optional[typing.List[str]]:
|
67
|
+
...
|
68
|
+
def __enter__(self):
|
69
|
+
...
|
70
|
+
def __exit__(self, exc_type, exc_value, traceback):
|
71
|
+
...
|
72
|
+
...
|
73
|
+
|
@@ -0,0 +1,57 @@
|
|
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.413998 #
|
5
|
+
######################################################################################################
|
6
|
+
|
7
|
+
from __future__ import annotations
|
8
|
+
|
9
|
+
import typing
|
10
|
+
import importlib
|
11
|
+
import abc
|
12
|
+
if typing.TYPE_CHECKING:
|
13
|
+
import importlib.metadata
|
14
|
+
import abc
|
15
|
+
import os
|
16
|
+
|
17
|
+
|
18
|
+
TYPE_CHECKING: bool
|
19
|
+
|
20
|
+
def modules_to_distributions() -> typing.Dict[str, typing.List[importlib.metadata.Distribution]]:
|
21
|
+
"""
|
22
|
+
Return a mapping of top-level modules to their distributions.
|
23
|
+
|
24
|
+
Returns
|
25
|
+
-------
|
26
|
+
Dict[str, List[metadata.Distribution]]
|
27
|
+
A mapping of top-level modules to their distributions.
|
28
|
+
"""
|
29
|
+
...
|
30
|
+
|
31
|
+
class PackagedDistribution(importlib.metadata.Distribution, metaclass=type):
|
32
|
+
"""
|
33
|
+
A Python Package packaged within a MetaflowCodeContent. This allows users to use use importlib
|
34
|
+
as they would regularly and the packaged Python Package would be considered as a
|
35
|
+
distribution even if it really isn't (since it is just included in the PythonPath).
|
36
|
+
"""
|
37
|
+
def __init__(self, root: str, content: typing.Dict[str, str]):
|
38
|
+
...
|
39
|
+
def read_text(self, filename: typing.Union[str, os.PathLike]) -> typing.Optional[str]:
|
40
|
+
"""
|
41
|
+
Attempt to load metadata file given by the name.
|
42
|
+
|
43
|
+
:param filename: The name of the file in the distribution info.
|
44
|
+
:return: The text if found, otherwise None.
|
45
|
+
"""
|
46
|
+
...
|
47
|
+
def locate_file(self, path: typing.Union[str, os.PathLike]):
|
48
|
+
...
|
49
|
+
...
|
50
|
+
|
51
|
+
class PackagedDistributionFinder(importlib.metadata.DistributionFinder, metaclass=abc.ABCMeta):
|
52
|
+
def __init__(self, dist_info: typing.Dict[str, typing.Dict[str, str]]):
|
53
|
+
...
|
54
|
+
def find_distributions(self, context = ...):
|
55
|
+
...
|
56
|
+
...
|
57
|
+
|
@@ -0,0 +1,53 @@
|
|
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.415294 #
|
5
|
+
######################################################################################################
|
6
|
+
|
7
|
+
from __future__ import annotations
|
8
|
+
|
9
|
+
import metaflow
|
10
|
+
import typing
|
11
|
+
import abc
|
12
|
+
if typing.TYPE_CHECKING:
|
13
|
+
import io
|
14
|
+
import tarfile
|
15
|
+
import typing
|
16
|
+
import abc
|
17
|
+
import metaflow.packaging_sys.backend
|
18
|
+
|
19
|
+
from .backend import PackagingBackend as PackagingBackend
|
20
|
+
|
21
|
+
class TarPackagingBackend(metaflow.packaging_sys.backend.PackagingBackend, metaclass=abc.ABCMeta):
|
22
|
+
@classmethod
|
23
|
+
def get_extract_commands(cls, archive_name: str, dest_dir: str) -> typing.List[str]:
|
24
|
+
...
|
25
|
+
def __init__(self):
|
26
|
+
...
|
27
|
+
def create(self):
|
28
|
+
...
|
29
|
+
def add_file(self, filename: str, arcname: typing.Optional[str] = None):
|
30
|
+
...
|
31
|
+
def add_data(self, data: io.BytesIO, arcname: str):
|
32
|
+
...
|
33
|
+
def close(self):
|
34
|
+
...
|
35
|
+
def get_blob(self) -> typing.Union[bytes, bytearray, None]:
|
36
|
+
...
|
37
|
+
@classmethod
|
38
|
+
def cls_open(cls, content: typing.IO[bytes]) -> tarfile.TarFile:
|
39
|
+
...
|
40
|
+
@classmethod
|
41
|
+
def cls_has_member(cls, archive: tarfile.TarFile, name: str) -> bool:
|
42
|
+
...
|
43
|
+
@classmethod
|
44
|
+
def cls_get_member(cls, archive: tarfile.TarFile, name: str) -> typing.Optional[bytes]:
|
45
|
+
...
|
46
|
+
@classmethod
|
47
|
+
def cls_extract_members(cls, archive: tarfile.TarFile, members: typing.Optional[typing.List[str]] = None, dest_dir: str = '.'):
|
48
|
+
...
|
49
|
+
@classmethod
|
50
|
+
def cls_list_members(cls, archive: tarfile.TarFile) -> typing.Optional[typing.List[str]]:
|
51
|
+
...
|
52
|
+
...
|
53
|
+
|
@@ -0,0 +1,26 @@
|
|
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.415618 #
|
5
|
+
######################################################################################################
|
6
|
+
|
7
|
+
from __future__ import annotations
|
8
|
+
|
9
|
+
import typing
|
10
|
+
|
11
|
+
|
12
|
+
def walk_without_cycles(top_root: str, exclude_dirs: typing.Optional[typing.List[str]] = None) -> typing.Generator[typing.Tuple[str, typing.List[str]], None, None]:
|
13
|
+
...
|
14
|
+
|
15
|
+
def walk(root: str, exclude_hidden: bool = True, file_filter: typing.Optional[typing.Callable[[str], bool]] = None, exclude_tl_dirs: typing.Optional[typing.List[str]] = None) -> typing.Generator[typing.Tuple[str, str], None, None]:
|
16
|
+
...
|
17
|
+
|
18
|
+
def suffix_filter(suffixes: typing.List[str]) -> typing.Callable[[str], bool]:
|
19
|
+
"""
|
20
|
+
Returns a filter function that checks if a file ends with any of the given suffixes.
|
21
|
+
"""
|
22
|
+
...
|
23
|
+
|
24
|
+
def with_dir(new_dir):
|
25
|
+
...
|
26
|
+
|