wandb 0.19.9__py3-none-macosx_11_0_arm64.whl → 0.19.10__py3-none-macosx_11_0_arm64.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.
- wandb/__init__.py +1 -1
- wandb/__init__.pyi +4 -1
- wandb/_pydantic/__init__.py +14 -7
- wandb/_pydantic/base.py +44 -9
- wandb/_pydantic/utils.py +66 -0
- wandb/_pydantic/v1_compat.py +78 -56
- wandb/apis/public/__init__.py +2 -2
- wandb/apis/public/api.py +114 -2
- wandb/apis/public/artifacts.py +365 -673
- wandb/apis/public/automations.py +69 -0
- wandb/apis/public/integrations.py +168 -0
- wandb/apis/public/projects.py +29 -0
- wandb/apis/public/utils.py +107 -1
- wandb/automations/__init__.py +81 -0
- wandb/automations/_filters/__init__.py +40 -0
- wandb/automations/_filters/expressions.py +179 -0
- wandb/automations/_filters/operators.py +267 -0
- wandb/automations/_filters/run_metrics.py +183 -0
- wandb/automations/_generated/__init__.py +184 -0
- wandb/automations/_generated/create_filter_trigger.py +21 -0
- wandb/automations/_generated/create_generic_webhook_integration.py +43 -0
- wandb/automations/_generated/delete_trigger.py +19 -0
- wandb/automations/_generated/enums.py +33 -0
- wandb/automations/_generated/fragments.py +343 -0
- wandb/automations/_generated/generic_webhook_integrations_by_entity.py +22 -0
- wandb/automations/_generated/get_triggers.py +24 -0
- wandb/automations/_generated/get_triggers_by_entity.py +24 -0
- wandb/automations/_generated/input_types.py +104 -0
- wandb/automations/_generated/integrations_by_entity.py +22 -0
- wandb/automations/_generated/operations.py +710 -0
- wandb/automations/_generated/slack_integrations_by_entity.py +22 -0
- wandb/automations/_generated/update_filter_trigger.py +21 -0
- wandb/automations/_utils.py +123 -0
- wandb/automations/_validators.py +73 -0
- wandb/automations/actions.py +205 -0
- wandb/automations/automations.py +109 -0
- wandb/automations/events.py +235 -0
- wandb/automations/integrations.py +26 -0
- wandb/automations/scopes.py +76 -0
- wandb/beta/workflows.py +9 -10
- wandb/bin/gpu_stats +0 -0
- wandb/bin/wandb-core +0 -0
- wandb/cli/cli.py +3 -3
- wandb/integration/keras/keras.py +2 -1
- wandb/integration/langchain/wandb_tracer.py +2 -1
- wandb/jupyter.py +137 -118
- wandb/old/summary.py +0 -2
- wandb/proto/v3/wandb_internal_pb2.py +293 -292
- wandb/proto/v3/wandb_settings_pb2.py +2 -2
- wandb/proto/v3/wandb_telemetry_pb2.py +10 -10
- wandb/proto/v4/wandb_internal_pb2.py +292 -292
- wandb/proto/v4/wandb_settings_pb2.py +2 -2
- wandb/proto/v4/wandb_telemetry_pb2.py +10 -10
- wandb/proto/v5/wandb_internal_pb2.py +292 -292
- wandb/proto/v5/wandb_settings_pb2.py +2 -2
- wandb/proto/v5/wandb_telemetry_pb2.py +10 -10
- wandb/proto/v6/wandb_base_pb2.py +41 -0
- wandb/proto/v6/wandb_internal_pb2.py +393 -0
- wandb/proto/v6/wandb_server_pb2.py +78 -0
- wandb/proto/v6/wandb_settings_pb2.py +58 -0
- wandb/proto/v6/wandb_telemetry_pb2.py +52 -0
- wandb/proto/wandb_base_pb2.py +2 -0
- wandb/proto/wandb_deprecated.py +8 -0
- wandb/proto/wandb_internal_pb2.py +3 -1
- wandb/proto/wandb_server_pb2.py +2 -0
- wandb/proto/wandb_settings_pb2.py +2 -0
- wandb/proto/wandb_telemetry_pb2.py +2 -0
- wandb/sdk/artifacts/_generated/__init__.py +248 -0
- wandb/sdk/artifacts/_generated/artifact_collection_membership_files.py +43 -0
- wandb/sdk/artifacts/_generated/artifact_version_files.py +36 -0
- wandb/sdk/artifacts/_generated/create_artifact_collection_tag_assignments.py +36 -0
- wandb/sdk/artifacts/_generated/delete_artifact_collection_tag_assignments.py +25 -0
- wandb/sdk/artifacts/_generated/delete_artifact_portfolio.py +35 -0
- wandb/sdk/artifacts/_generated/delete_artifact_sequence.py +35 -0
- wandb/sdk/artifacts/_generated/enums.py +17 -0
- wandb/sdk/artifacts/_generated/fragments.py +186 -0
- wandb/sdk/artifacts/_generated/input_types.py +16 -0
- wandb/sdk/artifacts/_generated/move_artifact_collection.py +35 -0
- wandb/sdk/artifacts/_generated/operations.py +510 -0
- wandb/sdk/artifacts/_generated/project_artifact_collection.py +101 -0
- wandb/sdk/artifacts/_generated/project_artifact_collections.py +33 -0
- wandb/sdk/artifacts/_generated/project_artifact_type.py +24 -0
- wandb/sdk/artifacts/_generated/project_artifact_types.py +24 -0
- wandb/sdk/artifacts/_generated/project_artifacts.py +42 -0
- wandb/sdk/artifacts/_generated/run_input_artifacts.py +51 -0
- wandb/sdk/artifacts/_generated/run_output_artifacts.py +51 -0
- wandb/sdk/artifacts/_generated/update_artifact_portfolio.py +35 -0
- wandb/sdk/artifacts/_generated/update_artifact_sequence.py +35 -0
- wandb/sdk/artifacts/_graphql_fragments.py +56 -79
- wandb/sdk/artifacts/artifact.py +40 -13
- wandb/sdk/artifacts/artifact_manifest_entry.py +2 -1
- wandb/sdk/artifacts/storage_handlers/azure_handler.py +1 -0
- wandb/sdk/data_types/base_types/media.py +2 -3
- wandb/sdk/data_types/base_types/wb_value.py +34 -11
- wandb/sdk/data_types/html.py +36 -9
- wandb/sdk/data_types/image.py +12 -12
- wandb/sdk/data_types/table.py +5 -0
- wandb/sdk/data_types/trace_tree.py +2 -0
- wandb/sdk/data_types/utils.py +1 -1
- wandb/sdk/data_types/video.py +14 -26
- wandb/sdk/interface/interface.py +2 -0
- wandb/sdk/internal/profiler.py +6 -5
- wandb/sdk/internal/run.py +13 -6
- wandb/sdk/lib/apikey.py +25 -4
- wandb/sdk/lib/asyncio_compat.py +1 -1
- wandb/sdk/lib/deprecate.py +13 -22
- wandb/sdk/lib/disabled.py +2 -1
- wandb/sdk/lib/printer.py +37 -8
- wandb/sdk/lib/printer_asyncio.py +46 -0
- wandb/sdk/lib/redirect.py +10 -5
- wandb/sdk/service/server_sock.py +19 -14
- wandb/sdk/service/service.py +9 -7
- wandb/sdk/service/streams.py +5 -0
- wandb/sdk/verify/verify.py +6 -3
- wandb/sdk/wandb_init.py +185 -65
- wandb/sdk/wandb_login.py +13 -4
- wandb/sdk/wandb_run.py +382 -286
- wandb/sdk/wandb_settings.py +21 -3
- wandb/sdk/wandb_setup.py +49 -0
- wandb/util.py +29 -29
- {wandb-0.19.9.dist-info → wandb-0.19.10.dist-info}/METADATA +5 -5
- {wandb-0.19.9.dist-info → wandb-0.19.10.dist-info}/RECORD +125 -72
- wandb/_globals.py +0 -19
- wandb/sdk/internal/_generated/base.py +0 -226
- wandb/sdk/internal/_generated/typing_compat.py +0 -14
- {wandb-0.19.9.dist-info → wandb-0.19.10.dist-info}/WHEEL +0 -0
- {wandb-0.19.9.dist-info → wandb-0.19.10.dist-info}/entry_points.txt +0 -0
- {wandb-0.19.9.dist-info → wandb-0.19.10.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
|
File without changes
|
File without changes
|
File without changes
|