wandb 0.19.8__py3-none-any.whl → 0.19.10__py3-none-any.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 +5 -1
- wandb/__init__.pyi +15 -8
- wandb/_pydantic/__init__.py +30 -0
- wandb/_pydantic/base.py +148 -0
- wandb/_pydantic/utils.py +66 -0
- wandb/_pydantic/v1_compat.py +284 -0
- wandb/apis/paginator.py +82 -38
- wandb/apis/public/__init__.py +2 -2
- wandb/apis/public/api.py +111 -53
- wandb/apis/public/artifacts.py +387 -639
- wandb/apis/public/automations.py +69 -0
- wandb/apis/public/files.py +2 -2
- wandb/apis/public/integrations.py +168 -0
- wandb/apis/public/projects.py +32 -2
- wandb/apis/public/reports.py +2 -2
- wandb/apis/public/runs.py +19 -11
- 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/cli/cli.py +3 -3
- wandb/integration/keras/keras.py +2 -1
- wandb/integration/langchain/wandb_tracer.py +2 -1
- wandb/integration/metaflow/metaflow.py +19 -17
- wandb/integration/sacred/__init__.py +1 -1
- wandb/jupyter.py +155 -133
- wandb/old/summary.py +0 -2
- wandb/proto/v3/wandb_internal_pb2.py +297 -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 +10 -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 -81
- wandb/sdk/artifacts/_validators.py +1 -0
- wandb/sdk/artifacts/artifact.py +110 -49
- wandb/sdk/artifacts/artifact_manifest_entry.py +2 -1
- wandb/sdk/artifacts/artifact_saver.py +16 -2
- wandb/sdk/artifacts/storage_handlers/azure_handler.py +1 -0
- wandb/sdk/artifacts/storage_policies/wandb_storage_policy.py +23 -2
- wandb/sdk/data_types/audio.py +1 -3
- wandb/sdk/data_types/base_types/media.py +13 -7
- 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 +56 -37
- wandb/sdk/data_types/molecule.py +1 -5
- wandb/sdk/data_types/object_3d.py +2 -1
- wandb/sdk/data_types/saved_model.py +7 -9
- 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 +15 -30
- wandb/sdk/interface/interface.py +2 -0
- wandb/{apis/public → sdk/internal}/_generated/__init__.py +0 -6
- wandb/{apis/public → sdk/internal}/_generated/server_features_query.py +3 -3
- wandb/sdk/internal/internal_api.py +138 -47
- wandb/sdk/internal/profiler.py +6 -5
- wandb/sdk/internal/run.py +13 -6
- wandb/sdk/internal/sender.py +2 -0
- wandb/sdk/internal/sender_config.py +8 -11
- wandb/sdk/internal/settings_static.py +24 -2
- wandb/sdk/lib/apikey.py +40 -20
- 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/lib/run_moment.py +4 -6
- wandb/sdk/lib/wb_logging.py +161 -0
- 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_config.py +44 -43
- wandb/sdk/wandb_init.py +323 -141
- wandb/sdk/wandb_login.py +13 -4
- wandb/sdk/wandb_metadata.py +107 -91
- wandb/sdk/wandb_run.py +529 -325
- wandb/sdk/wandb_settings.py +422 -202
- wandb/sdk/wandb_setup.py +52 -1
- wandb/util.py +29 -29
- {wandb-0.19.8.dist-info → wandb-0.19.10.dist-info}/METADATA +7 -7
- {wandb-0.19.8.dist-info → wandb-0.19.10.dist-info}/RECORD +150 -93
- wandb/_globals.py +0 -19
- wandb/apis/public/_generated/base.py +0 -128
- wandb/apis/public/_generated/typing_compat.py +0 -14
- /wandb/{apis/public → sdk/internal}/_generated/enums.py +0 -0
- /wandb/{apis/public → sdk/internal}/_generated/input_types.py +0 -0
- /wandb/{apis/public → sdk/internal}/_generated/operations.py +0 -0
- {wandb-0.19.8.dist-info → wandb-0.19.10.dist-info}/WHEEL +0 -0
- {wandb-0.19.8.dist-info → wandb-0.19.10.dist-info}/entry_points.txt +0 -0
- {wandb-0.19.8.dist-info → wandb-0.19.10.dist-info}/licenses/LICENSE +0 -0
@@ -0,0 +1,24 @@
|
|
1
|
+
# Generated by ariadne-codegen
|
2
|
+
# Source: tools/graphql_codegen/automations/
|
3
|
+
|
4
|
+
from __future__ import annotations
|
5
|
+
|
6
|
+
from typing import Optional
|
7
|
+
|
8
|
+
from pydantic import Field
|
9
|
+
|
10
|
+
from wandb._pydantic import GQLBase
|
11
|
+
|
12
|
+
from .fragments import ProjectConnectionFields
|
13
|
+
|
14
|
+
|
15
|
+
class GetTriggersByEntity(GQLBase):
|
16
|
+
search_scope: Optional[GetTriggersByEntitySearchScope] = Field(alias="searchScope")
|
17
|
+
|
18
|
+
|
19
|
+
class GetTriggersByEntitySearchScope(GQLBase):
|
20
|
+
projects: Optional[ProjectConnectionFields]
|
21
|
+
|
22
|
+
|
23
|
+
GetTriggersByEntity.model_rebuild()
|
24
|
+
GetTriggersByEntitySearchScope.model_rebuild()
|
@@ -0,0 +1,104 @@
|
|
1
|
+
# Generated by ariadne-codegen
|
2
|
+
# Source: core/api/graphql/schemas/schema-latest.graphql
|
3
|
+
|
4
|
+
from __future__ import annotations
|
5
|
+
|
6
|
+
from typing import Optional
|
7
|
+
|
8
|
+
from pydantic import Field
|
9
|
+
|
10
|
+
from wandb._pydantic import GQLBase, GQLId
|
11
|
+
|
12
|
+
from .enums import (
|
13
|
+
AlertSeverity,
|
14
|
+
EventTriggeringConditionType,
|
15
|
+
TriggeredActionType,
|
16
|
+
TriggerScopeType,
|
17
|
+
)
|
18
|
+
|
19
|
+
|
20
|
+
class CreateGenericWebhookIntegrationInput(GQLBase):
|
21
|
+
entity_name: str = Field(alias="entityName")
|
22
|
+
url_endpoint: str = Field(alias="urlEndpoint")
|
23
|
+
name: str
|
24
|
+
secret_ref: Optional[str] = Field(alias="secretRef", default=None)
|
25
|
+
access_token_ref: Optional[str] = Field(alias="accessTokenRef", default=None)
|
26
|
+
client_mutation_id: Optional[str] = Field(alias="clientMutationId", default=None)
|
27
|
+
|
28
|
+
|
29
|
+
class QueueJobActionInput(GQLBase):
|
30
|
+
queue_id: GQLId = Field(alias="queueID")
|
31
|
+
template: str
|
32
|
+
|
33
|
+
|
34
|
+
class NotificationActionInput(GQLBase):
|
35
|
+
integration_id: GQLId = Field(alias="integrationID")
|
36
|
+
title: Optional[str] = None
|
37
|
+
message: Optional[str] = None
|
38
|
+
severity: Optional[AlertSeverity] = None
|
39
|
+
|
40
|
+
|
41
|
+
class GenericWebhookActionInput(GQLBase):
|
42
|
+
integration_id: GQLId = Field(alias="integrationID")
|
43
|
+
request_payload: Optional[str] = Field(alias="requestPayload", default=None)
|
44
|
+
|
45
|
+
|
46
|
+
class NoOpTriggeredActionInput(GQLBase):
|
47
|
+
no_op: Optional[bool] = Field(alias="noOp", default=None)
|
48
|
+
|
49
|
+
|
50
|
+
class TriggeredActionConfig(GQLBase):
|
51
|
+
queue_job_action_input: Optional[QueueJobActionInput] = Field(
|
52
|
+
alias="queueJobActionInput", default=None
|
53
|
+
)
|
54
|
+
notification_action_input: Optional[NotificationActionInput] = Field(
|
55
|
+
alias="notificationActionInput", default=None
|
56
|
+
)
|
57
|
+
generic_webhook_action_input: Optional[GenericWebhookActionInput] = Field(
|
58
|
+
alias="genericWebhookActionInput", default=None
|
59
|
+
)
|
60
|
+
no_op_action_input: Optional[NoOpTriggeredActionInput] = Field(
|
61
|
+
alias="noOpActionInput", default=None
|
62
|
+
)
|
63
|
+
|
64
|
+
|
65
|
+
class CreateFilterTriggerInput(GQLBase):
|
66
|
+
name: str
|
67
|
+
description: Optional[str] = None
|
68
|
+
triggering_event_type: EventTriggeringConditionType = Field(
|
69
|
+
alias="triggeringEventType"
|
70
|
+
)
|
71
|
+
scope_type: TriggerScopeType = Field(alias="scopeType")
|
72
|
+
scope_id: GQLId = Field(alias="scopeID")
|
73
|
+
event_filter: str = Field(alias="eventFilter")
|
74
|
+
triggered_action_type: TriggeredActionType = Field(alias="triggeredActionType")
|
75
|
+
triggered_action_config: TriggeredActionConfig = Field(
|
76
|
+
alias="triggeredActionConfig"
|
77
|
+
)
|
78
|
+
enabled: bool
|
79
|
+
client_mutation_id: Optional[str] = Field(alias="clientMutationId", default=None)
|
80
|
+
|
81
|
+
|
82
|
+
class UpdateFilterTriggerInput(GQLBase):
|
83
|
+
id: GQLId
|
84
|
+
name: Optional[str] = None
|
85
|
+
description: Optional[str] = None
|
86
|
+
triggering_event_type: Optional[EventTriggeringConditionType] = Field(
|
87
|
+
alias="triggeringEventType", default=None
|
88
|
+
)
|
89
|
+
scope_type: Optional[TriggerScopeType] = Field(alias="scopeType", default=None)
|
90
|
+
scope_id: Optional[GQLId] = Field(alias="scopeID", default=None)
|
91
|
+
event_filter: Optional[str] = Field(alias="eventFilter", default=None)
|
92
|
+
triggered_action_type: Optional[TriggeredActionType] = Field(
|
93
|
+
alias="triggeredActionType", default=None
|
94
|
+
)
|
95
|
+
triggered_action_config: Optional[TriggeredActionConfig] = Field(
|
96
|
+
alias="triggeredActionConfig", default=None
|
97
|
+
)
|
98
|
+
enabled: Optional[bool] = None
|
99
|
+
client_mutation_id: Optional[str] = Field(alias="clientMutationId", default=None)
|
100
|
+
|
101
|
+
|
102
|
+
TriggeredActionConfig.model_rebuild()
|
103
|
+
CreateFilterTriggerInput.model_rebuild()
|
104
|
+
UpdateFilterTriggerInput.model_rebuild()
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# Generated by ariadne-codegen
|
2
|
+
# Source: tools/graphql_codegen/automations/
|
3
|
+
|
4
|
+
from __future__ import annotations
|
5
|
+
|
6
|
+
from typing import Optional
|
7
|
+
|
8
|
+
from wandb._pydantic import GQLBase
|
9
|
+
|
10
|
+
from .fragments import IntegrationConnectionFields
|
11
|
+
|
12
|
+
|
13
|
+
class IntegrationsByEntity(GQLBase):
|
14
|
+
entity: Optional[IntegrationsByEntityEntity]
|
15
|
+
|
16
|
+
|
17
|
+
class IntegrationsByEntityEntity(GQLBase):
|
18
|
+
integrations: Optional[IntegrationConnectionFields]
|
19
|
+
|
20
|
+
|
21
|
+
IntegrationsByEntity.model_rebuild()
|
22
|
+
IntegrationsByEntityEntity.model_rebuild()
|