wandb 0.19.9__py3-none-musllinux_1_2_aarch64.whl → 0.19.11__py3-none-musllinux_1_2_aarch64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (156) hide show
  1. wandb/__init__.py +1 -1
  2. wandb/__init__.pyi +6 -3
  3. wandb/_pydantic/__init__.py +14 -8
  4. wandb/_pydantic/base.py +51 -36
  5. wandb/_pydantic/utils.py +73 -0
  6. wandb/_pydantic/v1_compat.py +79 -57
  7. wandb/apis/public/__init__.py +2 -2
  8. wandb/apis/public/api.py +684 -4
  9. wandb/apis/public/artifacts.py +377 -677
  10. wandb/apis/public/automations.py +69 -0
  11. wandb/apis/public/integrations.py +180 -0
  12. wandb/apis/public/projects.py +29 -0
  13. wandb/apis/public/registries/__init__.py +0 -0
  14. wandb/apis/public/registries/_freezable_list.py +179 -0
  15. wandb/apis/public/{registries.py → registries/registries_search.py} +22 -129
  16. wandb/apis/public/registries/registry.py +357 -0
  17. wandb/apis/public/registries/utils.py +140 -0
  18. wandb/apis/public/runs.py +58 -56
  19. wandb/apis/public/utils.py +107 -1
  20. wandb/automations/__init__.py +73 -0
  21. wandb/automations/_filters/__init__.py +40 -0
  22. wandb/automations/_filters/expressions.py +181 -0
  23. wandb/automations/_filters/operators.py +258 -0
  24. wandb/automations/_filters/run_metrics.py +332 -0
  25. wandb/automations/_generated/__init__.py +177 -0
  26. wandb/automations/_generated/create_automation.py +17 -0
  27. wandb/automations/_generated/create_generic_webhook_integration.py +43 -0
  28. wandb/automations/_generated/delete_automation.py +17 -0
  29. wandb/automations/_generated/enums.py +33 -0
  30. wandb/automations/_generated/fragments.py +358 -0
  31. wandb/automations/_generated/generic_webhook_integrations_by_entity.py +22 -0
  32. wandb/automations/_generated/get_automations.py +24 -0
  33. wandb/automations/_generated/get_automations_by_entity.py +26 -0
  34. wandb/automations/_generated/input_types.py +104 -0
  35. wandb/automations/_generated/integrations_by_entity.py +22 -0
  36. wandb/automations/_generated/operations.py +647 -0
  37. wandb/automations/_generated/slack_integrations_by_entity.py +22 -0
  38. wandb/automations/_generated/update_automation.py +17 -0
  39. wandb/automations/_utils.py +237 -0
  40. wandb/automations/_validators.py +165 -0
  41. wandb/automations/actions.py +220 -0
  42. wandb/automations/automations.py +87 -0
  43. wandb/automations/events.py +287 -0
  44. wandb/automations/integrations.py +45 -0
  45. wandb/automations/scopes.py +78 -0
  46. wandb/beta/workflows.py +9 -10
  47. wandb/bin/gpu_stats +0 -0
  48. wandb/bin/wandb-core +0 -0
  49. wandb/cli/cli.py +3 -3
  50. wandb/env.py +11 -0
  51. wandb/integration/keras/keras.py +2 -1
  52. wandb/integration/langchain/wandb_tracer.py +2 -1
  53. wandb/jupyter.py +137 -118
  54. wandb/old/settings.py +4 -1
  55. wandb/old/summary.py +0 -2
  56. wandb/proto/v3/wandb_internal_pb2.py +297 -292
  57. wandb/proto/v3/wandb_settings_pb2.py +2 -2
  58. wandb/proto/v3/wandb_telemetry_pb2.py +10 -10
  59. wandb/proto/v4/wandb_internal_pb2.py +292 -292
  60. wandb/proto/v4/wandb_settings_pb2.py +2 -2
  61. wandb/proto/v4/wandb_telemetry_pb2.py +10 -10
  62. wandb/proto/v5/wandb_internal_pb2.py +292 -292
  63. wandb/proto/v5/wandb_settings_pb2.py +2 -2
  64. wandb/proto/v5/wandb_telemetry_pb2.py +10 -10
  65. wandb/proto/v6/wandb_base_pb2.py +41 -0
  66. wandb/proto/v6/wandb_internal_pb2.py +393 -0
  67. wandb/proto/v6/wandb_server_pb2.py +78 -0
  68. wandb/proto/v6/wandb_settings_pb2.py +58 -0
  69. wandb/proto/v6/wandb_telemetry_pb2.py +52 -0
  70. wandb/proto/wandb_base_pb2.py +2 -0
  71. wandb/proto/wandb_deprecated.py +8 -0
  72. wandb/proto/wandb_internal_pb2.py +3 -1
  73. wandb/proto/wandb_server_pb2.py +2 -0
  74. wandb/proto/wandb_settings_pb2.py +2 -0
  75. wandb/proto/wandb_telemetry_pb2.py +2 -0
  76. wandb/sdk/artifacts/_generated/__init__.py +289 -0
  77. wandb/sdk/artifacts/_generated/add_aliases.py +21 -0
  78. wandb/sdk/artifacts/_generated/artifact_collection_membership_files.py +43 -0
  79. wandb/sdk/artifacts/_generated/artifact_version_files.py +36 -0
  80. wandb/sdk/artifacts/_generated/create_artifact_collection_tag_assignments.py +36 -0
  81. wandb/sdk/artifacts/_generated/delete_aliases.py +21 -0
  82. wandb/sdk/artifacts/_generated/delete_artifact_collection_tag_assignments.py +25 -0
  83. wandb/sdk/artifacts/_generated/delete_artifact_portfolio.py +35 -0
  84. wandb/sdk/artifacts/_generated/delete_artifact_sequence.py +35 -0
  85. wandb/sdk/artifacts/_generated/enums.py +17 -0
  86. wandb/sdk/artifacts/_generated/fetch_linked_artifacts.py +67 -0
  87. wandb/sdk/artifacts/_generated/fragments.py +221 -0
  88. wandb/sdk/artifacts/_generated/input_types.py +28 -0
  89. wandb/sdk/artifacts/_generated/move_artifact_collection.py +35 -0
  90. wandb/sdk/artifacts/_generated/operations.py +611 -0
  91. wandb/sdk/artifacts/_generated/project_artifact_collection.py +101 -0
  92. wandb/sdk/artifacts/_generated/project_artifact_collections.py +33 -0
  93. wandb/sdk/artifacts/_generated/project_artifact_type.py +24 -0
  94. wandb/sdk/artifacts/_generated/project_artifact_types.py +24 -0
  95. wandb/sdk/artifacts/_generated/project_artifacts.py +42 -0
  96. wandb/sdk/artifacts/_generated/run_input_artifacts.py +51 -0
  97. wandb/sdk/artifacts/_generated/run_output_artifacts.py +51 -0
  98. wandb/sdk/artifacts/_generated/update_artifact.py +26 -0
  99. wandb/sdk/artifacts/_generated/update_artifact_portfolio.py +35 -0
  100. wandb/sdk/artifacts/_generated/update_artifact_sequence.py +35 -0
  101. wandb/sdk/artifacts/_graphql_fragments.py +57 -79
  102. wandb/sdk/artifacts/_validators.py +120 -1
  103. wandb/sdk/artifacts/artifact.py +419 -215
  104. wandb/sdk/artifacts/artifact_file_cache.py +4 -6
  105. wandb/sdk/artifacts/artifact_manifest_entry.py +13 -3
  106. wandb/sdk/artifacts/storage_handlers/azure_handler.py +1 -0
  107. wandb/sdk/artifacts/storage_policies/wandb_storage_policy.py +182 -1
  108. wandb/sdk/artifacts/storage_policy.py +3 -0
  109. wandb/sdk/data_types/base_types/media.py +2 -3
  110. wandb/sdk/data_types/base_types/wb_value.py +34 -11
  111. wandb/sdk/data_types/html.py +36 -9
  112. wandb/sdk/data_types/image.py +12 -12
  113. wandb/sdk/data_types/table.py +5 -0
  114. wandb/sdk/data_types/trace_tree.py +2 -0
  115. wandb/sdk/data_types/utils.py +1 -1
  116. wandb/sdk/data_types/video.py +59 -57
  117. wandb/sdk/interface/interface.py +4 -3
  118. wandb/sdk/internal/internal_api.py +21 -31
  119. wandb/sdk/internal/profiler.py +6 -5
  120. wandb/sdk/internal/run.py +13 -6
  121. wandb/sdk/internal/sender.py +5 -2
  122. wandb/sdk/launch/sweeps/utils.py +8 -0
  123. wandb/sdk/lib/apikey.py +25 -4
  124. wandb/sdk/lib/asyncio_compat.py +1 -1
  125. wandb/sdk/lib/deprecate.py +13 -22
  126. wandb/sdk/lib/disabled.py +2 -1
  127. wandb/sdk/lib/printer.py +37 -8
  128. wandb/sdk/lib/printer_asyncio.py +46 -0
  129. wandb/sdk/lib/redirect.py +10 -5
  130. wandb/sdk/projects/_generated/__init__.py +47 -0
  131. wandb/sdk/projects/_generated/delete_project.py +22 -0
  132. wandb/sdk/projects/_generated/enums.py +4 -0
  133. wandb/sdk/projects/_generated/fetch_registry.py +22 -0
  134. wandb/sdk/projects/_generated/fragments.py +41 -0
  135. wandb/sdk/projects/_generated/input_types.py +13 -0
  136. wandb/sdk/projects/_generated/operations.py +88 -0
  137. wandb/sdk/projects/_generated/rename_project.py +27 -0
  138. wandb/sdk/projects/_generated/upsert_registry_project.py +27 -0
  139. wandb/sdk/service/server_sock.py +19 -14
  140. wandb/sdk/service/service.py +18 -8
  141. wandb/sdk/service/streams.py +5 -0
  142. wandb/sdk/verify/verify.py +6 -3
  143. wandb/sdk/wandb_init.py +217 -70
  144. wandb/sdk/wandb_login.py +13 -4
  145. wandb/sdk/wandb_run.py +419 -295
  146. wandb/sdk/wandb_settings.py +27 -10
  147. wandb/sdk/wandb_setup.py +61 -0
  148. wandb/util.py +33 -29
  149. {wandb-0.19.9.dist-info → wandb-0.19.11.dist-info}/METADATA +5 -5
  150. {wandb-0.19.9.dist-info → wandb-0.19.11.dist-info}/RECORD +153 -83
  151. wandb/_globals.py +0 -19
  152. wandb/sdk/internal/_generated/base.py +0 -226
  153. wandb/sdk/internal/_generated/typing_compat.py +0 -14
  154. {wandb-0.19.9.dist-info → wandb-0.19.11.dist-info}/WHEEL +0 -0
  155. {wandb-0.19.9.dist-info → wandb-0.19.11.dist-info}/entry_points.txt +0 -0
  156. {wandb-0.19.9.dist-info → wandb-0.19.11.dist-info}/licenses/LICENSE +0 -0
@@ -1,226 +0,0 @@
1
- # Generated by ariadne-codegen
2
-
3
- """This module defines base classes for generated types, including partial support for compatibility with Pydantic v1."""
4
-
5
- from __future__ import annotations
6
-
7
- from contextlib import suppress
8
- from importlib.metadata import version
9
- from typing import TYPE_CHECKING, Any, Literal, TypeVar
10
-
11
- import pydantic
12
- from pydantic import BaseModel, ConfigDict, Field
13
- from pydantic import main as pydantic_main
14
- from typing_extensions import Annotated, override
15
-
16
- if TYPE_CHECKING:
17
- from pydantic.main import IncEx
18
-
19
- pydantic_major_version, *_ = version(pydantic.__name__).split(".")
20
- IS_PYDANTIC_V2: bool = int(pydantic_major_version) >= 2
21
-
22
- # Maps {v2 -> v1} model config keys that were renamed in v2.
23
- # See: https://docs.pydantic.dev/latest/migration/#changes-to-config
24
- _V1_CONFIG_KEYS = {
25
- "populate_by_name": "allow_population_by_field_name",
26
- "str_to_lower": "anystr_lower",
27
- "str_strip_whitespace": "anystr_strip_whitespace",
28
- "str_to_upper": "anystr_upper",
29
- "ignored_types": "keep_untouched",
30
- "str_max_length": "max_anystr_length",
31
- "str_min_length": "min_anystr_length",
32
- "from_attributes": "orm_mode",
33
- "json_schema_extra": "schema_extra",
34
- "validate_default": "validate_all",
35
- }
36
-
37
-
38
- def _convert_v2_config(v2_config: dict[str, Any]) -> dict[str, Any]:
39
- """Return a copy of the v2 ConfigDict with renamed v1 keys."""
40
- return {_V1_CONFIG_KEYS.get(k, k): v for k, v in v2_config.items()}
41
-
42
-
43
- if IS_PYDANTIC_V2:
44
- PydanticModelMetaclass = type # placeholder
45
- else:
46
- PydanticModelMetaclass = pydantic_main.ModelMetaclass
47
-
48
-
49
- class _V1MixinMetaclass(PydanticModelMetaclass):
50
- def __new__(
51
- cls,
52
- name: str,
53
- bases: tuple[type, ...],
54
- namespace: dict[str, Any],
55
- **kwargs: Any,
56
- ):
57
- # Converts a model config in a v2 class definition, e.g.:
58
- #
59
- # class MyModel(BaseModel):
60
- # model_config = ConfigDict(populate_by_name=True)
61
- #
62
- # ...to a Config class in a v1 class definition, e.g.:
63
- #
64
- # class MyModel(BaseModel):
65
- # class Config:
66
- # populate_by_name = True
67
- #
68
- if config_dict := namespace.pop("model_config", None):
69
- namespace["Config"] = type("Config", (), _convert_v2_config(config_dict))
70
- return super().__new__(cls, name, bases, namespace, **kwargs)
71
-
72
-
73
- class PydanticV1Mixin(metaclass=_V1MixinMetaclass):
74
- @classmethod
75
- def __try_update_forward_refs__(cls, **localns: Any) -> None:
76
- with suppress(AttributeError):
77
- super().__try_update_forward_refs__(**localns)
78
-
79
- @classmethod
80
- def model_rebuild(cls, *args: Any, **kwargs: Any) -> None:
81
- return cls.update_forward_refs(*args, **kwargs)
82
-
83
- @classmethod
84
- def model_construct(cls, *args: Any, **kwargs: Any) -> Any:
85
- return cls.construct(*args, **kwargs)
86
-
87
- @classmethod
88
- def model_validate(cls, *args: Any, **kwargs: Any) -> Any:
89
- return cls.parse_obj(*args, **kwargs)
90
-
91
- @classmethod
92
- def model_validate_json(cls, *args: Any, **kwargs: Any) -> Any:
93
- return cls.parse_raw(*args, **kwargs)
94
-
95
- def model_dump(self, *args: Any, **kwargs: Any) -> Any:
96
- return self.dict(*args, **kwargs)
97
-
98
- def model_dump_json(self, *args: Any, **kwargs: Any) -> Any:
99
- return self.json(*args, **kwargs)
100
-
101
- def model_copy(self, *args: Any, **kwargs: Any) -> Any:
102
- return self.copy(*args, **kwargs)
103
-
104
-
105
- class PydanticV2Mixin:
106
- # Placeholder: Pydantic v2 is already compatible with itself, so no need for extra mixins.
107
- pass
108
-
109
-
110
- # Pick the mixin type based on the detected Pydantic version.
111
- PydanticCompatMixin = PydanticV2Mixin if IS_PYDANTIC_V2 else PydanticV1Mixin
112
-
113
-
114
- # Base class for all generated classes/types.
115
- # This is deliberately not a docstring to prevent inclusion in generated docs.
116
- class Base(BaseModel, PydanticCompatMixin):
117
- model_config = ConfigDict(
118
- populate_by_name=True,
119
- validate_assignment=True,
120
- validate_default=True,
121
- extra="forbid",
122
- use_attribute_docstrings=True,
123
- from_attributes=True,
124
- revalidate_instances="always",
125
- )
126
-
127
- @override
128
- def model_dump(
129
- self,
130
- *,
131
- mode: Literal["json", "python"] | str = "json", # NOTE: changed default
132
- include: IncEx | None = None,
133
- exclude: IncEx | None = None,
134
- context: dict[str, Any] | None = None,
135
- by_alias: bool = True, # NOTE: changed default
136
- exclude_unset: bool = False,
137
- exclude_defaults: bool = False,
138
- exclude_none: bool = False,
139
- round_trip: bool = True, # NOTE: changed default
140
- warnings: bool | Literal["none", "warn", "error"] = True,
141
- serialize_as_any: bool = False,
142
- ) -> dict[str, Any]:
143
- return super().model_dump(
144
- mode=mode,
145
- include=include,
146
- exclude=exclude,
147
- context=context,
148
- by_alias=by_alias,
149
- exclude_unset=exclude_unset,
150
- exclude_defaults=exclude_defaults,
151
- exclude_none=exclude_none,
152
- round_trip=round_trip,
153
- warnings=warnings,
154
- serialize_as_any=serialize_as_any,
155
- )
156
-
157
- @override
158
- def model_dump_json(
159
- self,
160
- *,
161
- indent: int | None = None,
162
- include: IncEx | None = None,
163
- exclude: IncEx | None = None,
164
- context: dict[str, Any] | None = None,
165
- by_alias: bool = True, # NOTE: changed default
166
- exclude_unset: bool = False,
167
- exclude_defaults: bool = False,
168
- exclude_none: bool = False,
169
- round_trip: bool = True, # NOTE: changed default
170
- warnings: bool | Literal["none", "warn", "error"] = True,
171
- serialize_as_any: bool = False,
172
- ) -> str:
173
- return super().model_dump_json(
174
- indent=indent,
175
- include=include,
176
- exclude=exclude,
177
- context=context,
178
- by_alias=by_alias,
179
- exclude_unset=exclude_unset,
180
- exclude_defaults=exclude_defaults,
181
- exclude_none=exclude_none,
182
- round_trip=round_trip,
183
- warnings=warnings,
184
- serialize_as_any=serialize_as_any,
185
- )
186
-
187
-
188
- # Base class with extra customization for GQL generated types.
189
- # This is deliberately not a docstring to prevent inclusion in generated docs.
190
- class GQLBase(Base):
191
- model_config = ConfigDict(
192
- extra="ignore",
193
- protected_namespaces=(),
194
- )
195
-
196
-
197
- # ------------------------------------------------------------------------------
198
- # Reusable annotations for field types
199
- T = TypeVar("T")
200
-
201
- GQLId = Annotated[
202
- str,
203
- Field(repr=False, strict=True, frozen=True),
204
- ]
205
-
206
- Typename = Annotated[
207
- T,
208
- Field(repr=False, alias="__typename", frozen=True),
209
- ]
210
-
211
-
212
- # FIXME: Restore or modify this after ensuring pydantic v1 compatibility.
213
- # def validate_maybe_json(v: Any, handler: ValidatorFunctionWrapHandler) -> Any:
214
- # """Wraps default Json[...] field validator to allow instantiation with an already-decoded value."""
215
- # try:
216
- # return handler(v)
217
- # except ValidationError:
218
- # # Try revalidating after properly jsonifying the value
219
- # return handler(to_json(v, by_alias=True, round_trip=True))
220
-
221
-
222
- # SerializedToJson = Annotated[
223
- # Json[T],
224
- # # Allow lenient instantiation/validation: incoming data may already be deserialized.
225
- # WrapValidator(validate_maybe_json),
226
- # ]
@@ -1,14 +0,0 @@
1
- # Generated by ariadne-codegen
2
-
3
- """Definitions to ensure compatibility with all supported python versions."""
4
-
5
- import sys
6
-
7
- if sys.version_info >= (3, 12):
8
- from typing import Annotated, override
9
- else:
10
- from typing_extensions import Annotated, override
11
-
12
-
13
- Annotated = Annotated
14
- override = override