ob-metaflow-stubs 6.0.3.117__py2.py3-none-any.whl → 6.0.3.118__py2.py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (175) hide show
  1. metaflow-stubs/__init__.pyi +319 -2739
  2. metaflow-stubs/cards.pyi +19 -473
  3. metaflow-stubs/cli.pyi +17 -81
  4. metaflow-stubs/client/__init__.pyi +19 -1113
  5. metaflow-stubs/client/core.pyi +18 -158
  6. metaflow-stubs/client/filecache.pyi +8 -12
  7. metaflow-stubs/clone_util.pyi +6 -26
  8. metaflow-stubs/events.pyi +6 -5
  9. metaflow-stubs/exception.pyi +8 -6
  10. metaflow-stubs/flowspec.pyi +22 -106
  11. metaflow-stubs/generated_for.txt +1 -1
  12. metaflow-stubs/includefile.pyi +16 -564
  13. metaflow-stubs/info_file.pyi +6 -5
  14. metaflow-stubs/metadata_provider/__init__.pyi +16 -0
  15. metaflow-stubs/metadata_provider/heartbeat.pyi +34 -0
  16. metaflow-stubs/{metadata → metadata_provider}/metadata.pyi +10 -22
  17. metaflow-stubs/metadata_provider/util.pyi +19 -0
  18. metaflow-stubs/metaflow_config.pyi +8 -13
  19. metaflow-stubs/metaflow_current.pyi +134 -133
  20. metaflow-stubs/mf_extensions/__init__.pyi +6 -0
  21. metaflow-stubs/mf_extensions/obcheckpoint/__init__.pyi +6 -0
  22. metaflow-stubs/mf_extensions/obcheckpoint/plugins/__init__.pyi +6 -0
  23. metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/__init__.pyi +6 -0
  24. metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/checkpoints/__init__.pyi +6 -0
  25. metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/checkpoints/checkpoint_storage.pyi +129 -0
  26. metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/checkpoints/constructors.pyi +26 -0
  27. metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/checkpoints/core.pyi +156 -0
  28. metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/checkpoints/exceptions.pyi +25 -0
  29. metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/checkpoints/final_api.pyi +111 -0
  30. metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/datastore/__init__.pyi +6 -0
  31. metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/datastore/core.pyi +188 -0
  32. metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/datastore/exceptions.pyi +30 -0
  33. metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/datastore/task_utils.pyi +28 -0
  34. metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/datastore/utils.pyi +19 -0
  35. metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/datastructures.pyi +115 -0
  36. metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/exceptions.pyi +40 -0
  37. metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/utils/__init__.pyi +6 -0
  38. metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/utils/flowspec_utils.pyi +71 -0
  39. metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/utils/general.pyi +56 -0
  40. metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/utils/identity_utils.pyi +67 -0
  41. metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/utils/tar_utils.pyi +49 -0
  42. metaflow-stubs/mf_extensions/outerbounds/__init__.pyi +6 -0
  43. metaflow-stubs/mf_extensions/outerbounds/profilers/__init__.pyi +6 -0
  44. metaflow-stubs/mf_extensions/outerbounds/profilers/gpu.pyi +130 -0
  45. metaflow-stubs/mf_extensions/outerbounds/remote_config.pyi +42 -0
  46. metaflow-stubs/mf_extensions/outerbounds/toplevel/__init__.pyi +6 -0
  47. metaflow-stubs/mf_extensions/outerbounds/toplevel/global_aliases_for_metaflow_package.pyi +17 -0
  48. metaflow-stubs/mflog/__init__.pyi +6 -0
  49. metaflow-stubs/mflog/mflog.pyi +52 -5
  50. metaflow-stubs/multicore_utils.pyi +6 -5
  51. metaflow-stubs/parameters.pyi +13 -23
  52. metaflow-stubs/plugins/__init__.pyi +52 -165
  53. metaflow-stubs/plugins/airflow/__init__.pyi +9 -5
  54. metaflow-stubs/plugins/airflow/airflow_utils.pyi +7 -6
  55. metaflow-stubs/plugins/airflow/exception.pyi +7 -11
  56. metaflow-stubs/plugins/airflow/sensors/__init__.pyi +10 -97
  57. metaflow-stubs/plugins/airflow/sensors/base_sensor.pyi +9 -30
  58. metaflow-stubs/plugins/airflow/sensors/external_task_sensor.pyi +9 -40
  59. metaflow-stubs/plugins/airflow/sensors/s3_sensor.pyi +9 -40
  60. metaflow-stubs/plugins/argo/__init__.pyi +12 -5
  61. metaflow-stubs/plugins/argo/argo_client.pyi +8 -26
  62. metaflow-stubs/plugins/argo/argo_events.pyi +7 -11
  63. metaflow-stubs/plugins/argo/argo_workflows.pyi +18 -130
  64. metaflow-stubs/plugins/argo/argo_workflows_cli.pyi +22 -460
  65. metaflow-stubs/plugins/argo/argo_workflows_decorator.pyi +12 -404
  66. metaflow-stubs/plugins/argo/argo_workflows_deployer.pyi +63 -448
  67. metaflow-stubs/plugins/argo/argo_workflows_deployer_objects.pyi +165 -0
  68. metaflow-stubs/plugins/aws/__init__.pyi +11 -5
  69. metaflow-stubs/plugins/aws/aws_client.pyi +6 -5
  70. metaflow-stubs/plugins/aws/aws_utils.pyi +6 -11
  71. metaflow-stubs/plugins/aws/batch/__init__.pyi +9 -5
  72. metaflow-stubs/plugins/aws/batch/batch.pyi +10 -55
  73. metaflow-stubs/plugins/aws/batch/batch_client.pyi +7 -11
  74. metaflow-stubs/plugins/aws/batch/batch_decorator.pyi +15 -140
  75. metaflow-stubs/plugins/aws/secrets_manager/__init__.pyi +7 -5
  76. metaflow-stubs/plugins/aws/secrets_manager/aws_secrets_manager_secrets_provider.pyi +10 -21
  77. metaflow-stubs/plugins/aws/step_functions/__init__.pyi +9 -5
  78. metaflow-stubs/plugins/aws/step_functions/event_bridge_client.pyi +6 -5
  79. metaflow-stubs/plugins/aws/step_functions/production_token.pyi +6 -5
  80. metaflow-stubs/plugins/aws/step_functions/schedule_decorator.pyi +7 -5
  81. metaflow-stubs/plugins/aws/step_functions/step_functions.pyi +11 -65
  82. metaflow-stubs/plugins/aws/step_functions/step_functions_client.pyi +6 -5
  83. metaflow-stubs/plugins/aws/step_functions/step_functions_deployer.pyi +52 -292
  84. metaflow-stubs/plugins/aws/step_functions/step_functions_deployer_objects.pyi +127 -0
  85. metaflow-stubs/plugins/azure/__init__.pyi +12 -7
  86. metaflow-stubs/plugins/azure/azure_credential.pyi +6 -5
  87. metaflow-stubs/plugins/azure/azure_exceptions.pyi +7 -11
  88. metaflow-stubs/plugins/azure/azure_secret_manager_secrets_provider.pyi +11 -24
  89. metaflow-stubs/plugins/azure/azure_utils.pyi +11 -29
  90. metaflow-stubs/plugins/azure/blob_service_client_factory.pyi +8 -23
  91. metaflow-stubs/plugins/azure/includefile_support.pyi +7 -17
  92. metaflow-stubs/plugins/cards/__init__.pyi +15 -5
  93. metaflow-stubs/plugins/cards/card_cli.pyi +22 -491
  94. metaflow-stubs/plugins/cards/card_client.pyi +13 -75
  95. metaflow-stubs/plugins/cards/card_creator.pyi +7 -10
  96. metaflow-stubs/plugins/cards/card_datastore.pyi +10 -18
  97. metaflow-stubs/plugins/cards/card_decorator.pyi +10 -126
  98. metaflow-stubs/plugins/cards/card_modules/__init__.pyi +13 -81
  99. metaflow-stubs/plugins/cards/card_modules/basic.pyi +13 -96
  100. metaflow-stubs/plugins/cards/card_modules/card.pyi +6 -5
  101. metaflow-stubs/plugins/cards/card_modules/components.pyi +24 -107
  102. metaflow-stubs/plugins/cards/card_modules/convert_to_native_type.pyi +6 -5
  103. metaflow-stubs/plugins/cards/card_modules/renderer_tools.pyi +6 -12
  104. metaflow-stubs/plugins/cards/card_modules/test_cards.pyi +11 -88
  105. metaflow-stubs/plugins/cards/card_resolver.pyi +6 -49
  106. metaflow-stubs/plugins/cards/component_serializer.pyi +13 -63
  107. metaflow-stubs/plugins/cards/exception.pyi +7 -11
  108. metaflow-stubs/plugins/catch_decorator.pyi +10 -30
  109. metaflow-stubs/plugins/datatools/__init__.pyi +13 -392
  110. metaflow-stubs/plugins/datatools/local.pyi +7 -11
  111. metaflow-stubs/plugins/datatools/s3/__init__.pyi +19 -653
  112. metaflow-stubs/plugins/datatools/s3/s3.pyi +16 -264
  113. metaflow-stubs/plugins/datatools/s3/s3tail.pyi +7 -10
  114. metaflow-stubs/plugins/datatools/s3/s3util.pyi +6 -11
  115. metaflow-stubs/plugins/debug_logger.pyi +7 -5
  116. metaflow-stubs/plugins/debug_monitor.pyi +7 -5
  117. metaflow-stubs/plugins/environment_decorator.pyi +7 -5
  118. metaflow-stubs/plugins/events_decorator.pyi +8 -14
  119. metaflow-stubs/plugins/frameworks/__init__.pyi +7 -5
  120. metaflow-stubs/plugins/frameworks/pytorch.pyi +8 -45
  121. metaflow-stubs/plugins/gcp/__init__.pyi +11 -7
  122. metaflow-stubs/plugins/gcp/gcp_secret_manager_secrets_provider.pyi +11 -24
  123. metaflow-stubs/plugins/gcp/gs_exceptions.pyi +7 -11
  124. metaflow-stubs/plugins/gcp/gs_storage_client_factory.pyi +6 -5
  125. metaflow-stubs/plugins/gcp/gs_utils.pyi +8 -20
  126. metaflow-stubs/plugins/gcp/includefile_support.pyi +7 -17
  127. metaflow-stubs/plugins/kubernetes/__init__.pyi +12 -5
  128. metaflow-stubs/plugins/kubernetes/kube_utils.pyi +6 -10
  129. metaflow-stubs/plugins/kubernetes/kubernetes.pyi +10 -38
  130. metaflow-stubs/plugins/kubernetes/kubernetes_cli.pyi +16 -155
  131. metaflow-stubs/plugins/kubernetes/kubernetes_client.pyi +7 -11
  132. metaflow-stubs/plugins/kubernetes/kubernetes_decorator.pyi +19 -142
  133. metaflow-stubs/plugins/kubernetes/kubernetes_jobsets.pyi +7 -11
  134. metaflow-stubs/plugins/logs_cli.pyi +10 -9
  135. metaflow-stubs/plugins/package_cli.pyi +7 -5
  136. metaflow-stubs/plugins/parallel_decorator.pyi +11 -59
  137. metaflow-stubs/plugins/perimeters.pyi +6 -11
  138. metaflow-stubs/plugins/project_decorator.pyi +8 -14
  139. metaflow-stubs/plugins/pypi/__init__.pyi +12 -11
  140. metaflow-stubs/plugins/pypi/conda_decorator.pyi +8 -27
  141. metaflow-stubs/plugins/pypi/conda_environment.pyi +14 -20
  142. metaflow-stubs/plugins/pypi/pypi_decorator.pyi +7 -5
  143. metaflow-stubs/plugins/pypi/pypi_environment.pyi +7 -39
  144. metaflow-stubs/plugins/pypi/utils.pyi +7 -11
  145. metaflow-stubs/plugins/resources_decorator.pyi +7 -5
  146. metaflow-stubs/plugins/retry_decorator.pyi +7 -11
  147. metaflow-stubs/plugins/secrets/__init__.pyi +9 -5
  148. metaflow-stubs/plugins/secrets/inline_secrets_provider.pyi +8 -13
  149. metaflow-stubs/plugins/secrets/secrets_decorator.pyi +7 -11
  150. metaflow-stubs/plugins/storage_executor.pyi +6 -11
  151. metaflow-stubs/plugins/tag_cli.pyi +14 -396
  152. metaflow-stubs/plugins/test_unbounded_foreach_decorator.pyi +8 -33
  153. metaflow-stubs/plugins/timeout_decorator.pyi +8 -12
  154. metaflow-stubs/procpoll.pyi +7 -5
  155. metaflow-stubs/profilers/__init__.pyi +7 -11
  156. metaflow-stubs/pylint_wrapper.pyi +7 -11
  157. metaflow-stubs/runner/__init__.pyi +13 -5
  158. metaflow-stubs/runner/deployer.pyi +99 -223
  159. metaflow-stubs/runner/deployer_impl.pyi +87 -0
  160. metaflow-stubs/runner/metaflow_runner.pyi +24 -508
  161. metaflow-stubs/runner/nbdeploy.pyi +16 -60
  162. metaflow-stubs/runner/nbrun.pyi +11 -148
  163. metaflow-stubs/runner/subprocess_manager.pyi +9 -10
  164. metaflow-stubs/runner/utils.pyi +44 -9
  165. metaflow-stubs/system/__init__.pyi +9 -107
  166. metaflow-stubs/system/system_logger.pyi +6 -15
  167. metaflow-stubs/system/system_monitor.pyi +6 -16
  168. metaflow-stubs/tagging_util.pyi +6 -10
  169. metaflow-stubs/tuple_util.pyi +6 -5
  170. {ob_metaflow_stubs-6.0.3.117.dist-info → ob_metaflow_stubs-6.0.3.118.dist-info}/METADATA +1 -1
  171. ob_metaflow_stubs-6.0.3.118.dist-info/RECORD +174 -0
  172. metaflow-stubs/metadata/util.pyi +0 -18
  173. ob_metaflow_stubs-6.0.3.117.dist-info/RECORD +0 -140
  174. {ob_metaflow_stubs-6.0.3.117.dist-info → ob_metaflow_stubs-6.0.3.118.dist-info}/WHEEL +0 -0
  175. {ob_metaflow_stubs-6.0.3.117.dist-info → ob_metaflow_stubs-6.0.3.118.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,40 @@
1
+ ######################################################################################################
2
+ # Auto-generated Metaflow stub file #
3
+ # MF version: 2.12.30.1+obcheckpoint(0.1.4);ob(v1) #
4
+ # Generated on 2024-11-13T23:34:52.870144 #
5
+ ######################################################################################################
6
+
7
+ from __future__ import annotations
8
+
9
+ import metaflow
10
+ import typing
11
+ if typing.TYPE_CHECKING:
12
+ import metaflow.exception
13
+
14
+ from .....exception import MetaflowException as MetaflowException
15
+
16
+ class TODOException(metaflow.exception.MetaflowException, metaclass=type):
17
+ def __init__(self, message):
18
+ ...
19
+ ...
20
+
21
+ class KeyNotFoundError(metaflow.exception.MetaflowException, metaclass=type):
22
+ def __init__(self, url):
23
+ ...
24
+ ...
25
+
26
+ class KeyNotCompatibleException(metaflow.exception.MetaflowException, metaclass=type):
27
+ def __init__(self, key, supported_types):
28
+ ...
29
+ ...
30
+
31
+ class KeyNotCompatibleWithObjectException(metaflow.exception.MetaflowException, metaclass=type):
32
+ def __init__(self, key, store, message = None):
33
+ ...
34
+ ...
35
+
36
+ class IncompatibleObjectTypeException(metaflow.exception.MetaflowException, metaclass=type):
37
+ def __init__(self, message):
38
+ ...
39
+ ...
40
+
@@ -0,0 +1,6 @@
1
+ ######################################################################################################
2
+ # Auto-generated Metaflow stub file #
3
+ # MF version: 2.12.30.1+obcheckpoint(0.1.4);ob(v1) #
4
+ # Generated on 2024-11-13T23:34:52.910680 #
5
+ ######################################################################################################
6
+
@@ -0,0 +1,71 @@
1
+ ######################################################################################################
2
+ # Auto-generated Metaflow stub file #
3
+ # MF version: 2.12.30.1+obcheckpoint(0.1.4);ob(v1) #
4
+ # Generated on 2024-11-13T23:34:52.910732 #
5
+ ######################################################################################################
6
+
7
+ from __future__ import annotations
8
+
9
+ import typing
10
+ if typing.TYPE_CHECKING:
11
+ import metaflow
12
+
13
+ from ......metaflow_current import current as current
14
+ from .identity_utils import TaskIdentifier as TaskIdentifier
15
+ from .identity_utils import FlowNotRunningException as FlowNotRunningException
16
+
17
+ TYPE_CHECKING: bool
18
+
19
+ class ResolvedTask(tuple, metaclass=type):
20
+ """
21
+ ResolvedTask(flow_name, run_id, step_name, task_id, is_foreach, current_attempt, pathspec, control_task_pathspec)
22
+ """
23
+ @staticmethod
24
+ def __new__(_cls, flow_name, run_id, step_name, task_id, is_foreach, current_attempt, pathspec, control_task_pathspec):
25
+ """
26
+ Create new instance of ResolvedTask(flow_name, run_id, step_name, task_id, is_foreach, current_attempt, pathspec, control_task_pathspec)
27
+ """
28
+ ...
29
+ def __repr__(self):
30
+ """
31
+ Return a nicely formatted representation string
32
+ """
33
+ ...
34
+ def __getnewargs__(self):
35
+ """
36
+ Return self as a plain tuple. Used by copy and pickle.
37
+ """
38
+ ...
39
+ ...
40
+
41
+ class OriginInfo(tuple, metaclass=type):
42
+ """
43
+ OriginInfo(origin_run_id, origin_task_id, origin_attempt, is_foreach)
44
+ """
45
+ @staticmethod
46
+ def __new__(_cls, origin_run_id, origin_task_id, origin_attempt, is_foreach):
47
+ """
48
+ Create new instance of OriginInfo(origin_run_id, origin_task_id, origin_attempt, is_foreach)
49
+ """
50
+ ...
51
+ def __repr__(self):
52
+ """
53
+ Return a nicely formatted representation string
54
+ """
55
+ ...
56
+ def __getnewargs__(self):
57
+ """
58
+ Return self as a plain tuple. Used by copy and pickle.
59
+ """
60
+ ...
61
+ ...
62
+
63
+ def resolve_pathspec_for_flowspec(run: "metaflow.FlowSpec" = None):
64
+ ...
65
+
66
+ def resolve_storage_backend(run: "metaflow.FlowSpec" = None):
67
+ ...
68
+
69
+ def resolve_task_identifier(run: "metaflow.FlowSpec", gang_scheduled_task = False, gang_schedule_task_idf_index = 0):
70
+ ...
71
+
@@ -0,0 +1,56 @@
1
+ ######################################################################################################
2
+ # Auto-generated Metaflow stub file #
3
+ # MF version: 2.12.30.1+obcheckpoint(0.1.4);ob(v1) #
4
+ # Generated on 2024-11-13T23:34:52.912533 #
5
+ ######################################################################################################
6
+
7
+ from __future__ import annotations
8
+
9
+ import typing
10
+ if typing.TYPE_CHECKING:
11
+ import metaflow.mf_extensions.obcheckpoint.plugins.machine_learning_utilities.utils.general
12
+
13
+
14
+ class PathSize(tuple, metaclass=type):
15
+ """
16
+ PathSize(path, calculated_size, early_stopping, not_found)
17
+ """
18
+ @staticmethod
19
+ def __new__(_cls, path, calculated_size, early_stopping, not_found):
20
+ """
21
+ Create new instance of PathSize(path, calculated_size, early_stopping, not_found)
22
+ """
23
+ ...
24
+ def __repr__(self):
25
+ """
26
+ Return a nicely formatted representation string
27
+ """
28
+ ...
29
+ def __getnewargs__(self):
30
+ """
31
+ Return self as a plain tuple. Used by copy and pickle.
32
+ """
33
+ ...
34
+ ...
35
+
36
+ def replace_start_and_end_slash(string):
37
+ ...
38
+
39
+ def get_path_size(start_path, early_stopping_limit = None) -> PathSize:
40
+ ...
41
+
42
+ def warning_message(message, logger = None, ts = False, prefix = '[no-prefix]'):
43
+ ...
44
+
45
+ def unit_convert(number, base_unit, convert_unit):
46
+ ...
47
+
48
+ def is_json_serializable(value):
49
+ """
50
+ Check if value is JSON serializable.
51
+ """
52
+ ...
53
+
54
+ def safe_serialize(data):
55
+ ...
56
+
@@ -0,0 +1,67 @@
1
+ ######################################################################################################
2
+ # Auto-generated Metaflow stub file #
3
+ # MF version: 2.12.30.1+obcheckpoint(0.1.4);ob(v1) #
4
+ # Generated on 2024-11-13T23:34:52.922066 #
5
+ ######################################################################################################
6
+
7
+ from __future__ import annotations
8
+
9
+ import metaflow
10
+ import typing
11
+ if typing.TYPE_CHECKING:
12
+ import metaflow.exception
13
+ import metaflow
14
+
15
+ from ......exception import MetaflowException as MetaflowException
16
+
17
+ TYPE_CHECKING: bool
18
+
19
+ MAX_HASH_LEN: int
20
+
21
+ class AttemptEnum(object, metaclass=type):
22
+ @classmethod
23
+ def values(cls):
24
+ ...
25
+ ...
26
+
27
+ class IdentityException(metaflow.exception.MetaflowException, metaclass=type):
28
+ ...
29
+
30
+ class UnhashableValueException(metaflow.exception.MetaflowException, metaclass=type):
31
+ def __init__(self, type):
32
+ ...
33
+ ...
34
+
35
+ class FlowNotRunningException(metaflow.exception.MetaflowException, metaclass=type):
36
+ ...
37
+
38
+ def pathspec_hash(pathspec: str):
39
+ ...
40
+
41
+ def safe_hash(value):
42
+ """
43
+ Safely hash arbitrary values and a created a sha for that object, including those that are not natively hashable.
44
+ """
45
+ ...
46
+
47
+ class TaskIdentifier(object, metaclass=type):
48
+ """
49
+ Any change to this class's core logic can create SEVERE backwards compatibility issues
50
+ since this class helps derive the task identifier for the checkpoints.
51
+
52
+ IDEALLY, the identifier construction logic of this file should be kept as is.
53
+ """
54
+ @classmethod
55
+ def for_parallel_task_index(cls, run: "metaflow.FlowSpec", index: int):
56
+ """
57
+ This class is meant to mint a task-identifier for a parallel task based on the
58
+ index of the task in the gang.
59
+ """
60
+ ...
61
+ @classmethod
62
+ def from_flowspec(cls, run: "metaflow.FlowSpec"):
63
+ ...
64
+ def from_task(cls, task: "metaflow.Task", use_origin = True):
65
+ ...
66
+ ...
67
+
@@ -0,0 +1,49 @@
1
+ ######################################################################################################
2
+ # Auto-generated Metaflow stub file #
3
+ # MF version: 2.12.30.1+obcheckpoint(0.1.4);ob(v1) #
4
+ # Generated on 2024-11-13T23:34:52.912150 #
5
+ ######################################################################################################
6
+
7
+ from __future__ import annotations
8
+
9
+ import metaflow
10
+ import typing
11
+ if typing.TYPE_CHECKING:
12
+ import metaflow.exception
13
+
14
+ from ......exception import MetaflowException as MetaflowException
15
+
16
+ class TarballCreationError(metaflow.exception.MetaflowException, metaclass=type):
17
+ def __init__(self, message, error):
18
+ ...
19
+ ...
20
+
21
+ def warning_message(message, logger = None, ts = False, prefix = '[@checkpoint][tarball-creator]'):
22
+ ...
23
+
24
+ def os_error_safe_file_adding(tar, file_path, arcname):
25
+ ...
26
+
27
+ def create_tarball_in_memory(source_paths: typing.Union[str, typing.List[str]], compression_method = 'gz', strict = False):
28
+ ...
29
+
30
+ def create_tarball_on_disk(source_path: str, output_filename = None, compression_method = 'gz', strict = False):
31
+ """
32
+ Create a tarball of the specified file or directory.
33
+
34
+ Parameters:
35
+ - source_path: The path to the file or directory to add to tarball.
36
+ - output_filename: The path where the tarball should be saved.
37
+ """
38
+ ...
39
+
40
+ def extract_tarball(tarball_path_or_bytes, target_directory, compression_method = 'gz'):
41
+ """
42
+ Extract a tarball to the specified directory.
43
+
44
+ Parameters:
45
+ - tarball_path_or_bytes: The path to the tarball to be extracted or the bytes of the tarball.
46
+ - target_directory: The directory where the contents of the tarball should be extracted.
47
+ """
48
+ ...
49
+
@@ -0,0 +1,6 @@
1
+ ######################################################################################################
2
+ # Auto-generated Metaflow stub file #
3
+ # MF version: 2.12.30.1+obcheckpoint(0.1.4);ob(v1) #
4
+ # Generated on 2024-11-13T23:34:52.837750 #
5
+ ######################################################################################################
6
+
@@ -0,0 +1,6 @@
1
+ ######################################################################################################
2
+ # Auto-generated Metaflow stub file #
3
+ # MF version: 2.12.30.1+obcheckpoint(0.1.4);ob(v1) #
4
+ # Generated on 2024-11-13T23:34:52.850093 #
5
+ ######################################################################################################
6
+
@@ -0,0 +1,130 @@
1
+ ######################################################################################################
2
+ # Auto-generated Metaflow stub file #
3
+ # MF version: 2.12.30.1+obcheckpoint(0.1.4);ob(v1) #
4
+ # Generated on 2024-11-13T23:34:52.850145 #
5
+ ######################################################################################################
6
+
7
+ from __future__ import annotations
8
+
9
+ import typing
10
+
11
+ from ....plugins.cards.card_modules.components import Markdown as Markdown
12
+ from ....plugins.cards.card_modules.components import Table as Table
13
+ from ....plugins.cards.card_modules.components import VegaChart as VegaChart
14
+ from ....metaflow_current import current as current
15
+ from ....plugins.cards.card_modules.components import Image as Image
16
+
17
+ MEM_COLOR: str
18
+
19
+ GPU_COLOR: str
20
+
21
+ NVIDIA_TS_FORMAT: str
22
+
23
+ MONITOR_FIELDS: list
24
+
25
+ MONITOR: str
26
+
27
+ class ProcessUUID(tuple, metaclass=type):
28
+ """
29
+ ProcessUUID(uuid, start_time, end_time)
30
+ """
31
+ @staticmethod
32
+ def __new__(_cls, uuid, start_time, end_time):
33
+ """
34
+ Create new instance of ProcessUUID(uuid, start_time, end_time)
35
+ """
36
+ ...
37
+ def __repr__(self):
38
+ """
39
+ Return a nicely formatted representation string
40
+ """
41
+ ...
42
+ def __getnewargs__(self):
43
+ """
44
+ Return self as a plain tuple. Used by copy and pickle.
45
+ """
46
+ ...
47
+ ...
48
+
49
+ class AsyncProcessManager(object, metaclass=type):
50
+ """
51
+ This class is responsible for managing the nvidia SMI subprocesses
52
+ """
53
+ @classmethod
54
+ def get(cls, procid):
55
+ ...
56
+ @classmethod
57
+ def spawn(cls, procid, cmd, file):
58
+ ...
59
+ @classmethod
60
+ def remove(cls, procid, delete_item = True):
61
+ ...
62
+ @classmethod
63
+ def cleanup(cls):
64
+ ...
65
+ @classmethod
66
+ def is_running(cls, procid):
67
+ ...
68
+ def __init__(self, processes: typing.Dict[str, typing.Dict]):
69
+ ...
70
+ ...
71
+
72
+ class GPUMonitor(object, metaclass=type):
73
+ """
74
+ The `GPUMonitor` class is designed to monitor GPU usage.
75
+
76
+ When an instance of `GPUMonitor` is created, it initializes with a specified `interval` and `duration`.
77
+ The `duration` is the timeperiod it will run the NVIDIA SMI command for and the `interval` is the timeperiod between each reading.
78
+ The class exposes a `_monitor_update_thread` method which runs as a background thread that continuously updates the GPU usage readings.
79
+ It will keep running unitl the `_finished` flag is set to `True`.
80
+
81
+ The class will statefully manage the the spawned NVIDI-SMI processes.
82
+ It will start a new NVIDI-SMI process after the current one has ran for the specified `duration`.
83
+ At a time this class will only maintain readings for the `_current_process` and will have all the aggregated
84
+ readings for the past processes stored in the `_past_readings` dictionary.
85
+ When a process finishes completion, the readings are appended to the `_past_readings` dictionary and a new process is started.
86
+
87
+ If the caller of this class wishes to read the GPU usage, they can call the `read` method which will return the readings in a dictionary format.
88
+ The `read` method will aggregate the readings from the `_current_readings` and `_past_readings`.
89
+ """
90
+ def __init__(self, interval = 1, duration = 300):
91
+ ...
92
+ @property
93
+ def _current_file(self):
94
+ ...
95
+ def get_file_name(self, uuid):
96
+ ...
97
+ def create_new_monitor(self):
98
+ ...
99
+ def clear_current_monitor(self):
100
+ ...
101
+ def current_process_has_ended(self):
102
+ ...
103
+ def current_process_is_running(self):
104
+ ...
105
+ def read(self):
106
+ ...
107
+ def cleanup(self):
108
+ ...
109
+ ...
110
+
111
+ class GPUProfiler(object, metaclass=type):
112
+ def __init__(self, interval = 1, monitor_batch_duration = 200, artifact_name = 'gpu_profile_data', max_check_timeout = 60):
113
+ ...
114
+ def finish(self):
115
+ ...
116
+ ...
117
+
118
+ class gpu_profile(object, metaclass=type):
119
+ def __init__(self, include_artifacts = True, artifact_prefix = 'gpu_profile_', interval = 1):
120
+ ...
121
+ def __call__(self, f):
122
+ ...
123
+ ...
124
+
125
+ def translate_to_vegalite(tstamps, vals, description, y_label, legend, line_color = None, percentage_format = False):
126
+ ...
127
+
128
+ def profile_plots(device_id, ts, gpu, mem_used, mem_total):
129
+ ...
130
+
@@ -0,0 +1,42 @@
1
+ ######################################################################################################
2
+ # Auto-generated Metaflow stub file #
3
+ # MF version: 2.12.30.1+obcheckpoint(0.1.4);ob(v1) #
4
+ # Generated on 2024-11-13T23:34:52.905497 #
5
+ ######################################################################################################
6
+
7
+ from __future__ import annotations
8
+
9
+ import typing
10
+ if typing.TYPE_CHECKING:
11
+ import pathlib
12
+
13
+ from ...exception import MetaflowException as MetaflowException
14
+ from ...plugins.perimeters import get_perimeter_config_url_if_set_in_ob_config as get_perimeter_config_url_if_set_in_ob_config
15
+
16
+ OBP_REMOTE_CONFIG_KEY: str
17
+
18
+ HOSTNAME_KEY: str
19
+
20
+ AUTH_KEY: str
21
+
22
+ PERIMETER_KEY: str
23
+
24
+ CONFIG_READ_ONCE_KEY: str
25
+
26
+ def read_config_from_local() -> typing.Optional[pathlib.Path]:
27
+ ...
28
+
29
+ def resolve_config_from_remote(remote_url: str, auth_token: str) -> typing.Dict[str, str]:
30
+ ...
31
+
32
+ def init_config() -> typing.Dict[str, str]:
33
+ """
34
+ OSS Metaflow reads the config file on every step initialization. This is because OSS assumes config files change
35
+ relatively infrequently. We want to avoid config values changing between flow steps. Our solution to prevent this
36
+ is to read a config once and cache it on an environment variable. Environment variables carry over between steps
37
+ because steps are executed in subprocesses (local) or environments which expect environment variables to be set.
38
+ """
39
+ ...
40
+
41
+ DEBUG_CONFIG: None
42
+
@@ -0,0 +1,6 @@
1
+ ######################################################################################################
2
+ # Auto-generated Metaflow stub file #
3
+ # MF version: 2.12.30.1+obcheckpoint(0.1.4);ob(v1) #
4
+ # Generated on 2024-11-13T23:34:52.837806 #
5
+ ######################################################################################################
6
+
@@ -0,0 +1,17 @@
1
+ ######################################################################################################
2
+ # Auto-generated Metaflow stub file #
3
+ # MF version: 2.12.30.1+obcheckpoint(0.1.4);ob(v1) #
4
+ # Generated on 2024-11-13T23:34:52.837852 #
5
+ ######################################################################################################
6
+
7
+ from __future__ import annotations
8
+
9
+
10
+ from .... import profilers as profilers
11
+
12
+ def get_aws_client(module, with_error = False, role_arn = None, session_vars = None, client_params = None):
13
+ ...
14
+
15
+ def S3(*args, **kwargs):
16
+ ...
17
+
@@ -0,0 +1,6 @@
1
+ ######################################################################################################
2
+ # Auto-generated Metaflow stub file #
3
+ # MF version: 2.12.30.1+obcheckpoint(0.1.4);ob(v1) #
4
+ # Generated on 2024-11-13T23:34:52.871761 #
5
+ ######################################################################################################
6
+
@@ -1,8 +1,8 @@
1
- ##################################################################################
2
- # Auto-generated Metaflow stub file #
3
- # MF version: 2.12.27.1+obcheckpoint(0.1.2);ob(v1) #
4
- # Generated on 2024-11-13T19:05:29.395124 #
5
- ##################################################################################
1
+ ######################################################################################################
2
+ # Auto-generated Metaflow stub file #
3
+ # MF version: 2.12.30.1+obcheckpoint(0.1.4);ob(v1) #
4
+ # Generated on 2024-11-13T23:34:52.871813 #
5
+ ######################################################################################################
6
6
 
7
7
  from __future__ import annotations
8
8
 
@@ -10,13 +10,60 @@ import typing
10
10
  if typing.TYPE_CHECKING:
11
11
  import datetime
12
12
 
13
+
13
14
  VERSION: bytes
14
15
 
15
16
  RE: bytes
16
17
 
18
+ class MFLogline(tuple, metaclass=type):
19
+ """
20
+ MFLogline(should_persist, version, utc_tstamp_str, logsource, id, msg, utc_tstamp)
21
+ """
22
+ @staticmethod
23
+ def __new__(_cls, should_persist, version, utc_tstamp_str, logsource, id, msg, utc_tstamp):
24
+ """
25
+ Create new instance of MFLogline(should_persist, version, utc_tstamp_str, logsource, id, msg, utc_tstamp)
26
+ """
27
+ ...
28
+ def __repr__(self):
29
+ """
30
+ Return a nicely formatted representation string
31
+ """
32
+ ...
33
+ def __getnewargs__(self):
34
+ """
35
+ Return self as a plain tuple. Used by copy and pickle.
36
+ """
37
+ ...
38
+ ...
39
+
17
40
  ISOFORMAT: str
18
41
 
19
42
  MISSING_TIMESTAMP: datetime.datetime
20
43
 
21
44
  MISSING_TIMESTAMP_STR: str
22
45
 
46
+ def utc_to_local(x):
47
+ ...
48
+
49
+ def decorate(source, line, version = b'0', now = None, lineid = None):
50
+ ...
51
+
52
+ def is_structured(line):
53
+ ...
54
+
55
+ def parse(line):
56
+ ...
57
+
58
+ def set_should_persist(line):
59
+ ...
60
+
61
+ def unset_should_persist(line):
62
+ ...
63
+
64
+ def refine(line, prefix = None, suffix = None):
65
+ ...
66
+
67
+ def merge_logs(logs):
68
+ ...
69
+
@@ -1,8 +1,8 @@
1
- ##################################################################################
2
- # Auto-generated Metaflow stub file #
3
- # MF version: 2.12.27.1+obcheckpoint(0.1.2);ob(v1) #
4
- # Generated on 2024-11-13T19:05:29.344336 #
5
- ##################################################################################
1
+ ######################################################################################################
2
+ # Auto-generated Metaflow stub file #
3
+ # MF version: 2.12.30.1+obcheckpoint(0.1.4);ob(v1) #
4
+ # Generated on 2024-11-13T23:34:52.832706 #
5
+ ######################################################################################################
6
6
 
7
7
  from __future__ import annotations
8
8
 
@@ -10,6 +10,7 @@ import typing
10
10
  if typing.TYPE_CHECKING:
11
11
  import typing
12
12
 
13
+
13
14
  class MulticoreException(Exception, metaclass=type):
14
15
  ...
15
16
 
@@ -1,34 +1,22 @@
1
- ##################################################################################
2
- # Auto-generated Metaflow stub file #
3
- # MF version: 2.12.27.1+obcheckpoint(0.1.2);ob(v1) #
4
- # Generated on 2024-11-13T19:05:29.345522 #
5
- ##################################################################################
1
+ ######################################################################################################
2
+ # Auto-generated Metaflow stub file #
3
+ # MF version: 2.12.30.1+obcheckpoint(0.1.4);ob(v1) #
4
+ # Generated on 2024-11-13T23:34:52.833933 #
5
+ ######################################################################################################
6
6
 
7
7
  from __future__ import annotations
8
8
 
9
+ import metaflow
9
10
  import typing
10
11
  if typing.TYPE_CHECKING:
11
- import typing
12
12
  import metaflow.parameters
13
13
  import metaflow._vendor.click.types
14
- import metaflow.exception
15
-
16
- class ParameterFieldFailed(metaflow.exception.MetaflowException, metaclass=type):
17
- def __init__(self, name, field):
18
- ...
19
- ...
20
-
21
- class ParameterFieldTypeMismatch(metaflow.exception.MetaflowException, metaclass=type):
22
- def __init__(self, msg):
23
- ...
24
- ...
14
+ import typing
25
15
 
26
- class MetaflowException(Exception, metaclass=type):
27
- def __init__(self, msg = "", lineno = None):
28
- ...
29
- def __str__(self):
30
- ...
31
- ...
16
+ from ._vendor import click as click
17
+ from .exception import ParameterFieldFailed as ParameterFieldFailed
18
+ from .exception import ParameterFieldTypeMismatch as ParameterFieldTypeMismatch
19
+ from .exception import MetaflowException as MetaflowException
32
20
 
33
21
  class ParameterContext(tuple, metaclass=type):
34
22
  """
@@ -184,3 +172,5 @@ class Parameter(object, metaclass=type):
184
172
  def add_custom_parameters(deploy_mode = False):
185
173
  ...
186
174
 
175
+ JSONType: JSONTypeClass
176
+