ob-metaflow-stubs 6.0.3.127__tar.gz → 6.0.3.129__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {ob-metaflow-stubs-6.0.3.127/ob_metaflow_stubs.egg-info → ob-metaflow-stubs-6.0.3.129}/PKG-INFO +1 -1
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/__init__.pyi +228 -227
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/cards.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/cli.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/cli_components/__init__.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/cli_components/utils.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/client/__init__.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/client/core.pyi +5 -5
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/client/filecache.pyi +3 -3
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/events.pyi +3 -3
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/exception.pyi +3 -3
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/flowspec.pyi +6 -6
- ob-metaflow-stubs-6.0.3.129/metaflow-stubs/generated_for.txt +1 -0
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/includefile.pyi +4 -4
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/info_file.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/metadata_provider/__init__.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/metadata_provider/heartbeat.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/metadata_provider/metadata.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/metadata_provider/util.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/metaflow_config.pyi +4 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/metaflow_current.pyi +121 -121
- {ob-metaflow-stubs-6.0.3.127/metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities → ob-metaflow-stubs-6.0.3.129/metaflow-stubs/mf_extensions}/__init__.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127/metaflow-stubs/mf_extensions → ob-metaflow-stubs-6.0.3.129/metaflow-stubs/mf_extensions/obcheckpoint}/__init__.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127/metaflow-stubs/mf_extensions/obcheckpoint → ob-metaflow-stubs-6.0.3.129/metaflow-stubs/mf_extensions/obcheckpoint/plugins}/__init__.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127/metaflow-stubs/mf_extensions/obcheckpoint/plugins → ob-metaflow-stubs-6.0.3.129/metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities}/__init__.pyi +2 -2
- ob-metaflow-stubs-6.0.3.129/metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/card_utils/__init__.pyi +6 -0
- ob-metaflow-stubs-6.0.3.129/metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/card_utils/async_cards.pyi +58 -0
- ob-metaflow-stubs-6.0.3.129/metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/card_utils/deco_injection_mixin.pyi +23 -0
- ob-metaflow-stubs-6.0.3.129/metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/card_utils/extra_components.pyi +69 -0
- ob-metaflow-stubs-6.0.3.129/metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/checkpoints/__init__.pyi +6 -0
- ob-metaflow-stubs-6.0.3.129/metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/checkpoints/cards/__init__.pyi +6 -0
- ob-metaflow-stubs-6.0.3.129/metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/checkpoints/cards/checkpoint_lister.pyi +76 -0
- ob-metaflow-stubs-6.0.3.129/metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/checkpoints/cards/lineage_card.pyi +33 -0
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/checkpoints/checkpoint_storage.pyi +3 -3
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/checkpoints/constructors.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/checkpoints/core.pyi +4 -4
- ob-metaflow-stubs-6.0.3.129/metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/checkpoints/decorator.pyi +249 -0
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/checkpoints/exceptions.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/checkpoints/final_api.pyi +3 -3
- ob-metaflow-stubs-6.0.3.129/metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/checkpoints/lineage.pyi +27 -0
- ob-metaflow-stubs-6.0.3.129/metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/datastore/__init__.pyi +6 -0
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/datastore/core.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/datastore/exceptions.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/datastore/task_utils.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/datastore/utils.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/datastructures.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/exceptions.pyi +2 -2
- ob-metaflow-stubs-6.0.3.129/metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/hf_hub/__init__.pyi +6 -0
- ob-metaflow-stubs-6.0.3.129/metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/hf_hub/decorator.pyi +206 -0
- ob-metaflow-stubs-6.0.3.129/metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/modeling_utils/__init__.pyi +6 -0
- ob-metaflow-stubs-6.0.3.129/metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/modeling_utils/core.pyi +99 -0
- ob-metaflow-stubs-6.0.3.129/metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/modeling_utils/exceptions.pyi +25 -0
- ob-metaflow-stubs-6.0.3.129/metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/modeling_utils/model_storage.pyi +80 -0
- ob-metaflow-stubs-6.0.3.129/metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/utils/__init__.pyi +6 -0
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/utils/flowspec_utils.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/utils/general.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/utils/identity_utils.pyi +2 -2
- ob-metaflow-stubs-6.0.3.129/metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/utils/serialization_handler/__init__.pyi +6 -0
- ob-metaflow-stubs-6.0.3.129/metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/utils/serialization_handler/base.pyi +20 -0
- ob-metaflow-stubs-6.0.3.129/metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/utils/serialization_handler/tar.pyi +25 -0
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/utils/tar_utils.pyi +2 -2
- ob-metaflow-stubs-6.0.3.129/metaflow-stubs/mf_extensions/outerbounds/__init__.pyi +6 -0
- ob-metaflow-stubs-6.0.3.129/metaflow-stubs/mf_extensions/outerbounds/plugins/__init__.pyi +6 -0
- ob-metaflow-stubs-6.0.3.129/metaflow-stubs/mf_extensions/outerbounds/plugins/snowflake/__init__.pyi +6 -0
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/mf_extensions/outerbounds/plugins/snowflake/snowflake.pyi +2 -2
- ob-metaflow-stubs-6.0.3.129/metaflow-stubs/mf_extensions/outerbounds/profilers/__init__.pyi +6 -0
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/mf_extensions/outerbounds/profilers/gpu.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/mf_extensions/outerbounds/remote_config.pyi +2 -2
- ob-metaflow-stubs-6.0.3.129/metaflow-stubs/mf_extensions/outerbounds/toplevel/__init__.pyi +6 -0
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/mf_extensions/outerbounds/toplevel/global_aliases_for_metaflow_package.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/multicore_utils.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/parameters.pyi +4 -4
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/__init__.pyi +10 -10
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/airflow/__init__.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/airflow/airflow_utils.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/airflow/exception.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/airflow/sensors/__init__.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/airflow/sensors/base_sensor.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/airflow/sensors/external_task_sensor.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/airflow/sensors/s3_sensor.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/argo/__init__.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/argo/argo_client.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/argo/argo_events.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/argo/argo_workflows.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/argo/argo_workflows_decorator.pyi +3 -3
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/argo/argo_workflows_deployer.pyi +3 -3
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/argo/argo_workflows_deployer_objects.pyi +3 -3
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/aws/__init__.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/aws/aws_client.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/aws/aws_utils.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/aws/batch/__init__.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/aws/batch/batch.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/aws/batch/batch_client.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/aws/batch/batch_decorator.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/aws/secrets_manager/__init__.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/aws/secrets_manager/aws_secrets_manager_secrets_provider.pyi +15 -13
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/aws/step_functions/__init__.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/aws/step_functions/event_bridge_client.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/aws/step_functions/schedule_decorator.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/aws/step_functions/step_functions.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/aws/step_functions/step_functions_client.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/aws/step_functions/step_functions_deployer.pyi +3 -3
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/aws/step_functions/step_functions_deployer_objects.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/azure/__init__.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/azure/azure_credential.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/azure/azure_exceptions.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/azure/azure_secret_manager_secrets_provider.pyi +3 -3
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/azure/azure_utils.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/azure/blob_service_client_factory.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/azure/includefile_support.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/cards/__init__.pyi +6 -6
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/cards/card_client.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/cards/card_creator.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/cards/card_datastore.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/cards/card_decorator.pyi +4 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/cards/card_modules/__init__.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/cards/card_modules/basic.pyi +3 -3
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/cards/card_modules/card.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/cards/card_modules/components.pyi +4 -4
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/cards/card_modules/convert_to_native_type.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/cards/card_modules/renderer_tools.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/cards/card_modules/test_cards.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/cards/card_resolver.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/cards/component_serializer.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/cards/exception.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/catch_decorator.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/datatools/__init__.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/datatools/local.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/datatools/s3/__init__.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/datatools/s3/s3.pyi +3 -3
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/datatools/s3/s3tail.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/datatools/s3/s3util.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/debug_logger.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/debug_monitor.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/environment_decorator.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/events_decorator.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/frameworks/__init__.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/frameworks/pytorch.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/gcp/__init__.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/gcp/gcp_secret_manager_secrets_provider.pyi +3 -3
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/gcp/gs_exceptions.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/gcp/gs_storage_client_factory.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/gcp/gs_utils.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/gcp/includefile_support.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/kubernetes/__init__.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/kubernetes/kube_utils.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/kubernetes/kubernetes.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/kubernetes/kubernetes_client.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/kubernetes/kubernetes_decorator.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/kubernetes/kubernetes_jobsets.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/parallel_decorator.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/perimeters.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/project_decorator.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/pypi/__init__.pyi +3 -3
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/pypi/conda_decorator.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/pypi/conda_environment.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/pypi/pypi_decorator.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/pypi/pypi_environment.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/pypi/utils.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/resources_decorator.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/retry_decorator.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/secrets/__init__.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/secrets/inline_secrets_provider.pyi +3 -3
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/secrets/secrets_decorator.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/snowflake/__init__.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/storage_executor.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/test_unbounded_foreach_decorator.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/plugins/timeout_decorator.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/profilers/__init__.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/pylint_wrapper.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/runner/__init__.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/runner/deployer.pyi +29 -29
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/runner/deployer_impl.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/runner/metaflow_runner.pyi +3 -3
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/runner/nbdeploy.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/runner/nbrun.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/runner/subprocess_manager.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/runner/utils.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/system/__init__.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/system/system_logger.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/system/system_monitor.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/tagging_util.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/tuple_util.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/user_configs/__init__.pyi +2 -2
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/user_configs/config_decorators.pyi +6 -6
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/user_configs/config_options.pyi +8 -3
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/user_configs/config_parameters.pyi +6 -6
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129/ob_metaflow_stubs.egg-info}/PKG-INFO +1 -1
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/ob_metaflow_stubs.egg-info/SOURCES.txt +18 -0
- ob-metaflow-stubs-6.0.3.129/version.py +1 -0
- ob-metaflow-stubs-6.0.3.127/metaflow-stubs/generated_for.txt +0 -1
- ob-metaflow-stubs-6.0.3.127/metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/checkpoints/__init__.pyi +0 -6
- ob-metaflow-stubs-6.0.3.127/metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/datastore/__init__.pyi +0 -6
- ob-metaflow-stubs-6.0.3.127/metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/utils/__init__.pyi +0 -6
- ob-metaflow-stubs-6.0.3.127/metaflow-stubs/mf_extensions/outerbounds/__init__.pyi +0 -6
- ob-metaflow-stubs-6.0.3.127/metaflow-stubs/mf_extensions/outerbounds/plugins/__init__.pyi +0 -6
- ob-metaflow-stubs-6.0.3.127/metaflow-stubs/mf_extensions/outerbounds/plugins/snowflake/__init__.pyi +0 -6
- ob-metaflow-stubs-6.0.3.127/metaflow-stubs/mf_extensions/outerbounds/profilers/__init__.pyi +0 -6
- ob-metaflow-stubs-6.0.3.127/metaflow-stubs/mf_extensions/outerbounds/toplevel/__init__.pyi +0 -6
- ob-metaflow-stubs-6.0.3.127/version.py +0 -1
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/MANIFEST.in +0 -0
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/README.md +0 -0
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/metaflow-stubs/py.typed +0 -0
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/ob_metaflow_stubs.egg-info/dependency_links.txt +0 -0
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/ob_metaflow_stubs.egg-info/top_level.txt +0 -0
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/setup.cfg +0 -0
- {ob-metaflow-stubs-6.0.3.127 → ob-metaflow-stubs-6.0.3.129}/setup.py +0 -0
@@ -1,15 +1,15 @@
|
|
1
1
|
######################################################################################################
|
2
2
|
# Auto-generated Metaflow stub file #
|
3
|
-
# MF version: 2.
|
4
|
-
# Generated on 2024-12-
|
3
|
+
# MF version: 2.13.0.1+obcheckpoint(0.1.6);ob(v1) #
|
4
|
+
# Generated on 2024-12-20T17:11:09.779274 #
|
5
5
|
######################################################################################################
|
6
6
|
|
7
7
|
from __future__ import annotations
|
8
8
|
|
9
9
|
import typing
|
10
10
|
if typing.TYPE_CHECKING:
|
11
|
-
import typing
|
12
11
|
import datetime
|
12
|
+
import typing
|
13
13
|
FlowSpecDerived = typing.TypeVar("FlowSpecDerived", bound="FlowSpec", contravariant=False, covariant=False)
|
14
14
|
StepFlag = typing.NewType("StepFlag", bool)
|
15
15
|
|
@@ -31,12 +31,13 @@ from .parameters import Parameter as Parameter
|
|
31
31
|
from .parameters import JSONTypeClass as JSONTypeClass
|
32
32
|
from .parameters import JSONType as JSONType
|
33
33
|
from .user_configs.config_parameters import Config as Config
|
34
|
+
from .user_configs.config_parameters import ConfigValue as ConfigValue
|
34
35
|
from .user_configs.config_parameters import config_expr as config_expr
|
35
36
|
from .user_configs.config_decorators import CustomFlowDecorator as CustomFlowDecorator
|
36
37
|
from .user_configs.config_decorators import CustomStepDecorator as CustomStepDecorator
|
37
|
-
from . import tuple_util as tuple_util
|
38
38
|
from . import cards as cards
|
39
39
|
from . import events as events
|
40
|
+
from . import tuple_util as tuple_util
|
40
41
|
from . import runner as runner
|
41
42
|
from . import plugins as plugins
|
42
43
|
from .mf_extensions.outerbounds.toplevel.global_aliases_for_metaflow_package import S3 as S3
|
@@ -146,67 +147,23 @@ def step(f: typing.Union[typing.Callable[[FlowSpecDerived], None], typing.Callab
|
|
146
147
|
...
|
147
148
|
|
148
149
|
@typing.overload
|
149
|
-
def
|
150
|
-
"""
|
151
|
-
Creates a human-readable report, a Metaflow Card, after this step completes.
|
152
|
-
|
153
|
-
Note that you may add multiple `@card` decorators in a step with different parameters.
|
154
|
-
"""
|
155
|
-
...
|
156
|
-
|
157
|
-
@typing.overload
|
158
|
-
def card(f: typing.Callable[[FlowSpecDerived, StepFlag], None]) -> typing.Callable[[FlowSpecDerived, StepFlag], None]:
|
159
|
-
...
|
160
|
-
|
161
|
-
@typing.overload
|
162
|
-
def card(f: typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None]) -> typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None]:
|
163
|
-
...
|
164
|
-
|
165
|
-
def card(f: typing.Union[typing.Callable[[FlowSpecDerived, StepFlag], None], typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None], None] = None, *, type: str = 'default', id: typing.Optional[str] = None, options: typing.Dict[str, typing.Any] = {}, timeout: int = 45):
|
166
|
-
"""
|
167
|
-
Creates a human-readable report, a Metaflow Card, after this step completes.
|
168
|
-
|
169
|
-
Note that you may add multiple `@card` decorators in a step with different parameters.
|
170
|
-
"""
|
171
|
-
...
|
172
|
-
|
173
|
-
@typing.overload
|
174
|
-
def checkpoint(*, load_policy: str = 'fresh', temp_dir_root: str = None) -> typing.Callable[[typing.Union[typing.Callable[[FlowSpecDerived, StepFlag], None], typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None]]], typing.Union[typing.Callable[[FlowSpecDerived, StepFlag], None], typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None]]]:
|
175
|
-
"""
|
176
|
-
Enables checkpointing for a step.
|
177
|
-
"""
|
178
|
-
...
|
179
|
-
|
180
|
-
@typing.overload
|
181
|
-
def checkpoint(f: typing.Callable[[FlowSpecDerived, StepFlag], None]) -> typing.Callable[[FlowSpecDerived, StepFlag], None]:
|
182
|
-
...
|
183
|
-
|
184
|
-
@typing.overload
|
185
|
-
def checkpoint(f: typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None]) -> typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None]:
|
186
|
-
...
|
187
|
-
|
188
|
-
def checkpoint(f: typing.Union[typing.Callable[[FlowSpecDerived, StepFlag], None], typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None], None] = None, *, load_policy: str = 'fresh', temp_dir_root: str = None):
|
150
|
+
def environment(*, vars: typing.Dict[str, str] = {}) -> typing.Callable[[typing.Union[typing.Callable[[FlowSpecDerived, StepFlag], None], typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None]]], typing.Union[typing.Callable[[FlowSpecDerived, StepFlag], None], typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None]]]:
|
189
151
|
"""
|
190
|
-
|
152
|
+
Specifies environment variables to be set prior to the execution of a step.
|
191
153
|
"""
|
192
154
|
...
|
193
155
|
|
194
156
|
@typing.overload
|
195
|
-
def
|
196
|
-
"""
|
197
|
-
Decorator prototype for all step decorators. This function gets specialized
|
198
|
-
and imported for all decorators types by _import_plugin_decorators().
|
199
|
-
"""
|
157
|
+
def environment(f: typing.Callable[[FlowSpecDerived, StepFlag], None]) -> typing.Callable[[FlowSpecDerived, StepFlag], None]:
|
200
158
|
...
|
201
159
|
|
202
160
|
@typing.overload
|
203
|
-
def
|
161
|
+
def environment(f: typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None]) -> typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None]:
|
204
162
|
...
|
205
163
|
|
206
|
-
def
|
164
|
+
def environment(f: typing.Union[typing.Callable[[FlowSpecDerived, StepFlag], None], typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None], None] = None, *, vars: typing.Dict[str, str] = {}):
|
207
165
|
"""
|
208
|
-
|
209
|
-
and imported for all decorators types by _import_plugin_decorators().
|
166
|
+
Specifies environment variables to be set prior to the execution of a step.
|
210
167
|
"""
|
211
168
|
...
|
212
169
|
|
@@ -250,25 +207,39 @@ def retry(f: typing.Union[typing.Callable[[FlowSpecDerived, StepFlag], None], ty
|
|
250
207
|
...
|
251
208
|
|
252
209
|
@typing.overload
|
253
|
-
def
|
210
|
+
def card(*, type: str = 'default', id: typing.Optional[str] = None, options: typing.Dict[str, typing.Any] = {}, timeout: int = 45) -> typing.Callable[[typing.Union[typing.Callable[[FlowSpecDerived, StepFlag], None], typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None]]], typing.Union[typing.Callable[[FlowSpecDerived, StepFlag], None], typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None]]]:
|
254
211
|
"""
|
255
|
-
|
256
|
-
|
212
|
+
Creates a human-readable report, a Metaflow Card, after this step completes.
|
213
|
+
|
214
|
+
Note that you may add multiple `@card` decorators in a step with different parameters.
|
257
215
|
"""
|
258
216
|
...
|
259
217
|
|
260
218
|
@typing.overload
|
261
|
-
def
|
219
|
+
def card(f: typing.Callable[[FlowSpecDerived, StepFlag], None]) -> typing.Callable[[FlowSpecDerived, StepFlag], None]:
|
262
220
|
...
|
263
221
|
|
264
222
|
@typing.overload
|
265
|
-
def
|
223
|
+
def card(f: typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None]) -> typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None]:
|
266
224
|
...
|
267
225
|
|
268
|
-
def
|
226
|
+
def card(f: typing.Union[typing.Callable[[FlowSpecDerived, StepFlag], None], typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None], None] = None, *, type: str = 'default', id: typing.Optional[str] = None, options: typing.Dict[str, typing.Any] = {}, timeout: int = 45):
|
269
227
|
"""
|
270
|
-
|
271
|
-
|
228
|
+
Creates a human-readable report, a Metaflow Card, after this step completes.
|
229
|
+
|
230
|
+
Note that you may add multiple `@card` decorators in a step with different parameters.
|
231
|
+
"""
|
232
|
+
...
|
233
|
+
|
234
|
+
def huggingface_hub(*, temp_dir_root: typing.Optional[str] = None, load: typing.Union[typing.List[str], typing.List[typing.Tuple[typing.Dict, str]], typing.List[typing.Tuple[str, str]], typing.List[typing.Dict], None]) -> typing.Callable[[typing.Union[typing.Callable[[FlowSpecDerived, StepFlag], None], typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None]]], typing.Union[typing.Callable[[FlowSpecDerived, StepFlag], None], typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None]]]:
|
235
|
+
"""
|
236
|
+
Decorator that helps cache, version and store models/datasets from huggingface hub.
|
237
|
+
"""
|
238
|
+
...
|
239
|
+
|
240
|
+
def nvidia(*, gpu: int, gpu_type: str) -> typing.Callable[[typing.Union[typing.Callable[[FlowSpecDerived, StepFlag], None], typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None]]], typing.Union[typing.Callable[[FlowSpecDerived, StepFlag], None], typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None]]]:
|
241
|
+
"""
|
242
|
+
Specifies that this step should execute on DGX cloud.
|
272
243
|
"""
|
273
244
|
...
|
274
245
|
|
@@ -303,6 +274,51 @@ def catch(f: typing.Union[typing.Callable[[FlowSpecDerived, StepFlag], None], ty
|
|
303
274
|
"""
|
304
275
|
...
|
305
276
|
|
277
|
+
@typing.overload
|
278
|
+
def timeout(*, seconds: int = 0, minutes: int = 0, hours: int = 0) -> typing.Callable[[typing.Union[typing.Callable[[FlowSpecDerived, StepFlag], None], typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None]]], typing.Union[typing.Callable[[FlowSpecDerived, StepFlag], None], typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None]]]:
|
279
|
+
"""
|
280
|
+
Specifies a timeout for your step.
|
281
|
+
|
282
|
+
This decorator is useful if this step may hang indefinitely.
|
283
|
+
|
284
|
+
This can be used in conjunction with the `@retry` decorator as well as the `@catch` decorator.
|
285
|
+
A timeout is considered to be an exception thrown by the step. It will cause the step to be
|
286
|
+
retried if needed and the exception will be caught by the `@catch` decorator, if present.
|
287
|
+
|
288
|
+
Note that all the values specified in parameters are added together so if you specify
|
289
|
+
60 seconds and 1 hour, the decorator will have an effective timeout of 1 hour and 1 minute.
|
290
|
+
"""
|
291
|
+
...
|
292
|
+
|
293
|
+
@typing.overload
|
294
|
+
def timeout(f: typing.Callable[[FlowSpecDerived, StepFlag], None]) -> typing.Callable[[FlowSpecDerived, StepFlag], None]:
|
295
|
+
...
|
296
|
+
|
297
|
+
@typing.overload
|
298
|
+
def timeout(f: typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None]) -> typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None]:
|
299
|
+
...
|
300
|
+
|
301
|
+
def timeout(f: typing.Union[typing.Callable[[FlowSpecDerived, StepFlag], None], typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None], None] = None, *, seconds: int = 0, minutes: int = 0, hours: int = 0):
|
302
|
+
"""
|
303
|
+
Specifies a timeout for your step.
|
304
|
+
|
305
|
+
This decorator is useful if this step may hang indefinitely.
|
306
|
+
|
307
|
+
This can be used in conjunction with the `@retry` decorator as well as the `@catch` decorator.
|
308
|
+
A timeout is considered to be an exception thrown by the step. It will cause the step to be
|
309
|
+
retried if needed and the exception will be caught by the `@catch` decorator, if present.
|
310
|
+
|
311
|
+
Note that all the values specified in parameters are added together so if you specify
|
312
|
+
60 seconds and 1 hour, the decorator will have an effective timeout of 1 hour and 1 minute.
|
313
|
+
"""
|
314
|
+
...
|
315
|
+
|
316
|
+
def kubernetes(*, cpu: int = 1, memory: int = 4096, disk: int = 10240, image: typing.Optional[str] = None, image_pull_policy: str = 'KUBERNETES_IMAGE_PULL_POLICY', service_account: str = 'METAFLOW_KUBERNETES_SERVICE_ACCOUNT', secrets: typing.Optional[typing.List[str]] = None, node_selector: typing.Union[typing.Dict[str, str], str, None] = None, namespace: str = 'METAFLOW_KUBERNETES_NAMESPACE', gpu: typing.Optional[int] = None, gpu_vendor: str = 'KUBERNETES_GPU_VENDOR', tolerations: typing.List[str] = [], use_tmpfs: bool = False, tmpfs_tempdir: bool = True, tmpfs_size: typing.Optional[int] = None, tmpfs_path: typing.Optional[str] = '/metaflow_temp', persistent_volume_claims: typing.Optional[typing.Dict[str, str]] = None, shared_memory: typing.Optional[int] = None, port: typing.Optional[int] = None, compute_pool: typing.Optional[str] = None, hostname_resolution_timeout: int = 600, qos: str = 'Burstable') -> typing.Callable[[typing.Union[typing.Callable[[FlowSpecDerived, StepFlag], None], typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None]]], typing.Union[typing.Callable[[FlowSpecDerived, StepFlag], None], typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None]]]:
|
317
|
+
"""
|
318
|
+
Specifies that this step should execute on Kubernetes.
|
319
|
+
"""
|
320
|
+
...
|
321
|
+
|
306
322
|
@typing.overload
|
307
323
|
def resources(*, cpu: int = 1, gpu: typing.Optional[int] = None, disk: typing.Optional[int] = None, memory: int = 4096, shared_memory: typing.Optional[int] = None) -> typing.Callable[[typing.Union[typing.Callable[[FlowSpecDerived, StepFlag], None], typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None]]], typing.Union[typing.Callable[[FlowSpecDerived, StepFlag], None], typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None]]]:
|
308
324
|
"""
|
@@ -353,38 +369,26 @@ def resources(f: typing.Union[typing.Callable[[FlowSpecDerived, StepFlag], None]
|
|
353
369
|
...
|
354
370
|
|
355
371
|
@typing.overload
|
356
|
-
def
|
372
|
+
def conda(*, packages: typing.Dict[str, str] = {}, libraries: typing.Dict[str, str] = {}, python: typing.Optional[str] = None, disabled: bool = False) -> typing.Callable[[typing.Union[typing.Callable[[FlowSpecDerived, StepFlag], None], typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None]]], typing.Union[typing.Callable[[FlowSpecDerived, StepFlag], None], typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None]]]:
|
357
373
|
"""
|
358
|
-
Specifies the
|
374
|
+
Specifies the Conda environment for the step.
|
359
375
|
|
360
376
|
Information in this decorator will augment any
|
361
|
-
attributes set in the `@
|
362
|
-
you can use `@
|
363
|
-
steps and use `@
|
377
|
+
attributes set in the `@conda_base` flow-level decorator. Hence,
|
378
|
+
you can use `@conda_base` to set packages required by all
|
379
|
+
steps and use `@conda` to specify step-specific overrides.
|
364
380
|
"""
|
365
381
|
...
|
366
382
|
|
367
383
|
@typing.overload
|
368
|
-
def
|
384
|
+
def conda(f: typing.Callable[[FlowSpecDerived, StepFlag], None]) -> typing.Callable[[FlowSpecDerived, StepFlag], None]:
|
369
385
|
...
|
370
386
|
|
371
387
|
@typing.overload
|
372
|
-
def
|
373
|
-
...
|
374
|
-
|
375
|
-
def pypi(f: typing.Union[typing.Callable[[FlowSpecDerived, StepFlag], None], typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None], None] = None, *, packages: typing.Dict[str, str] = {}, python: typing.Optional[str] = None):
|
376
|
-
"""
|
377
|
-
Specifies the PyPI packages for the step.
|
378
|
-
|
379
|
-
Information in this decorator will augment any
|
380
|
-
attributes set in the `@pyi_base` flow-level decorator. Hence,
|
381
|
-
you can use `@pypi_base` to set packages required by all
|
382
|
-
steps and use `@pypi` to specify step-specific overrides.
|
383
|
-
"""
|
388
|
+
def conda(f: typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None]) -> typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None]:
|
384
389
|
...
|
385
390
|
|
386
|
-
|
387
|
-
def conda(*, packages: typing.Dict[str, str] = {}, libraries: typing.Dict[str, str] = {}, python: typing.Optional[str] = None, disabled: bool = False) -> typing.Callable[[typing.Union[typing.Callable[[FlowSpecDerived, StepFlag], None], typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None]]], typing.Union[typing.Callable[[FlowSpecDerived, StepFlag], None], typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None]]]:
|
391
|
+
def conda(f: typing.Union[typing.Callable[[FlowSpecDerived, StepFlag], None], typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None], None] = None, *, packages: typing.Dict[str, str] = {}, libraries: typing.Dict[str, str] = {}, python: typing.Optional[str] = None, disabled: bool = False):
|
388
392
|
"""
|
389
393
|
Specifies the Conda environment for the step.
|
390
394
|
|
@@ -396,21 +400,21 @@ def conda(*, packages: typing.Dict[str, str] = {}, libraries: typing.Dict[str, s
|
|
396
400
|
...
|
397
401
|
|
398
402
|
@typing.overload
|
399
|
-
def
|
403
|
+
def parallel(f: typing.Callable[[FlowSpecDerived, StepFlag], None]) -> typing.Callable[[FlowSpecDerived, StepFlag], None]:
|
404
|
+
"""
|
405
|
+
Decorator prototype for all step decorators. This function gets specialized
|
406
|
+
and imported for all decorators types by _import_plugin_decorators().
|
407
|
+
"""
|
400
408
|
...
|
401
409
|
|
402
410
|
@typing.overload
|
403
|
-
def
|
411
|
+
def parallel(f: typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None]) -> typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None]:
|
404
412
|
...
|
405
413
|
|
406
|
-
def
|
414
|
+
def parallel(f: typing.Union[typing.Callable[[FlowSpecDerived, StepFlag], None], typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None], None] = None):
|
407
415
|
"""
|
408
|
-
|
409
|
-
|
410
|
-
Information in this decorator will augment any
|
411
|
-
attributes set in the `@conda_base` flow-level decorator. Hence,
|
412
|
-
you can use `@conda_base` to set packages required by all
|
413
|
-
steps and use `@conda` to specify step-specific overrides.
|
416
|
+
Decorator prototype for all step decorators. This function gets specialized
|
417
|
+
and imported for all decorators types by _import_plugin_decorators().
|
414
418
|
"""
|
415
419
|
...
|
416
420
|
|
@@ -436,41 +440,46 @@ def model(f: typing.Union[typing.Callable[[FlowSpecDerived, StepFlag], None], ty
|
|
436
440
|
...
|
437
441
|
|
438
442
|
@typing.overload
|
439
|
-
def
|
443
|
+
def checkpoint(*, load_policy: str = 'fresh', temp_dir_root: str = None) -> typing.Callable[[typing.Union[typing.Callable[[FlowSpecDerived, StepFlag], None], typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None]]], typing.Union[typing.Callable[[FlowSpecDerived, StepFlag], None], typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None]]]:
|
440
444
|
"""
|
441
|
-
|
445
|
+
Enables checkpointing for a step.
|
442
446
|
"""
|
443
447
|
...
|
444
448
|
|
445
449
|
@typing.overload
|
446
|
-
def
|
450
|
+
def checkpoint(f: typing.Callable[[FlowSpecDerived, StepFlag], None]) -> typing.Callable[[FlowSpecDerived, StepFlag], None]:
|
447
451
|
...
|
448
452
|
|
449
453
|
@typing.overload
|
450
|
-
def
|
454
|
+
def checkpoint(f: typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None]) -> typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None]:
|
451
455
|
...
|
452
456
|
|
453
|
-
def
|
457
|
+
def checkpoint(f: typing.Union[typing.Callable[[FlowSpecDerived, StepFlag], None], typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None], None] = None, *, load_policy: str = 'fresh', temp_dir_root: str = None):
|
454
458
|
"""
|
455
|
-
|
459
|
+
Enables checkpointing for a step.
|
456
460
|
"""
|
457
461
|
...
|
458
462
|
|
459
|
-
|
463
|
+
@typing.overload
|
464
|
+
def secrets(*, sources: typing.List[typing.Union[str, typing.Dict[str, typing.Any]]] = []) -> typing.Callable[[typing.Union[typing.Callable[[FlowSpecDerived, StepFlag], None], typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None]]], typing.Union[typing.Callable[[FlowSpecDerived, StepFlag], None], typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None]]]:
|
460
465
|
"""
|
461
|
-
Specifies
|
466
|
+
Specifies secrets to be retrieved and injected as environment variables prior to
|
467
|
+
the execution of a step.
|
462
468
|
"""
|
463
469
|
...
|
464
470
|
|
465
|
-
|
466
|
-
|
467
|
-
Decorator that helps cache, version and store models/datasets from huggingface hub.
|
468
|
-
"""
|
471
|
+
@typing.overload
|
472
|
+
def secrets(f: typing.Callable[[FlowSpecDerived, StepFlag], None]) -> typing.Callable[[FlowSpecDerived, StepFlag], None]:
|
469
473
|
...
|
470
474
|
|
471
|
-
|
475
|
+
@typing.overload
|
476
|
+
def secrets(f: typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None]) -> typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None]:
|
477
|
+
...
|
478
|
+
|
479
|
+
def secrets(f: typing.Union[typing.Callable[[FlowSpecDerived, StepFlag], None], typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None], None] = None, *, sources: typing.List[typing.Union[str, typing.Dict[str, typing.Any]]] = []):
|
472
480
|
"""
|
473
|
-
Specifies
|
481
|
+
Specifies secrets to be retrieved and injected as environment variables prior to
|
482
|
+
the execution of a step.
|
474
483
|
"""
|
475
484
|
...
|
476
485
|
|
@@ -492,71 +501,83 @@ def fast_bakery_internal(f: typing.Union[typing.Callable[[FlowSpecDerived, StepF
|
|
492
501
|
...
|
493
502
|
|
494
503
|
@typing.overload
|
495
|
-
def
|
504
|
+
def pypi(*, packages: typing.Dict[str, str] = {}, python: typing.Optional[str] = None) -> typing.Callable[[typing.Union[typing.Callable[[FlowSpecDerived, StepFlag], None], typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None]]], typing.Union[typing.Callable[[FlowSpecDerived, StepFlag], None], typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None]]]:
|
496
505
|
"""
|
497
|
-
Specifies
|
498
|
-
|
499
|
-
This decorator is useful if this step may hang indefinitely.
|
500
|
-
|
501
|
-
This can be used in conjunction with the `@retry` decorator as well as the `@catch` decorator.
|
502
|
-
A timeout is considered to be an exception thrown by the step. It will cause the step to be
|
503
|
-
retried if needed and the exception will be caught by the `@catch` decorator, if present.
|
506
|
+
Specifies the PyPI packages for the step.
|
504
507
|
|
505
|
-
|
506
|
-
|
508
|
+
Information in this decorator will augment any
|
509
|
+
attributes set in the `@pyi_base` flow-level decorator. Hence,
|
510
|
+
you can use `@pypi_base` to set packages required by all
|
511
|
+
steps and use `@pypi` to specify step-specific overrides.
|
507
512
|
"""
|
508
513
|
...
|
509
514
|
|
510
515
|
@typing.overload
|
511
|
-
def
|
516
|
+
def pypi(f: typing.Callable[[FlowSpecDerived, StepFlag], None]) -> typing.Callable[[FlowSpecDerived, StepFlag], None]:
|
512
517
|
...
|
513
518
|
|
514
519
|
@typing.overload
|
515
|
-
def
|
520
|
+
def pypi(f: typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None]) -> typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None]:
|
516
521
|
...
|
517
522
|
|
518
|
-
def
|
523
|
+
def pypi(f: typing.Union[typing.Callable[[FlowSpecDerived, StepFlag], None], typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None], None] = None, *, packages: typing.Dict[str, str] = {}, python: typing.Optional[str] = None):
|
519
524
|
"""
|
520
|
-
Specifies
|
521
|
-
|
522
|
-
This decorator is useful if this step may hang indefinitely.
|
523
|
-
|
524
|
-
This can be used in conjunction with the `@retry` decorator as well as the `@catch` decorator.
|
525
|
-
A timeout is considered to be an exception thrown by the step. It will cause the step to be
|
526
|
-
retried if needed and the exception will be caught by the `@catch` decorator, if present.
|
525
|
+
Specifies the PyPI packages for the step.
|
527
526
|
|
528
|
-
|
529
|
-
|
527
|
+
Information in this decorator will augment any
|
528
|
+
attributes set in the `@pyi_base` flow-level decorator. Hence,
|
529
|
+
you can use `@pypi_base` to set packages required by all
|
530
|
+
steps and use `@pypi` to specify step-specific overrides.
|
530
531
|
"""
|
531
532
|
...
|
532
533
|
|
533
|
-
|
534
|
-
def conda_base(*, packages: typing.Dict[str, str] = {}, libraries: typing.Dict[str, str] = {}, python: typing.Optional[str] = None, disabled: bool = False) -> typing.Callable[[typing.Type[FlowSpecDerived]], typing.Type[FlowSpecDerived]]:
|
534
|
+
def airflow_external_task_sensor(*, timeout: int, poke_interval: int, mode: str, exponential_backoff: bool, pool: str, soft_fail: bool, name: str, description: str, external_dag_id: str, external_task_ids: typing.List[str], allowed_states: typing.List[str], failed_states: typing.List[str], execution_delta: "datetime.timedelta", check_existence: bool) -> typing.Callable[[typing.Type[FlowSpecDerived]], typing.Type[FlowSpecDerived]]:
|
535
535
|
"""
|
536
|
-
|
537
|
-
|
538
|
-
Use `@conda_base` to set common libraries required by all
|
539
|
-
steps and use `@conda` to specify step-specific additions.
|
536
|
+
The `@airflow_external_task_sensor` decorator attaches a Airflow [ExternalTaskSensor](https://airflow.apache.org/docs/apache-airflow/stable/_api/airflow/sensors/external_task/index.html#airflow.sensors.external_task.ExternalTaskSensor) before the start step of the flow.
|
537
|
+
This decorator only works when a flow is scheduled on Airflow and is compiled using `airflow create`. More than one `@airflow_external_task_sensor` can be added as a flow decorators. Adding more than one decorator will ensure that `start` step starts only after all sensors finish.
|
540
538
|
"""
|
541
539
|
...
|
542
540
|
|
543
|
-
|
544
|
-
|
541
|
+
def airflow_s3_key_sensor(*, timeout: int, poke_interval: int, mode: str, exponential_backoff: bool, pool: str, soft_fail: bool, name: str, description: str, bucket_key: typing.Union[str, typing.List[str]], bucket_name: str, wildcard_match: bool, aws_conn_id: str, verify: bool) -> typing.Callable[[typing.Type[FlowSpecDerived]], typing.Type[FlowSpecDerived]]:
|
542
|
+
"""
|
543
|
+
The `@airflow_s3_key_sensor` decorator attaches a Airflow [S3KeySensor](https://airflow.apache.org/docs/apache-airflow-providers-amazon/stable/_api/airflow/providers/amazon/aws/sensors/s3/index.html#airflow.providers.amazon.aws.sensors.s3.S3KeySensor)
|
544
|
+
before the start step of the flow. This decorator only works when a flow is scheduled on Airflow
|
545
|
+
and is compiled using `airflow create`. More than one `@airflow_s3_key_sensor` can be
|
546
|
+
added as a flow decorators. Adding more than one decorator will ensure that `start` step
|
547
|
+
starts only after all sensors finish.
|
548
|
+
"""
|
545
549
|
...
|
546
550
|
|
547
|
-
def
|
551
|
+
def project(*, name: str) -> typing.Callable[[typing.Type[FlowSpecDerived]], typing.Type[FlowSpecDerived]]:
|
548
552
|
"""
|
549
|
-
Specifies
|
553
|
+
Specifies what flows belong to the same project.
|
550
554
|
|
551
|
-
|
552
|
-
|
555
|
+
A project-specific namespace is created for all flows that
|
556
|
+
use the same `@project(name)`.
|
553
557
|
"""
|
554
558
|
...
|
555
559
|
|
556
|
-
def
|
560
|
+
def nim(*, models: "list[NIM]", backend: str) -> typing.Callable[[typing.Type[FlowSpecDerived]], typing.Type[FlowSpecDerived]]:
|
557
561
|
"""
|
558
|
-
|
559
|
-
|
562
|
+
This decorator is used to run NIM containers in Metaflow tasks as sidecars.
|
563
|
+
|
564
|
+
User code call
|
565
|
+
-----------
|
566
|
+
@nim(
|
567
|
+
models=['meta/llama3-8b-instruct', 'meta/llama3-70b-instruct'],
|
568
|
+
backend='managed'
|
569
|
+
)
|
570
|
+
|
571
|
+
Valid backend options
|
572
|
+
---------------------
|
573
|
+
- 'managed': Outerbounds selects a compute provider based on the model.
|
574
|
+
- 🚧 'dataplane': Run in your account.
|
575
|
+
|
576
|
+
Valid model options
|
577
|
+
----------------
|
578
|
+
- 'meta/llama3-8b-instruct': 8B parameter model
|
579
|
+
- 'meta/llama3-70b-instruct': 70B parameter model
|
580
|
+
- Upon request, any model here: https://nvcf.ngc.nvidia.com/functions?filter=nvidia-functions
|
560
581
|
"""
|
561
582
|
...
|
562
583
|
|
@@ -641,6 +662,71 @@ def trigger_on_finish(f: typing.Optional[typing.Type[FlowSpecDerived]] = None, *
|
|
641
662
|
"""
|
642
663
|
...
|
643
664
|
|
665
|
+
@typing.overload
|
666
|
+
def schedule(*, hourly: bool = False, daily: bool = True, weekly: bool = False, cron: typing.Optional[str] = None, timezone: typing.Optional[str] = None) -> typing.Callable[[typing.Type[FlowSpecDerived]], typing.Type[FlowSpecDerived]]:
|
667
|
+
"""
|
668
|
+
Specifies the times when the flow should be run when running on a
|
669
|
+
production scheduler.
|
670
|
+
"""
|
671
|
+
...
|
672
|
+
|
673
|
+
@typing.overload
|
674
|
+
def schedule(f: typing.Type[FlowSpecDerived]) -> typing.Type[FlowSpecDerived]:
|
675
|
+
...
|
676
|
+
|
677
|
+
def schedule(f: typing.Optional[typing.Type[FlowSpecDerived]] = None, *, hourly: bool = False, daily: bool = True, weekly: bool = False, cron: typing.Optional[str] = None, timezone: typing.Optional[str] = None):
|
678
|
+
"""
|
679
|
+
Specifies the times when the flow should be run when running on a
|
680
|
+
production scheduler.
|
681
|
+
"""
|
682
|
+
...
|
683
|
+
|
684
|
+
@typing.overload
|
685
|
+
def conda_base(*, packages: typing.Dict[str, str] = {}, libraries: typing.Dict[str, str] = {}, python: typing.Optional[str] = None, disabled: bool = False) -> typing.Callable[[typing.Type[FlowSpecDerived]], typing.Type[FlowSpecDerived]]:
|
686
|
+
"""
|
687
|
+
Specifies the Conda environment for all steps of the flow.
|
688
|
+
|
689
|
+
Use `@conda_base` to set common libraries required by all
|
690
|
+
steps and use `@conda` to specify step-specific additions.
|
691
|
+
"""
|
692
|
+
...
|
693
|
+
|
694
|
+
@typing.overload
|
695
|
+
def conda_base(f: typing.Type[FlowSpecDerived]) -> typing.Type[FlowSpecDerived]:
|
696
|
+
...
|
697
|
+
|
698
|
+
def conda_base(f: typing.Optional[typing.Type[FlowSpecDerived]] = None, *, packages: typing.Dict[str, str] = {}, libraries: typing.Dict[str, str] = {}, python: typing.Optional[str] = None, disabled: bool = False):
|
699
|
+
"""
|
700
|
+
Specifies the Conda environment for all steps of the flow.
|
701
|
+
|
702
|
+
Use `@conda_base` to set common libraries required by all
|
703
|
+
steps and use `@conda` to specify step-specific additions.
|
704
|
+
"""
|
705
|
+
...
|
706
|
+
|
707
|
+
@typing.overload
|
708
|
+
def pypi_base(*, packages: typing.Dict[str, str] = {}, python: typing.Optional[str] = None) -> typing.Callable[[typing.Type[FlowSpecDerived]], typing.Type[FlowSpecDerived]]:
|
709
|
+
"""
|
710
|
+
Specifies the PyPI packages for all steps of the flow.
|
711
|
+
|
712
|
+
Use `@pypi_base` to set common packages required by all
|
713
|
+
steps and use `@pypi` to specify step-specific overrides.
|
714
|
+
"""
|
715
|
+
...
|
716
|
+
|
717
|
+
@typing.overload
|
718
|
+
def pypi_base(f: typing.Type[FlowSpecDerived]) -> typing.Type[FlowSpecDerived]:
|
719
|
+
...
|
720
|
+
|
721
|
+
def pypi_base(f: typing.Optional[typing.Type[FlowSpecDerived]] = None, *, packages: typing.Dict[str, str] = {}, python: typing.Optional[str] = None):
|
722
|
+
"""
|
723
|
+
Specifies the PyPI packages for all steps of the flow.
|
724
|
+
|
725
|
+
Use `@pypi_base` to set common packages required by all
|
726
|
+
steps and use `@pypi` to specify step-specific overrides.
|
727
|
+
"""
|
728
|
+
...
|
729
|
+
|
644
730
|
@typing.overload
|
645
731
|
def trigger(*, event: typing.Union[str, typing.Dict[str, typing.Any], None] = None, events: typing.List[typing.Union[str, typing.Dict[str, typing.Any]]] = [], options: typing.Dict[str, typing.Any] = {}) -> typing.Callable[[typing.Type[FlowSpecDerived]], typing.Type[FlowSpecDerived]]:
|
646
732
|
"""
|
@@ -714,90 +800,5 @@ def trigger(f: typing.Optional[typing.Type[FlowSpecDerived]] = None, *, event: t
|
|
714
800
|
"""
|
715
801
|
...
|
716
802
|
|
717
|
-
@typing.overload
|
718
|
-
def pypi_base(*, packages: typing.Dict[str, str] = {}, python: typing.Optional[str] = None) -> typing.Callable[[typing.Type[FlowSpecDerived]], typing.Type[FlowSpecDerived]]:
|
719
|
-
"""
|
720
|
-
Specifies the PyPI packages for all steps of the flow.
|
721
|
-
|
722
|
-
Use `@pypi_base` to set common packages required by all
|
723
|
-
steps and use `@pypi` to specify step-specific overrides.
|
724
|
-
"""
|
725
|
-
...
|
726
|
-
|
727
|
-
@typing.overload
|
728
|
-
def pypi_base(f: typing.Type[FlowSpecDerived]) -> typing.Type[FlowSpecDerived]:
|
729
|
-
...
|
730
|
-
|
731
|
-
def pypi_base(f: typing.Optional[typing.Type[FlowSpecDerived]] = None, *, packages: typing.Dict[str, str] = {}, python: typing.Optional[str] = None):
|
732
|
-
"""
|
733
|
-
Specifies the PyPI packages for all steps of the flow.
|
734
|
-
|
735
|
-
Use `@pypi_base` to set common packages required by all
|
736
|
-
steps and use `@pypi` to specify step-specific overrides.
|
737
|
-
"""
|
738
|
-
...
|
739
|
-
|
740
|
-
def nim(*, models: "list[NIM]", backend: str) -> typing.Callable[[typing.Type[FlowSpecDerived]], typing.Type[FlowSpecDerived]]:
|
741
|
-
"""
|
742
|
-
This decorator is used to run NIM containers in Metaflow tasks as sidecars.
|
743
|
-
|
744
|
-
User code call
|
745
|
-
-----------
|
746
|
-
@nim(
|
747
|
-
models=['meta/llama3-8b-instruct', 'meta/llama3-70b-instruct'],
|
748
|
-
backend='managed'
|
749
|
-
)
|
750
|
-
|
751
|
-
Valid backend options
|
752
|
-
---------------------
|
753
|
-
- 'managed': Outerbounds selects a compute provider based on the model.
|
754
|
-
- 🚧 'dataplane': Run in your account.
|
755
|
-
|
756
|
-
Valid model options
|
757
|
-
----------------
|
758
|
-
- 'meta/llama3-8b-instruct': 8B parameter model
|
759
|
-
- 'meta/llama3-70b-instruct': 70B parameter model
|
760
|
-
- Upon request, any model here: https://nvcf.ngc.nvidia.com/functions?filter=nvidia-functions
|
761
|
-
"""
|
762
|
-
...
|
763
|
-
|
764
|
-
@typing.overload
|
765
|
-
def schedule(*, hourly: bool = False, daily: bool = True, weekly: bool = False, cron: typing.Optional[str] = None, timezone: typing.Optional[str] = None) -> typing.Callable[[typing.Type[FlowSpecDerived]], typing.Type[FlowSpecDerived]]:
|
766
|
-
"""
|
767
|
-
Specifies the times when the flow should be run when running on a
|
768
|
-
production scheduler.
|
769
|
-
"""
|
770
|
-
...
|
771
|
-
|
772
|
-
@typing.overload
|
773
|
-
def schedule(f: typing.Type[FlowSpecDerived]) -> typing.Type[FlowSpecDerived]:
|
774
|
-
...
|
775
|
-
|
776
|
-
def schedule(f: typing.Optional[typing.Type[FlowSpecDerived]] = None, *, hourly: bool = False, daily: bool = True, weekly: bool = False, cron: typing.Optional[str] = None, timezone: typing.Optional[str] = None):
|
777
|
-
"""
|
778
|
-
Specifies the times when the flow should be run when running on a
|
779
|
-
production scheduler.
|
780
|
-
"""
|
781
|
-
...
|
782
|
-
|
783
|
-
def airflow_s3_key_sensor(*, timeout: int, poke_interval: int, mode: str, exponential_backoff: bool, pool: str, soft_fail: bool, name: str, description: str, bucket_key: typing.Union[str, typing.List[str]], bucket_name: str, wildcard_match: bool, aws_conn_id: str, verify: bool) -> typing.Callable[[typing.Type[FlowSpecDerived]], typing.Type[FlowSpecDerived]]:
|
784
|
-
"""
|
785
|
-
The `@airflow_s3_key_sensor` decorator attaches a Airflow [S3KeySensor](https://airflow.apache.org/docs/apache-airflow-providers-amazon/stable/_api/airflow/providers/amazon/aws/sensors/s3/index.html#airflow.providers.amazon.aws.sensors.s3.S3KeySensor)
|
786
|
-
before the start step of the flow. This decorator only works when a flow is scheduled on Airflow
|
787
|
-
and is compiled using `airflow create`. More than one `@airflow_s3_key_sensor` can be
|
788
|
-
added as a flow decorators. Adding more than one decorator will ensure that `start` step
|
789
|
-
starts only after all sensors finish.
|
790
|
-
"""
|
791
|
-
...
|
792
|
-
|
793
|
-
def project(*, name: str) -> typing.Callable[[typing.Type[FlowSpecDerived]], typing.Type[FlowSpecDerived]]:
|
794
|
-
"""
|
795
|
-
Specifies what flows belong to the same project.
|
796
|
-
|
797
|
-
A project-specific namespace is created for all flows that
|
798
|
-
use the same `@project(name)`.
|
799
|
-
"""
|
800
|
-
...
|
801
|
-
|
802
803
|
pkg_name: str
|
803
804
|
|