metaflow-stubs 2.13.2__tar.gz → 2.13.4__tar.gz

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.
Files changed (154) hide show
  1. {metaflow_stubs-2.13.2/metaflow_stubs.egg-info → metaflow_stubs-2.13.4}/PKG-INFO +13 -3
  2. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/__init__.pyi +186 -186
  3. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/cards.pyi +3 -2
  4. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/cli.pyi +2 -2
  5. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/cli_components/__init__.pyi +2 -2
  6. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/cli_components/utils.pyi +2 -2
  7. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/client/__init__.pyi +2 -2
  8. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/client/core.pyi +4 -4
  9. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/client/filecache.pyi +3 -3
  10. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/events.pyi +2 -2
  11. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/exception.pyi +2 -2
  12. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/flowspec.pyi +6 -6
  13. metaflow_stubs-2.13.4/metaflow-stubs/generated_for.txt +1 -0
  14. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/includefile.pyi +2 -2
  15. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/info_file.pyi +2 -2
  16. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/metadata_provider/__init__.pyi +2 -2
  17. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/metadata_provider/heartbeat.pyi +2 -2
  18. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/metadata_provider/metadata.pyi +2 -2
  19. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/metadata_provider/util.pyi +2 -2
  20. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/metaflow_config.pyi +2 -2
  21. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/metaflow_current.pyi +34 -34
  22. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/multicore_utils.pyi +2 -2
  23. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/parameters.pyi +2 -2
  24. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/__init__.pyi +9 -9
  25. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/airflow/__init__.pyi +2 -2
  26. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/airflow/airflow_decorator.pyi +2 -2
  27. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/airflow/airflow_utils.pyi +2 -2
  28. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/airflow/exception.pyi +2 -2
  29. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/airflow/sensors/__init__.pyi +2 -2
  30. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/airflow/sensors/base_sensor.pyi +2 -2
  31. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/airflow/sensors/external_task_sensor.pyi +2 -2
  32. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/airflow/sensors/s3_sensor.pyi +2 -2
  33. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/argo/__init__.pyi +2 -2
  34. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/argo/argo_client.pyi +2 -2
  35. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/argo/argo_events.pyi +2 -2
  36. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/argo/argo_workflows.pyi +2 -2
  37. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/argo/argo_workflows_decorator.pyi +4 -4
  38. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/argo/argo_workflows_deployer.pyi +4 -4
  39. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/argo/argo_workflows_deployer_objects.pyi +2 -2
  40. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/aws/__init__.pyi +3 -3
  41. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/aws/aws_client.pyi +2 -2
  42. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/aws/aws_utils.pyi +2 -2
  43. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/aws/batch/__init__.pyi +2 -2
  44. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/aws/batch/batch.pyi +2 -2
  45. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/aws/batch/batch_client.pyi +2 -2
  46. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/aws/batch/batch_decorator.pyi +2 -2
  47. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/aws/secrets_manager/__init__.pyi +2 -2
  48. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/aws/secrets_manager/aws_secrets_manager_secrets_provider.pyi +3 -3
  49. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/aws/step_functions/__init__.pyi +2 -2
  50. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/aws/step_functions/dynamo_db_client.pyi +2 -2
  51. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/aws/step_functions/event_bridge_client.pyi +2 -2
  52. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/aws/step_functions/schedule_decorator.pyi +2 -2
  53. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/aws/step_functions/step_functions.pyi +2 -2
  54. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/aws/step_functions/step_functions_client.pyi +2 -2
  55. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/aws/step_functions/step_functions_decorator.pyi +2 -2
  56. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/aws/step_functions/step_functions_deployer.pyi +3 -3
  57. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/aws/step_functions/step_functions_deployer_objects.pyi +3 -3
  58. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/azure/__init__.pyi +2 -2
  59. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/azure/azure_credential.pyi +2 -2
  60. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/azure/azure_exceptions.pyi +2 -2
  61. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/azure/azure_secret_manager_secrets_provider.pyi +3 -3
  62. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/azure/azure_utils.pyi +2 -2
  63. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/azure/blob_service_client_factory.pyi +2 -2
  64. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/azure/includefile_support.pyi +2 -2
  65. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/cards/__init__.pyi +2 -2
  66. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/cards/card_client.pyi +3 -3
  67. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/cards/card_creator.pyi +2 -2
  68. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/cards/card_datastore.pyi +2 -2
  69. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/cards/card_decorator.pyi +4 -2
  70. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/cards/card_modules/__init__.pyi +2 -2
  71. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/cards/card_modules/basic.pyi +15 -7
  72. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/cards/card_modules/card.pyi +9 -3
  73. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/cards/card_modules/components.pyi +47 -9
  74. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/cards/card_modules/convert_to_native_type.pyi +2 -2
  75. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/cards/card_modules/renderer_tools.pyi +2 -2
  76. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/cards/card_modules/test_cards.pyi +6 -6
  77. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/cards/card_resolver.pyi +2 -2
  78. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/cards/component_serializer.pyi +3 -3
  79. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/cards/exception.pyi +2 -2
  80. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/catch_decorator.pyi +3 -3
  81. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/datatools/__init__.pyi +2 -2
  82. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/datatools/local.pyi +2 -2
  83. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/datatools/s3/__init__.pyi +2 -2
  84. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/datatools/s3/s3.pyi +3 -3
  85. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/datatools/s3/s3tail.pyi +2 -2
  86. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/datatools/s3/s3util.pyi +2 -2
  87. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/debug_logger.pyi +2 -2
  88. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/debug_monitor.pyi +2 -2
  89. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/environment_decorator.pyi +2 -2
  90. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/events_decorator.pyi +2 -2
  91. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/frameworks/__init__.pyi +2 -2
  92. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/frameworks/pytorch.pyi +2 -2
  93. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/gcp/__init__.pyi +2 -2
  94. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/gcp/gcp_secret_manager_secrets_provider.pyi +3 -3
  95. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/gcp/gs_exceptions.pyi +2 -2
  96. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/gcp/gs_storage_client_factory.pyi +2 -2
  97. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/gcp/gs_utils.pyi +2 -2
  98. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/gcp/includefile_support.pyi +2 -2
  99. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/kubernetes/__init__.pyi +2 -2
  100. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/kubernetes/kube_utils.pyi +3 -3
  101. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/kubernetes/kubernetes.pyi +2 -2
  102. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/kubernetes/kubernetes_client.pyi +2 -2
  103. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/kubernetes/kubernetes_decorator.pyi +2 -2
  104. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/kubernetes/kubernetes_job.pyi +2 -2
  105. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/kubernetes/kubernetes_jobsets.pyi +2 -2
  106. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/parallel_decorator.pyi +2 -2
  107. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/project_decorator.pyi +2 -2
  108. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/pypi/__init__.pyi +3 -3
  109. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/pypi/conda_decorator.pyi +2 -2
  110. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/pypi/conda_environment.pyi +3 -3
  111. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/pypi/pypi_decorator.pyi +2 -2
  112. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/pypi/pypi_environment.pyi +2 -2
  113. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/pypi/utils.pyi +2 -2
  114. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/resources_decorator.pyi +2 -2
  115. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/retry_decorator.pyi +2 -2
  116. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/secrets/__init__.pyi +2 -2
  117. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/secrets/inline_secrets_provider.pyi +3 -3
  118. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/secrets/secrets_decorator.pyi +2 -2
  119. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/storage_executor.pyi +2 -2
  120. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/test_unbounded_foreach_decorator.pyi +2 -2
  121. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/plugins/timeout_decorator.pyi +3 -3
  122. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/pylint_wrapper.pyi +2 -2
  123. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/runner/__init__.pyi +2 -2
  124. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/runner/deployer.pyi +30 -30
  125. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/runner/deployer_impl.pyi +2 -2
  126. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/runner/metaflow_runner.pyi +3 -3
  127. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/runner/nbdeploy.pyi +2 -2
  128. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/runner/nbrun.pyi +2 -2
  129. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/runner/subprocess_manager.pyi +2 -2
  130. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/runner/utils.pyi +3 -3
  131. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/system/__init__.pyi +2 -2
  132. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/system/system_logger.pyi +2 -2
  133. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/system/system_monitor.pyi +2 -2
  134. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/tagging_util.pyi +2 -2
  135. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/tuple_util.pyi +2 -2
  136. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/user_configs/__init__.pyi +2 -2
  137. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/user_configs/config_decorators.pyi +5 -5
  138. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/user_configs/config_options.pyi +3 -3
  139. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/user_configs/config_parameters.pyi +7 -7
  140. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/version.pyi +2 -2
  141. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4/metaflow_stubs.egg-info}/PKG-INFO +13 -3
  142. metaflow_stubs-2.13.4/metaflow_stubs.egg-info/requires.txt +1 -0
  143. metaflow_stubs-2.13.4/version.py +1 -0
  144. metaflow_stubs-2.13.2/metaflow-stubs/generated_for.txt +0 -1
  145. metaflow_stubs-2.13.2/metaflow_stubs.egg-info/requires.txt +0 -1
  146. metaflow_stubs-2.13.2/version.py +0 -1
  147. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/MANIFEST.in +0 -0
  148. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/README.md +0 -0
  149. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow-stubs/py.typed +0 -0
  150. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow_stubs.egg-info/SOURCES.txt +0 -0
  151. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow_stubs.egg-info/dependency_links.txt +0 -0
  152. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/metaflow_stubs.egg-info/top_level.txt +0 -0
  153. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/setup.cfg +0 -0
  154. {metaflow_stubs-2.13.2 → metaflow_stubs-2.13.4}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.2
2
2
  Name: metaflow-stubs
3
- Version: 2.13.2
3
+ Version: 2.13.4
4
4
  Summary: Metaflow Stubs: Stubs for the metaflow package
5
5
  Author: Metaflow Developers
6
6
  Author-email: help@metaflow.org
@@ -21,7 +21,17 @@ Classifier: Programming Language :: Python :: 3.11
21
21
  Classifier: Programming Language :: Python :: 3.12
22
22
  Requires-Python: >=3.7.0
23
23
  Description-Content-Type: text/markdown
24
- Requires-Dist: metaflow==2.13.2
24
+ Requires-Dist: metaflow==2.13.4
25
+ Dynamic: author
26
+ Dynamic: author-email
27
+ Dynamic: classifier
28
+ Dynamic: description
29
+ Dynamic: description-content-type
30
+ Dynamic: license
31
+ Dynamic: project-url
32
+ Dynamic: requires-dist
33
+ Dynamic: requires-python
34
+ Dynamic: summary
25
35
 
26
36
  # Metaflow Stubs
27
37
 
@@ -1,7 +1,7 @@
1
1
  ######################################################################################################
2
2
  # Auto-generated Metaflow stub file #
3
- # MF version: 2.13.2 #
4
- # Generated on 2025-01-08T14:49:03.615477 #
3
+ # MF version: 2.13.4 #
4
+ # Generated on 2025-01-15T17:53:58.657195 #
5
5
  ######################################################################################################
6
6
 
7
7
  from __future__ import annotations
@@ -142,6 +142,25 @@ def step(f: typing.Union[typing.Callable[[FlowSpecDerived], None], typing.Callab
142
142
  """
143
143
  ...
144
144
 
145
+ @typing.overload
146
+ def parallel(f: typing.Callable[[FlowSpecDerived, StepFlag], None]) -> typing.Callable[[FlowSpecDerived, StepFlag], None]:
147
+ """
148
+ Decorator prototype for all step decorators. This function gets specialized
149
+ and imported for all decorators types by _import_plugin_decorators().
150
+ """
151
+ ...
152
+
153
+ @typing.overload
154
+ def parallel(f: typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None]) -> typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None]:
155
+ ...
156
+
157
+ def parallel(f: typing.Union[typing.Callable[[FlowSpecDerived, StepFlag], None], typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None], None] = None):
158
+ """
159
+ Decorator prototype for all step decorators. This function gets specialized
160
+ and imported for all decorators types by _import_plugin_decorators().
161
+ """
162
+ ...
163
+
145
164
  @typing.overload
146
165
  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]]]:
147
166
  """
@@ -191,33 +210,41 @@ def secrets(f: typing.Union[typing.Callable[[FlowSpecDerived, StepFlag], None],
191
210
  ...
192
211
 
193
212
  @typing.overload
194
- def catch(*, var: typing.Optional[str] = None, print_exception: bool = True) -> 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]]]:
213
+ def retry(*, times: int = 3, minutes_between_retries: int = 2) -> 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]]]:
195
214
  """
196
- Specifies that the step will success under all circumstances.
215
+ Specifies the number of times the task corresponding
216
+ to a step needs to be retried.
197
217
 
198
- The decorator will create an optional artifact, specified by `var`, which
199
- contains the exception raised. You can use it to detect the presence
200
- of errors, indicating that all happy-path artifacts produced by the step
201
- are missing.
218
+ This decorator is useful for handling transient errors, such as networking issues.
219
+ If your task contains operations that can't be retried safely, e.g. database updates,
220
+ it is advisable to annotate it with `@retry(times=0)`.
221
+
222
+ This can be used in conjunction with the `@catch` decorator. The `@catch`
223
+ decorator will execute a no-op task after all retries have been exhausted,
224
+ ensuring that the flow execution can continue.
202
225
  """
203
226
  ...
204
227
 
205
228
  @typing.overload
206
- def catch(f: typing.Callable[[FlowSpecDerived, StepFlag], None]) -> typing.Callable[[FlowSpecDerived, StepFlag], None]:
229
+ def retry(f: typing.Callable[[FlowSpecDerived, StepFlag], None]) -> typing.Callable[[FlowSpecDerived, StepFlag], None]:
207
230
  ...
208
231
 
209
232
  @typing.overload
210
- def catch(f: typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None]) -> typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None]:
233
+ def retry(f: typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None]) -> typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None]:
211
234
  ...
212
235
 
213
- def catch(f: typing.Union[typing.Callable[[FlowSpecDerived, StepFlag], None], typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None], None] = None, *, var: typing.Optional[str] = None, print_exception: bool = True):
236
+ def retry(f: typing.Union[typing.Callable[[FlowSpecDerived, StepFlag], None], typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None], None] = None, *, times: int = 3, minutes_between_retries: int = 2):
214
237
  """
215
- Specifies that the step will success under all circumstances.
238
+ Specifies the number of times the task corresponding
239
+ to a step needs to be retried.
216
240
 
217
- The decorator will create an optional artifact, specified by `var`, which
218
- contains the exception raised. You can use it to detect the presence
219
- of errors, indicating that all happy-path artifacts produced by the step
220
- are missing.
241
+ This decorator is useful for handling transient errors, such as networking issues.
242
+ If your task contains operations that can't be retried safely, e.g. database updates,
243
+ it is advisable to annotate it with `@retry(times=0)`.
244
+
245
+ This can be used in conjunction with the `@catch` decorator. The `@catch`
246
+ decorator will execute a no-op task after all retries have been exhausted,
247
+ ensuring that the flow execution can continue.
221
248
  """
222
249
  ...
223
250
 
@@ -228,161 +255,93 @@ def kubernetes(*, cpu: int = 1, memory: int = 4096, disk: int = 10240, image: ty
228
255
  ...
229
256
 
230
257
  @typing.overload
231
- 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]]]:
258
+ 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]]]:
232
259
  """
233
- Specifies the resources needed when executing this step.
260
+ Specifies a timeout for your step.
234
261
 
235
- Use `@resources` to specify the resource requirements
236
- independently of the specific compute layer (`@batch`, `@kubernetes`).
262
+ This decorator is useful if this step may hang indefinitely.
237
263
 
238
- You can choose the compute layer on the command line by executing e.g.
239
- ```
240
- python myflow.py run --with batch
241
- ```
242
- or
243
- ```
244
- python myflow.py run --with kubernetes
245
- ```
246
- which executes the flow on the desired system using the
247
- requirements specified in `@resources`.
264
+ This can be used in conjunction with the `@retry` decorator as well as the `@catch` decorator.
265
+ A timeout is considered to be an exception thrown by the step. It will cause the step to be
266
+ retried if needed and the exception will be caught by the `@catch` decorator, if present.
267
+
268
+ Note that all the values specified in parameters are added together so if you specify
269
+ 60 seconds and 1 hour, the decorator will have an effective timeout of 1 hour and 1 minute.
248
270
  """
249
271
  ...
250
272
 
251
273
  @typing.overload
252
- def resources(f: typing.Callable[[FlowSpecDerived, StepFlag], None]) -> typing.Callable[[FlowSpecDerived, StepFlag], None]:
274
+ def timeout(f: typing.Callable[[FlowSpecDerived, StepFlag], None]) -> typing.Callable[[FlowSpecDerived, StepFlag], None]:
253
275
  ...
254
276
 
255
277
  @typing.overload
256
- def resources(f: typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None]) -> typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None]:
278
+ def timeout(f: typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None]) -> typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None]:
257
279
  ...
258
280
 
259
- def resources(f: typing.Union[typing.Callable[[FlowSpecDerived, StepFlag], None], typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None], None] = None, *, cpu: int = 1, gpu: typing.Optional[int] = None, disk: typing.Optional[int] = None, memory: int = 4096, shared_memory: typing.Optional[int] = None):
281
+ 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):
260
282
  """
261
- Specifies the resources needed when executing this step.
283
+ Specifies a timeout for your step.
262
284
 
263
- Use `@resources` to specify the resource requirements
264
- independently of the specific compute layer (`@batch`, `@kubernetes`).
285
+ This decorator is useful if this step may hang indefinitely.
265
286
 
266
- You can choose the compute layer on the command line by executing e.g.
267
- ```
268
- python myflow.py run --with batch
269
- ```
270
- or
271
- ```
272
- python myflow.py run --with kubernetes
273
- ```
274
- which executes the flow on the desired system using the
275
- requirements specified in `@resources`.
276
- """
277
- ...
278
-
279
- @typing.overload
280
- def batch(*, cpu: int = 1, gpu: int = 0, memory: int = 4096, image: typing.Optional[str] = None, queue: str = 'METAFLOW_BATCH_JOB_QUEUE', iam_role: str = 'METAFLOW_ECS_S3_ACCESS_IAM_ROLE', execution_role: str = 'METAFLOW_ECS_FARGATE_EXECUTION_ROLE', shared_memory: typing.Optional[int] = None, max_swap: typing.Optional[int] = None, swappiness: typing.Optional[int] = None, use_tmpfs: bool = False, tmpfs_tempdir: bool = True, tmpfs_size: typing.Optional[int] = None, tmpfs_path: typing.Optional[str] = None, inferentia: int = 0, trainium: int = None, efa: int = 0, ephemeral_storage: int = None, log_driver: typing.Optional[str] = None, log_options: typing.Optional[typing.List[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]]]:
281
- """
282
- Specifies that this step should execute on [AWS Batch](https://aws.amazon.com/batch/).
283
- """
284
- ...
285
-
286
- @typing.overload
287
- def batch(f: typing.Callable[[FlowSpecDerived, StepFlag], None]) -> typing.Callable[[FlowSpecDerived, StepFlag], None]:
288
- ...
289
-
290
- @typing.overload
291
- def batch(f: typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None]) -> typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None]:
292
- ...
293
-
294
- def batch(f: typing.Union[typing.Callable[[FlowSpecDerived, StepFlag], None], typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None], None] = None, *, cpu: int = 1, gpu: int = 0, memory: int = 4096, image: typing.Optional[str] = None, queue: str = 'METAFLOW_BATCH_JOB_QUEUE', iam_role: str = 'METAFLOW_ECS_S3_ACCESS_IAM_ROLE', execution_role: str = 'METAFLOW_ECS_FARGATE_EXECUTION_ROLE', shared_memory: typing.Optional[int] = None, max_swap: typing.Optional[int] = None, swappiness: typing.Optional[int] = None, use_tmpfs: bool = False, tmpfs_tempdir: bool = True, tmpfs_size: typing.Optional[int] = None, tmpfs_path: typing.Optional[str] = None, inferentia: int = 0, trainium: int = None, efa: int = 0, ephemeral_storage: int = None, log_driver: typing.Optional[str] = None, log_options: typing.Optional[typing.List[str]] = None):
295
- """
296
- Specifies that this step should execute on [AWS Batch](https://aws.amazon.com/batch/).
297
- """
298
- ...
299
-
300
- @typing.overload
301
- def parallel(f: typing.Callable[[FlowSpecDerived, StepFlag], None]) -> typing.Callable[[FlowSpecDerived, StepFlag], None]:
302
- """
303
- Decorator prototype for all step decorators. This function gets specialized
304
- and imported for all decorators types by _import_plugin_decorators().
305
- """
306
- ...
307
-
308
- @typing.overload
309
- def parallel(f: typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None]) -> typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None]:
310
- ...
311
-
312
- def parallel(f: typing.Union[typing.Callable[[FlowSpecDerived, StepFlag], None], typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None], None] = None):
313
- """
314
- Decorator prototype for all step decorators. This function gets specialized
315
- and imported for all decorators types by _import_plugin_decorators().
287
+ This can be used in conjunction with the `@retry` decorator as well as the `@catch` decorator.
288
+ A timeout is considered to be an exception thrown by the step. It will cause the step to be
289
+ retried if needed and the exception will be caught by the `@catch` decorator, if present.
290
+
291
+ Note that all the values specified in parameters are added together so if you specify
292
+ 60 seconds and 1 hour, the decorator will have an effective timeout of 1 hour and 1 minute.
316
293
  """
317
294
  ...
318
295
 
319
296
  @typing.overload
320
- def retry(*, times: int = 3, minutes_between_retries: int = 2) -> 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]]]:
297
+ def catch(*, var: typing.Optional[str] = None, print_exception: bool = True) -> 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]]]:
321
298
  """
322
- Specifies the number of times the task corresponding
323
- to a step needs to be retried.
324
-
325
- This decorator is useful for handling transient errors, such as networking issues.
326
- If your task contains operations that can't be retried safely, e.g. database updates,
327
- it is advisable to annotate it with `@retry(times=0)`.
299
+ Specifies that the step will success under all circumstances.
328
300
 
329
- This can be used in conjunction with the `@catch` decorator. The `@catch`
330
- decorator will execute a no-op task after all retries have been exhausted,
331
- ensuring that the flow execution can continue.
301
+ The decorator will create an optional artifact, specified by `var`, which
302
+ contains the exception raised. You can use it to detect the presence
303
+ of errors, indicating that all happy-path artifacts produced by the step
304
+ are missing.
332
305
  """
333
306
  ...
334
307
 
335
308
  @typing.overload
336
- def retry(f: typing.Callable[[FlowSpecDerived, StepFlag], None]) -> typing.Callable[[FlowSpecDerived, StepFlag], None]:
309
+ def catch(f: typing.Callable[[FlowSpecDerived, StepFlag], None]) -> typing.Callable[[FlowSpecDerived, StepFlag], None]:
337
310
  ...
338
311
 
339
312
  @typing.overload
340
- def retry(f: typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None]) -> typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None]:
313
+ def catch(f: typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None]) -> typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None]:
341
314
  ...
342
315
 
343
- def retry(f: typing.Union[typing.Callable[[FlowSpecDerived, StepFlag], None], typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None], None] = None, *, times: int = 3, minutes_between_retries: int = 2):
316
+ def catch(f: typing.Union[typing.Callable[[FlowSpecDerived, StepFlag], None], typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None], None] = None, *, var: typing.Optional[str] = None, print_exception: bool = True):
344
317
  """
345
- Specifies the number of times the task corresponding
346
- to a step needs to be retried.
347
-
348
- This decorator is useful for handling transient errors, such as networking issues.
349
- If your task contains operations that can't be retried safely, e.g. database updates,
350
- it is advisable to annotate it with `@retry(times=0)`.
318
+ Specifies that the step will success under all circumstances.
351
319
 
352
- This can be used in conjunction with the `@catch` decorator. The `@catch`
353
- decorator will execute a no-op task after all retries have been exhausted,
354
- ensuring that the flow execution can continue.
320
+ The decorator will create an optional artifact, specified by `var`, which
321
+ contains the exception raised. You can use it to detect the presence
322
+ of errors, indicating that all happy-path artifacts produced by the step
323
+ are missing.
355
324
  """
356
325
  ...
357
326
 
358
327
  @typing.overload
359
- 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]]]:
328
+ def batch(*, cpu: int = 1, gpu: int = 0, memory: int = 4096, image: typing.Optional[str] = None, queue: str = 'METAFLOW_BATCH_JOB_QUEUE', iam_role: str = 'METAFLOW_ECS_S3_ACCESS_IAM_ROLE', execution_role: str = 'METAFLOW_ECS_FARGATE_EXECUTION_ROLE', shared_memory: typing.Optional[int] = None, max_swap: typing.Optional[int] = None, swappiness: typing.Optional[int] = None, use_tmpfs: bool = False, tmpfs_tempdir: bool = True, tmpfs_size: typing.Optional[int] = None, tmpfs_path: typing.Optional[str] = None, inferentia: int = 0, trainium: int = None, efa: int = 0, ephemeral_storage: int = None, log_driver: typing.Optional[str] = None, log_options: typing.Optional[typing.List[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]]]:
360
329
  """
361
- Specifies the Conda environment for the step.
362
-
363
- Information in this decorator will augment any
364
- attributes set in the `@conda_base` flow-level decorator. Hence,
365
- you can use `@conda_base` to set packages required by all
366
- steps and use `@conda` to specify step-specific overrides.
330
+ Specifies that this step should execute on [AWS Batch](https://aws.amazon.com/batch/).
367
331
  """
368
332
  ...
369
333
 
370
334
  @typing.overload
371
- def conda(f: typing.Callable[[FlowSpecDerived, StepFlag], None]) -> typing.Callable[[FlowSpecDerived, StepFlag], None]:
335
+ def batch(f: typing.Callable[[FlowSpecDerived, StepFlag], None]) -> typing.Callable[[FlowSpecDerived, StepFlag], None]:
372
336
  ...
373
337
 
374
338
  @typing.overload
375
- def conda(f: typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None]) -> typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None]:
339
+ def batch(f: typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None]) -> typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None]:
376
340
  ...
377
341
 
378
- 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):
342
+ def batch(f: typing.Union[typing.Callable[[FlowSpecDerived, StepFlag], None], typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None], None] = None, *, cpu: int = 1, gpu: int = 0, memory: int = 4096, image: typing.Optional[str] = None, queue: str = 'METAFLOW_BATCH_JOB_QUEUE', iam_role: str = 'METAFLOW_ECS_S3_ACCESS_IAM_ROLE', execution_role: str = 'METAFLOW_ECS_FARGATE_EXECUTION_ROLE', shared_memory: typing.Optional[int] = None, max_swap: typing.Optional[int] = None, swappiness: typing.Optional[int] = None, use_tmpfs: bool = False, tmpfs_tempdir: bool = True, tmpfs_size: typing.Optional[int] = None, tmpfs_path: typing.Optional[str] = None, inferentia: int = 0, trainium: int = None, efa: int = 0, ephemeral_storage: int = None, log_driver: typing.Optional[str] = None, log_options: typing.Optional[typing.List[str]] = None):
379
343
  """
380
- Specifies the Conda environment for the step.
381
-
382
- Information in this decorator will augment any
383
- attributes set in the `@conda_base` flow-level decorator. Hence,
384
- you can use `@conda_base` to set packages required by all
385
- steps and use `@conda` to specify step-specific overrides.
344
+ Specifies that this step should execute on [AWS Batch](https://aws.amazon.com/batch/).
386
345
  """
387
346
  ...
388
347
 
@@ -439,90 +398,82 @@ def environment(f: typing.Union[typing.Callable[[FlowSpecDerived, StepFlag], Non
439
398
  ...
440
399
 
441
400
  @typing.overload
442
- 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]]]:
401
+ 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]]]:
443
402
  """
444
- Specifies a timeout for your step.
445
-
446
- This decorator is useful if this step may hang indefinitely.
403
+ Specifies the resources needed when executing this step.
447
404
 
448
- This can be used in conjunction with the `@retry` decorator as well as the `@catch` decorator.
449
- A timeout is considered to be an exception thrown by the step. It will cause the step to be
450
- retried if needed and the exception will be caught by the `@catch` decorator, if present.
405
+ Use `@resources` to specify the resource requirements
406
+ independently of the specific compute layer (`@batch`, `@kubernetes`).
451
407
 
452
- Note that all the values specified in parameters are added together so if you specify
453
- 60 seconds and 1 hour, the decorator will have an effective timeout of 1 hour and 1 minute.
408
+ You can choose the compute layer on the command line by executing e.g.
409
+ ```
410
+ python myflow.py run --with batch
411
+ ```
412
+ or
413
+ ```
414
+ python myflow.py run --with kubernetes
415
+ ```
416
+ which executes the flow on the desired system using the
417
+ requirements specified in `@resources`.
454
418
  """
455
419
  ...
456
420
 
457
421
  @typing.overload
458
- def timeout(f: typing.Callable[[FlowSpecDerived, StepFlag], None]) -> typing.Callable[[FlowSpecDerived, StepFlag], None]:
422
+ def resources(f: typing.Callable[[FlowSpecDerived, StepFlag], None]) -> typing.Callable[[FlowSpecDerived, StepFlag], None]:
459
423
  ...
460
424
 
461
425
  @typing.overload
462
- def timeout(f: typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None]) -> typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None]:
426
+ def resources(f: typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None]) -> typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None]:
463
427
  ...
464
428
 
465
- 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):
429
+ def resources(f: typing.Union[typing.Callable[[FlowSpecDerived, StepFlag], None], typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None], None] = None, *, cpu: int = 1, gpu: typing.Optional[int] = None, disk: typing.Optional[int] = None, memory: int = 4096, shared_memory: typing.Optional[int] = None):
466
430
  """
467
- Specifies a timeout for your step.
468
-
469
- This decorator is useful if this step may hang indefinitely.
431
+ Specifies the resources needed when executing this step.
470
432
 
471
- This can be used in conjunction with the `@retry` decorator as well as the `@catch` decorator.
472
- A timeout is considered to be an exception thrown by the step. It will cause the step to be
473
- retried if needed and the exception will be caught by the `@catch` decorator, if present.
433
+ Use `@resources` to specify the resource requirements
434
+ independently of the specific compute layer (`@batch`, `@kubernetes`).
474
435
 
475
- Note that all the values specified in parameters are added together so if you specify
476
- 60 seconds and 1 hour, the decorator will have an effective timeout of 1 hour and 1 minute.
477
- """
478
- ...
479
-
480
- 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]]:
481
- """
482
- 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)
483
- before the start step of the flow. This decorator only works when a flow is scheduled on Airflow
484
- and is compiled using `airflow create`. More than one `@airflow_s3_key_sensor` can be
485
- added as a flow decorators. Adding more than one decorator will ensure that `start` step
486
- starts only after all sensors finish.
436
+ You can choose the compute layer on the command line by executing e.g.
437
+ ```
438
+ python myflow.py run --with batch
439
+ ```
440
+ or
441
+ ```
442
+ python myflow.py run --with kubernetes
443
+ ```
444
+ which executes the flow on the desired system using the
445
+ requirements specified in `@resources`.
487
446
  """
488
447
  ...
489
448
 
490
- def project(*, name: str) -> typing.Callable[[typing.Type[FlowSpecDerived]], typing.Type[FlowSpecDerived]]:
449
+ @typing.overload
450
+ 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]]]:
491
451
  """
492
- Specifies what flows belong to the same project.
452
+ Specifies the Conda environment for the step.
493
453
 
494
- A project-specific namespace is created for all flows that
495
- use the same `@project(name)`.
454
+ Information in this decorator will augment any
455
+ attributes set in the `@conda_base` flow-level decorator. Hence,
456
+ you can use `@conda_base` to set packages required by all
457
+ steps and use `@conda` to specify step-specific overrides.
496
458
  """
497
459
  ...
498
460
 
499
461
  @typing.overload
500
- def pypi_base(*, packages: typing.Dict[str, str] = {}, python: typing.Optional[str] = None) -> typing.Callable[[typing.Type[FlowSpecDerived]], typing.Type[FlowSpecDerived]]:
501
- """
502
- Specifies the PyPI packages for all steps of the flow.
503
-
504
- Use `@pypi_base` to set common packages required by all
505
- steps and use `@pypi` to specify step-specific overrides.
506
- """
462
+ def conda(f: typing.Callable[[FlowSpecDerived, StepFlag], None]) -> typing.Callable[[FlowSpecDerived, StepFlag], None]:
507
463
  ...
508
464
 
509
465
  @typing.overload
510
- def pypi_base(f: typing.Type[FlowSpecDerived]) -> typing.Type[FlowSpecDerived]:
466
+ def conda(f: typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None]) -> typing.Callable[[FlowSpecDerived, typing.Any, StepFlag], None]:
511
467
  ...
512
468
 
513
- def pypi_base(f: typing.Optional[typing.Type[FlowSpecDerived]] = None, *, packages: typing.Dict[str, str] = {}, python: typing.Optional[str] = None):
469
+ 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):
514
470
  """
515
- Specifies the PyPI packages for all steps of the flow.
471
+ Specifies the Conda environment for the step.
516
472
 
517
- Use `@pypi_base` to set common packages required by all
518
- steps and use `@pypi` to specify step-specific overrides.
519
- """
520
- ...
521
-
522
- 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]]:
523
- """
524
- 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.
525
- 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.
473
+ Information in this decorator will augment any
474
+ attributes set in the `@conda_base` flow-level decorator. Hence,
475
+ you can use `@conda_base` to set packages required by all
476
+ steps and use `@conda` to specify step-specific overrides.
526
477
  """
527
478
  ...
528
479
 
@@ -599,22 +550,29 @@ def trigger(f: typing.Optional[typing.Type[FlowSpecDerived]] = None, *, event: t
599
550
  """
600
551
  ...
601
552
 
602
- @typing.overload
603
- 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]]:
553
+ def project(*, name: str) -> typing.Callable[[typing.Type[FlowSpecDerived]], typing.Type[FlowSpecDerived]]:
604
554
  """
605
- Specifies the times when the flow should be run when running on a
606
- production scheduler.
555
+ Specifies what flows belong to the same project.
556
+
557
+ A project-specific namespace is created for all flows that
558
+ use the same `@project(name)`.
607
559
  """
608
560
  ...
609
561
 
610
- @typing.overload
611
- def schedule(f: typing.Type[FlowSpecDerived]) -> typing.Type[FlowSpecDerived]:
562
+ 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]]:
563
+ """
564
+ 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.
565
+ 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.
566
+ """
612
567
  ...
613
568
 
614
- 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):
569
+ 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]]:
615
570
  """
616
- Specifies the times when the flow should be run when running on a
617
- production scheduler.
571
+ 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)
572
+ before the start step of the flow. This decorator only works when a flow is scheduled on Airflow
573
+ and is compiled using `airflow create`. More than one `@airflow_s3_key_sensor` can be
574
+ added as a flow decorators. Adding more than one decorator will ensure that `start` step
575
+ starts only after all sensors finish.
618
576
  """
619
577
  ...
620
578
 
@@ -699,6 +657,29 @@ def trigger_on_finish(f: typing.Optional[typing.Type[FlowSpecDerived]] = None, *
699
657
  """
700
658
  ...
701
659
 
660
+ @typing.overload
661
+ def pypi_base(*, packages: typing.Dict[str, str] = {}, python: typing.Optional[str] = None) -> typing.Callable[[typing.Type[FlowSpecDerived]], typing.Type[FlowSpecDerived]]:
662
+ """
663
+ Specifies the PyPI packages for all steps of the flow.
664
+
665
+ Use `@pypi_base` to set common packages required by all
666
+ steps and use `@pypi` to specify step-specific overrides.
667
+ """
668
+ ...
669
+
670
+ @typing.overload
671
+ def pypi_base(f: typing.Type[FlowSpecDerived]) -> typing.Type[FlowSpecDerived]:
672
+ ...
673
+
674
+ def pypi_base(f: typing.Optional[typing.Type[FlowSpecDerived]] = None, *, packages: typing.Dict[str, str] = {}, python: typing.Optional[str] = None):
675
+ """
676
+ Specifies the PyPI packages for all steps of the flow.
677
+
678
+ Use `@pypi_base` to set common packages required by all
679
+ steps and use `@pypi` to specify step-specific overrides.
680
+ """
681
+ ...
682
+
702
683
  @typing.overload
703
684
  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]]:
704
685
  """
@@ -722,3 +703,22 @@ def conda_base(f: typing.Optional[typing.Type[FlowSpecDerived]] = None, *, packa
722
703
  """
723
704
  ...
724
705
 
706
+ @typing.overload
707
+ 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]]:
708
+ """
709
+ Specifies the times when the flow should be run when running on a
710
+ production scheduler.
711
+ """
712
+ ...
713
+
714
+ @typing.overload
715
+ def schedule(f: typing.Type[FlowSpecDerived]) -> typing.Type[FlowSpecDerived]:
716
+ ...
717
+
718
+ 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):
719
+ """
720
+ Specifies the times when the flow should be run when running on a
721
+ production scheduler.
722
+ """
723
+ ...
724
+
@@ -1,7 +1,7 @@
1
1
  ######################################################################################################
2
2
  # Auto-generated Metaflow stub file #
3
- # MF version: 2.13.2 #
4
- # Generated on 2025-01-08T14:49:03.537135 #
3
+ # MF version: 2.13.4 #
4
+ # Generated on 2025-01-15T17:53:58.577858 #
5
5
  ######################################################################################################
6
6
 
7
7
  from __future__ import annotations
@@ -17,6 +17,7 @@ from .plugins.cards.card_modules.components import Error as Error
17
17
  from .plugins.cards.card_modules.components import Markdown as Markdown
18
18
  from .plugins.cards.card_modules.components import VegaChart as VegaChart
19
19
  from .plugins.cards.card_modules.components import ProgressBar as ProgressBar
20
+ from .plugins.cards.card_modules.components import PythonCode as PythonCode
20
21
  from .plugins.cards.card_modules.basic import DefaultCard as DefaultCard
21
22
  from .plugins.cards.card_modules.basic import PageComponent as PageComponent
22
23
  from .plugins.cards.card_modules.basic import ErrorCard as ErrorCard
@@ -1,7 +1,7 @@
1
1
  ######################################################################################################
2
2
  # Auto-generated Metaflow stub file #
3
- # MF version: 2.13.2 #
4
- # Generated on 2025-01-08T14:49:03.546032 #
3
+ # MF version: 2.13.4 #
4
+ # Generated on 2025-01-15T17:53:58.586744 #
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.13.2 #
4
- # Generated on 2025-01-08T14:49:03.544719 #
3
+ # MF version: 2.13.4 #
4
+ # Generated on 2025-01-15T17:53:58.585465 #
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.13.2 #
4
- # Generated on 2025-01-08T14:49:03.567294 #
3
+ # MF version: 2.13.4 #
4
+ # Generated on 2025-01-15T17:53:58.607960 #
5
5
  ######################################################################################################
6
6
 
7
7
  from __future__ import annotations