wandb 0.21.0__py3-none-win32.whl → 0.21.2__py3-none-win32.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 (153) hide show
  1. wandb/__init__.py +16 -14
  2. wandb/__init__.pyi +427 -450
  3. wandb/agents/pyagent.py +41 -12
  4. wandb/analytics/sentry.py +7 -2
  5. wandb/apis/importers/mlflow.py +1 -1
  6. wandb/apis/public/__init__.py +1 -1
  7. wandb/apis/public/api.py +525 -360
  8. wandb/apis/public/artifacts.py +207 -13
  9. wandb/apis/public/automations.py +19 -3
  10. wandb/apis/public/files.py +172 -33
  11. wandb/apis/public/history.py +67 -15
  12. wandb/apis/public/integrations.py +25 -2
  13. wandb/apis/public/jobs.py +90 -2
  14. wandb/apis/public/projects.py +130 -79
  15. wandb/apis/public/query_generator.py +11 -1
  16. wandb/apis/public/registries/_utils.py +14 -16
  17. wandb/apis/public/registries/registries_search.py +183 -304
  18. wandb/apis/public/reports.py +96 -15
  19. wandb/apis/public/runs.py +299 -105
  20. wandb/apis/public/sweeps.py +222 -22
  21. wandb/apis/public/teams.py +41 -4
  22. wandb/apis/public/users.py +45 -4
  23. wandb/automations/_generated/delete_automation.py +1 -3
  24. wandb/automations/_generated/enums.py +13 -11
  25. wandb/beta/workflows.py +66 -30
  26. wandb/bin/gpu_stats.exe +0 -0
  27. wandb/bin/wandb-core +0 -0
  28. wandb/cli/cli.py +127 -3
  29. wandb/env.py +8 -0
  30. wandb/errors/errors.py +4 -1
  31. wandb/integration/lightning/fabric/logger.py +3 -4
  32. wandb/integration/metaflow/__init__.py +6 -0
  33. wandb/integration/metaflow/data_pandas.py +74 -0
  34. wandb/integration/metaflow/data_pytorch.py +75 -0
  35. wandb/integration/metaflow/data_sklearn.py +76 -0
  36. wandb/integration/metaflow/errors.py +13 -0
  37. wandb/integration/metaflow/metaflow.py +167 -223
  38. wandb/integration/openai/fine_tuning.py +1 -2
  39. wandb/integration/weave/__init__.py +6 -0
  40. wandb/integration/weave/interface.py +49 -0
  41. wandb/integration/weave/weave.py +63 -0
  42. wandb/jupyter.py +5 -5
  43. wandb/plot/custom_chart.py +30 -7
  44. wandb/proto/v3/wandb_internal_pb2.py +281 -280
  45. wandb/proto/v3/wandb_telemetry_pb2.py +4 -4
  46. wandb/proto/v4/wandb_internal_pb2.py +280 -280
  47. wandb/proto/v4/wandb_telemetry_pb2.py +4 -4
  48. wandb/proto/v5/wandb_internal_pb2.py +280 -280
  49. wandb/proto/v5/wandb_telemetry_pb2.py +4 -4
  50. wandb/proto/v6/wandb_internal_pb2.py +280 -280
  51. wandb/proto/v6/wandb_telemetry_pb2.py +4 -4
  52. wandb/proto/wandb_deprecated.py +6 -0
  53. wandb/sdk/artifacts/_factories.py +17 -0
  54. wandb/sdk/artifacts/_generated/__init__.py +221 -13
  55. wandb/sdk/artifacts/_generated/artifact_by_id.py +17 -0
  56. wandb/sdk/artifacts/_generated/artifact_by_name.py +22 -0
  57. wandb/sdk/artifacts/_generated/artifact_collection_membership_file_urls.py +43 -0
  58. wandb/sdk/artifacts/_generated/artifact_created_by.py +47 -0
  59. wandb/sdk/artifacts/_generated/artifact_file_urls.py +22 -0
  60. wandb/sdk/artifacts/_generated/artifact_type.py +31 -0
  61. wandb/sdk/artifacts/_generated/artifact_used_by.py +43 -0
  62. wandb/sdk/artifacts/_generated/artifact_via_membership_by_name.py +26 -0
  63. wandb/sdk/artifacts/_generated/delete_artifact.py +28 -0
  64. wandb/sdk/artifacts/_generated/enums.py +5 -0
  65. wandb/sdk/artifacts/_generated/fetch_artifact_manifest.py +38 -0
  66. wandb/sdk/artifacts/_generated/fetch_registries.py +32 -0
  67. wandb/sdk/artifacts/_generated/fragments.py +279 -41
  68. wandb/sdk/artifacts/_generated/link_artifact.py +6 -0
  69. wandb/sdk/artifacts/_generated/operations.py +654 -51
  70. wandb/sdk/artifacts/_generated/registry_collections.py +34 -0
  71. wandb/sdk/artifacts/_generated/registry_versions.py +34 -0
  72. wandb/sdk/artifacts/_generated/unlink_artifact.py +25 -0
  73. wandb/sdk/artifacts/_graphql_fragments.py +3 -86
  74. wandb/sdk/artifacts/_internal_artifact.py +19 -8
  75. wandb/sdk/artifacts/_validators.py +14 -4
  76. wandb/sdk/artifacts/artifact.py +512 -618
  77. wandb/sdk/artifacts/artifact_file_cache.py +10 -6
  78. wandb/sdk/artifacts/artifact_manifest.py +10 -9
  79. wandb/sdk/artifacts/artifact_manifest_entry.py +9 -10
  80. wandb/sdk/artifacts/artifact_manifests/artifact_manifest_v1.py +5 -3
  81. wandb/sdk/artifacts/storage_handlers/http_handler.py +1 -1
  82. wandb/sdk/artifacts/storage_handlers/s3_handler.py +1 -1
  83. wandb/sdk/artifacts/storage_policies/wandb_storage_policy.py +1 -1
  84. wandb/sdk/data_types/audio.py +38 -10
  85. wandb/sdk/data_types/base_types/media.py +6 -56
  86. wandb/sdk/data_types/graph.py +48 -14
  87. wandb/sdk/data_types/helper_types/bounding_boxes_2d.py +1 -3
  88. wandb/sdk/data_types/helper_types/image_mask.py +1 -3
  89. wandb/sdk/data_types/histogram.py +34 -21
  90. wandb/sdk/data_types/html.py +35 -12
  91. wandb/sdk/data_types/image.py +104 -68
  92. wandb/sdk/data_types/molecule.py +32 -19
  93. wandb/sdk/data_types/object_3d.py +36 -17
  94. wandb/sdk/data_types/plotly.py +18 -5
  95. wandb/sdk/data_types/saved_model.py +4 -6
  96. wandb/sdk/data_types/table.py +59 -30
  97. wandb/sdk/data_types/video.py +53 -26
  98. wandb/sdk/integration_utils/auto_logging.py +2 -2
  99. wandb/sdk/interface/interface_queue.py +1 -4
  100. wandb/sdk/interface/interface_shared.py +26 -37
  101. wandb/sdk/interface/interface_sock.py +24 -14
  102. wandb/sdk/internal/internal_api.py +6 -0
  103. wandb/sdk/internal/job_builder.py +6 -0
  104. wandb/sdk/internal/settings_static.py +2 -3
  105. wandb/sdk/launch/agent/agent.py +8 -1
  106. wandb/sdk/launch/agent/run_queue_item_file_saver.py +2 -2
  107. wandb/sdk/launch/create_job.py +15 -2
  108. wandb/sdk/launch/inputs/internal.py +3 -4
  109. wandb/sdk/launch/inputs/schema.py +1 -0
  110. wandb/sdk/launch/runner/kubernetes_monitor.py +1 -0
  111. wandb/sdk/launch/runner/kubernetes_runner.py +323 -1
  112. wandb/sdk/launch/sweeps/scheduler.py +2 -3
  113. wandb/sdk/lib/asyncio_compat.py +19 -16
  114. wandb/sdk/lib/asyncio_manager.py +252 -0
  115. wandb/sdk/lib/deprecate.py +1 -7
  116. wandb/sdk/lib/disabled.py +1 -1
  117. wandb/sdk/lib/hashutil.py +27 -5
  118. wandb/sdk/lib/module.py +7 -13
  119. wandb/sdk/lib/printer.py +2 -2
  120. wandb/sdk/lib/printer_asyncio.py +3 -1
  121. wandb/sdk/lib/progress.py +0 -19
  122. wandb/sdk/lib/retry.py +185 -78
  123. wandb/sdk/lib/service/service_client.py +106 -0
  124. wandb/sdk/lib/service/service_connection.py +20 -26
  125. wandb/sdk/lib/service/service_token.py +30 -13
  126. wandb/sdk/mailbox/mailbox.py +13 -5
  127. wandb/sdk/mailbox/mailbox_handle.py +22 -13
  128. wandb/sdk/mailbox/response_handle.py +42 -106
  129. wandb/sdk/mailbox/wait_with_progress.py +7 -42
  130. wandb/sdk/wandb_init.py +77 -116
  131. wandb/sdk/wandb_login.py +19 -15
  132. wandb/sdk/wandb_metric.py +2 -0
  133. wandb/sdk/wandb_run.py +497 -469
  134. wandb/sdk/wandb_settings.py +145 -4
  135. wandb/sdk/wandb_setup.py +204 -124
  136. wandb/sdk/wandb_sweep.py +14 -13
  137. wandb/sdk/wandb_watch.py +4 -6
  138. wandb/sync/sync.py +10 -0
  139. wandb/util.py +58 -1
  140. wandb/wandb_run.py +1 -2
  141. {wandb-0.21.0.dist-info → wandb-0.21.2.dist-info}/METADATA +1 -1
  142. {wandb-0.21.0.dist-info → wandb-0.21.2.dist-info}/RECORD +145 -129
  143. wandb/sdk/interface/interface_relay.py +0 -38
  144. wandb/sdk/interface/router.py +0 -89
  145. wandb/sdk/interface/router_queue.py +0 -43
  146. wandb/sdk/interface/router_relay.py +0 -50
  147. wandb/sdk/interface/router_sock.py +0 -32
  148. wandb/sdk/lib/sock_client.py +0 -236
  149. wandb/vendor/pynvml/__init__.py +0 -0
  150. wandb/vendor/pynvml/pynvml.py +0 -4779
  151. {wandb-0.21.0.dist-info → wandb-0.21.2.dist-info}/WHEEL +0 -0
  152. {wandb-0.21.0.dist-info → wandb-0.21.2.dist-info}/entry_points.txt +0 -0
  153. {wandb-0.21.0.dist-info → wandb-0.21.2.dist-info}/licenses/LICENSE +0 -0
@@ -0,0 +1,43 @@
1
+ # Generated by ariadne-codegen
2
+ # Source: tools/graphql_codegen/artifacts/
3
+
4
+ from __future__ import annotations
5
+
6
+ from typing import List, Optional
7
+
8
+ from pydantic import Field
9
+
10
+ from wandb._pydantic import GQLBase
11
+
12
+
13
+ class ArtifactUsedBy(GQLBase):
14
+ artifact: Optional[ArtifactUsedByArtifact]
15
+
16
+
17
+ class ArtifactUsedByArtifact(GQLBase):
18
+ used_by: ArtifactUsedByArtifactUsedBy = Field(alias="usedBy")
19
+
20
+
21
+ class ArtifactUsedByArtifactUsedBy(GQLBase):
22
+ edges: List[ArtifactUsedByArtifactUsedByEdges]
23
+
24
+
25
+ class ArtifactUsedByArtifactUsedByEdges(GQLBase):
26
+ node: ArtifactUsedByArtifactUsedByEdgesNode
27
+
28
+
29
+ class ArtifactUsedByArtifactUsedByEdgesNode(GQLBase):
30
+ name: str
31
+ project: Optional[ArtifactUsedByArtifactUsedByEdgesNodeProject]
32
+
33
+
34
+ class ArtifactUsedByArtifactUsedByEdgesNodeProject(GQLBase):
35
+ name: str
36
+ entity_name: str = Field(alias="entityName")
37
+
38
+
39
+ ArtifactUsedBy.model_rebuild()
40
+ ArtifactUsedByArtifact.model_rebuild()
41
+ ArtifactUsedByArtifactUsedBy.model_rebuild()
42
+ ArtifactUsedByArtifactUsedByEdges.model_rebuild()
43
+ ArtifactUsedByArtifactUsedByEdgesNode.model_rebuild()
@@ -0,0 +1,26 @@
1
+ # Generated by ariadne-codegen
2
+ # Source: tools/graphql_codegen/artifacts/
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 MembershipWithArtifact
13
+
14
+
15
+ class ArtifactViaMembershipByName(GQLBase):
16
+ project: Optional[ArtifactViaMembershipByNameProject]
17
+
18
+
19
+ class ArtifactViaMembershipByNameProject(GQLBase):
20
+ artifact_collection_membership: Optional[MembershipWithArtifact] = Field(
21
+ alias="artifactCollectionMembership"
22
+ )
23
+
24
+
25
+ ArtifactViaMembershipByName.model_rebuild()
26
+ ArtifactViaMembershipByNameProject.model_rebuild()
@@ -0,0 +1,28 @@
1
+ # Generated by ariadne-codegen
2
+ # Source: tools/graphql_codegen/artifacts/
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
+
13
+ class DeleteArtifact(GQLBase):
14
+ delete_artifact: Optional[DeleteArtifactDeleteArtifact] = Field(
15
+ alias="deleteArtifact"
16
+ )
17
+
18
+
19
+ class DeleteArtifactDeleteArtifact(GQLBase):
20
+ artifact: DeleteArtifactDeleteArtifactArtifact
21
+
22
+
23
+ class DeleteArtifactDeleteArtifactArtifact(GQLBase):
24
+ id: GQLId
25
+
26
+
27
+ DeleteArtifact.model_rebuild()
28
+ DeleteArtifactDeleteArtifact.model_rebuild()
@@ -6,6 +6,11 @@ from __future__ import annotations
6
6
  from enum import Enum
7
7
 
8
8
 
9
+ class ArtifactCollectionType(str, Enum):
10
+ SEQUENCE = "SEQUENCE"
11
+ PORTFOLIO = "PORTFOLIO"
12
+
13
+
9
14
  class ArtifactState(str, Enum):
10
15
  PENDING = "PENDING"
11
16
  COMMITTED = "COMMITTED"
@@ -0,0 +1,38 @@
1
+ # Generated by ariadne-codegen
2
+ # Source: tools/graphql_codegen/artifacts/
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
+
13
+ class FetchArtifactManifest(GQLBase):
14
+ project: Optional[FetchArtifactManifestProject]
15
+
16
+
17
+ class FetchArtifactManifestProject(GQLBase):
18
+ artifact: Optional[FetchArtifactManifestProjectArtifact]
19
+
20
+
21
+ class FetchArtifactManifestProjectArtifact(GQLBase):
22
+ current_manifest: Optional[FetchArtifactManifestProjectArtifactCurrentManifest] = (
23
+ Field(alias="currentManifest")
24
+ )
25
+
26
+
27
+ class FetchArtifactManifestProjectArtifactCurrentManifest(GQLBase):
28
+ file: FetchArtifactManifestProjectArtifactCurrentManifestFile
29
+
30
+
31
+ class FetchArtifactManifestProjectArtifactCurrentManifestFile(GQLBase):
32
+ direct_url: str = Field(alias="directUrl")
33
+
34
+
35
+ FetchArtifactManifest.model_rebuild()
36
+ FetchArtifactManifestProject.model_rebuild()
37
+ FetchArtifactManifestProjectArtifact.model_rebuild()
38
+ FetchArtifactManifestProjectArtifactCurrentManifest.model_rebuild()
@@ -0,0 +1,32 @@
1
+ # Generated by ariadne-codegen
2
+ # Source: tools/graphql_codegen/artifacts/
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 RegistriesPage
13
+
14
+
15
+ class FetchRegistries(GQLBase):
16
+ organization: Optional[FetchRegistriesOrganization]
17
+
18
+
19
+ class FetchRegistriesOrganization(GQLBase):
20
+ org_entity: Optional[FetchRegistriesOrganizationOrgEntity] = Field(
21
+ alias="orgEntity"
22
+ )
23
+
24
+
25
+ class FetchRegistriesOrganizationOrgEntity(GQLBase):
26
+ name: str
27
+ projects: Optional[RegistriesPage]
28
+
29
+
30
+ FetchRegistries.model_rebuild()
31
+ FetchRegistriesOrganization.model_rebuild()
32
+ FetchRegistriesOrganizationOrgEntity.model_rebuild()
@@ -38,32 +38,6 @@ class ArtifactCollectionsFragmentPageInfo(GQLBase):
38
38
  has_next_page: bool = Field(alias="hasNextPage")
39
39
 
40
40
 
41
- class ArtifactFragment(GQLBase):
42
- id: GQLId
43
- artifact_sequence: ArtifactFragmentArtifactSequence = Field(
44
- alias="artifactSequence"
45
- )
46
- version_index: Optional[int] = Field(alias="versionIndex")
47
- artifact_type: ArtifactFragmentArtifactType = Field(alias="artifactType")
48
- description: Optional[str]
49
- metadata: Optional[Any]
50
- ttl_duration_seconds: Optional[Any] = Field(
51
- alias="ttlDurationSeconds", default=None
52
- )
53
- ttl_is_inherited: Optional[bool] = Field(alias="ttlIsInherited", default=None)
54
- aliases: Optional[List[ArtifactFragmentAliases]] = None
55
- tags: Optional[List[ArtifactFragmentTags]] = None
56
- history_step: Optional[Any] = Field(alias="historyStep", default=None)
57
- state: ArtifactState
58
- current_manifest: Optional[ArtifactFragmentCurrentManifest] = Field(
59
- alias="currentManifest"
60
- )
61
- commit_hash: Optional[str] = Field(alias="commitHash")
62
- file_count: Any = Field(alias="fileCount")
63
- created_at: str = Field(alias="createdAt")
64
- updated_at: Optional[str] = Field(alias="updatedAt")
65
-
66
-
67
41
  class ArtifactFragmentAliases(GQLBase):
68
42
  artifact_collection: Optional[ArtifactFragmentAliasesArtifactCollection] = Field(
69
43
  alias="artifactCollection"
@@ -84,29 +58,56 @@ class ArtifactFragmentAliasesArtifactCollectionProject(GQLBase):
84
58
  name: str
85
59
 
86
60
 
87
- class ArtifactFragmentArtifactSequence(GQLBase):
88
- project: Optional[ArtifactFragmentArtifactSequenceProject]
61
+ class ArtifactFragmentWithoutAliases(GQLBase):
62
+ id: GQLId
63
+ artifact_sequence: ArtifactFragmentWithoutAliasesArtifactSequence = Field(
64
+ alias="artifactSequence"
65
+ )
66
+ version_index: Optional[int] = Field(alias="versionIndex")
67
+ artifact_type: ArtifactFragmentWithoutAliasesArtifactType = Field(
68
+ alias="artifactType"
69
+ )
70
+ description: Optional[str]
71
+ metadata: Optional[Any]
72
+ ttl_duration_seconds: Optional[Any] = Field(
73
+ alias="ttlDurationSeconds", default=None
74
+ )
75
+ ttl_is_inherited: Optional[bool] = Field(alias="ttlIsInherited", default=None)
76
+ tags: Optional[List[ArtifactFragmentWithoutAliasesTags]] = None
77
+ history_step: Optional[Any] = Field(alias="historyStep", default=None)
78
+ state: ArtifactState
79
+ current_manifest: Optional[ArtifactFragmentWithoutAliasesCurrentManifest] = Field(
80
+ alias="currentManifest"
81
+ )
82
+ commit_hash: Optional[str] = Field(alias="commitHash")
83
+ file_count: Any = Field(alias="fileCount")
84
+ created_at: str = Field(alias="createdAt")
85
+ updated_at: Optional[str] = Field(alias="updatedAt")
86
+
87
+
88
+ class ArtifactFragmentWithoutAliasesArtifactSequence(GQLBase):
89
+ project: Optional[ArtifactFragmentWithoutAliasesArtifactSequenceProject]
89
90
  name: str
90
91
 
91
92
 
92
- class ArtifactFragmentArtifactSequenceProject(GQLBase):
93
+ class ArtifactFragmentWithoutAliasesArtifactSequenceProject(GQLBase):
93
94
  entity_name: str = Field(alias="entityName")
94
95
  name: str
95
96
 
96
97
 
97
- class ArtifactFragmentArtifactType(GQLBase):
98
+ class ArtifactFragmentWithoutAliasesArtifactType(GQLBase):
98
99
  name: str
99
100
 
100
101
 
101
- class ArtifactFragmentCurrentManifest(GQLBase):
102
- file: ArtifactFragmentCurrentManifestFile
102
+ class ArtifactFragmentWithoutAliasesCurrentManifest(GQLBase):
103
+ file: ArtifactFragmentWithoutAliasesCurrentManifestFile
103
104
 
104
105
 
105
- class ArtifactFragmentCurrentManifestFile(GQLBase):
106
+ class ArtifactFragmentWithoutAliasesCurrentManifestFile(GQLBase):
106
107
  direct_url: str = Field(alias="directUrl")
107
108
 
108
109
 
109
- class ArtifactFragmentTags(GQLBase):
110
+ class ArtifactFragmentWithoutAliasesTags(GQLBase):
110
111
  name: str
111
112
 
112
113
 
@@ -162,6 +163,25 @@ class ArtifactsFragmentPageInfo(GQLBase):
162
163
  has_next_page: bool = Field(alias="hasNextPage")
163
164
 
164
165
 
166
+ class FileUrlsFragment(GQLBase):
167
+ page_info: FileUrlsFragmentPageInfo = Field(alias="pageInfo")
168
+ edges: List[FileUrlsFragmentEdges]
169
+
170
+
171
+ class FileUrlsFragmentEdges(GQLBase):
172
+ node: Optional[FileUrlsFragmentEdgesNode]
173
+
174
+
175
+ class FileUrlsFragmentEdgesNode(GQLBase):
176
+ name: str
177
+ direct_url: str = Field(alias="directUrl")
178
+
179
+
180
+ class FileUrlsFragmentPageInfo(GQLBase):
181
+ has_next_page: bool = Field(alias="hasNextPage")
182
+ end_cursor: Optional[str] = Field(alias="endCursor")
183
+
184
+
165
185
  class FilesFragment(GQLBase):
166
186
  edges: List[FilesFragmentEdges]
167
187
  page_info: FilesFragmentPageInfo = Field(alias="pageInfo")
@@ -190,20 +210,199 @@ class FilesFragmentPageInfo(GQLBase):
190
210
  has_next_page: bool = Field(alias="hasNextPage")
191
211
 
192
212
 
213
+ class MembershipWithArtifact(GQLBase):
214
+ id: GQLId
215
+ artifact_collection: Optional[MembershipWithArtifactArtifactCollection] = Field(
216
+ alias="artifactCollection"
217
+ )
218
+ artifact: Optional[ArtifactFragment]
219
+
220
+
221
+ class MembershipWithArtifactArtifactCollection(GQLBase):
222
+ typename__: Typename[
223
+ Literal["ArtifactCollection", "ArtifactPortfolio", "ArtifactSequence"]
224
+ ]
225
+ id: GQLId
226
+ name: str
227
+ project: Optional[MembershipWithArtifactArtifactCollectionProject]
228
+
229
+
230
+ class MembershipWithArtifactArtifactCollectionProject(GQLBase):
231
+ id: GQLId
232
+ entity_name: str = Field(alias="entityName")
233
+ name: str
234
+
235
+
236
+ class RegistriesPage(GQLBase):
237
+ page_info: RegistriesPagePageInfo = Field(alias="pageInfo")
238
+ edges: List[RegistriesPageEdges]
239
+
240
+
241
+ class RegistriesPageEdges(GQLBase):
242
+ node: Optional[RegistryFragment]
243
+
244
+
245
+ class RegistriesPagePageInfo(GQLBase):
246
+ end_cursor: Optional[str] = Field(alias="endCursor")
247
+ has_next_page: bool = Field(alias="hasNextPage")
248
+
249
+
250
+ class RegistryCollectionsPage(GQLBase):
251
+ total_count: int = Field(alias="totalCount")
252
+ page_info: RegistryCollectionsPagePageInfo = Field(alias="pageInfo")
253
+ edges: List[RegistryCollectionsPageEdges]
254
+
255
+
256
+ class RegistryCollectionsPageEdges(GQLBase):
257
+ cursor: str
258
+ node: Optional[RegistryCollectionsPageEdgesNode]
259
+
260
+
261
+ class RegistryCollectionsPageEdgesNode(GQLBase):
262
+ typename__: Typename[
263
+ Literal["ArtifactCollection", "ArtifactPortfolio", "ArtifactSequence"]
264
+ ]
265
+ id: GQLId
266
+ name: str
267
+ description: Optional[str]
268
+ created_at: str = Field(alias="createdAt")
269
+ tags: RegistryCollectionsPageEdgesNodeTags
270
+ project: Optional[RegistryCollectionsPageEdgesNodeProject]
271
+ default_artifact_type: RegistryCollectionsPageEdgesNodeDefaultArtifactType = Field(
272
+ alias="defaultArtifactType"
273
+ )
274
+ aliases: RegistryCollectionsPageEdgesNodeAliases
275
+
276
+
277
+ class RegistryCollectionsPageEdgesNodeAliases(GQLBase):
278
+ edges: List[RegistryCollectionsPageEdgesNodeAliasesEdges]
279
+
280
+
281
+ class RegistryCollectionsPageEdgesNodeAliasesEdges(GQLBase):
282
+ node: Optional[RegistryCollectionsPageEdgesNodeAliasesEdgesNode]
283
+
284
+
285
+ class RegistryCollectionsPageEdgesNodeAliasesEdgesNode(GQLBase):
286
+ alias: str
287
+
288
+
289
+ class RegistryCollectionsPageEdgesNodeDefaultArtifactType(GQLBase):
290
+ name: str
291
+
292
+
293
+ class RegistryCollectionsPageEdgesNodeProject(GQLBase):
294
+ name: str
295
+ entity: RegistryCollectionsPageEdgesNodeProjectEntity
296
+
297
+
298
+ class RegistryCollectionsPageEdgesNodeProjectEntity(GQLBase):
299
+ name: str
300
+
301
+
302
+ class RegistryCollectionsPageEdgesNodeTags(GQLBase):
303
+ edges: List[RegistryCollectionsPageEdgesNodeTagsEdges]
304
+
305
+
306
+ class RegistryCollectionsPageEdgesNodeTagsEdges(GQLBase):
307
+ node: RegistryCollectionsPageEdgesNodeTagsEdgesNode
308
+
309
+
310
+ class RegistryCollectionsPageEdgesNodeTagsEdgesNode(GQLBase):
311
+ name: str
312
+
313
+
314
+ class RegistryCollectionsPagePageInfo(GQLBase):
315
+ end_cursor: Optional[str] = Field(alias="endCursor")
316
+ has_next_page: bool = Field(alias="hasNextPage")
317
+
318
+
319
+ class RegistryFragment(GQLBase):
320
+ id: GQLId
321
+ allow_all_artifact_types_in_registry: bool = Field(
322
+ alias="allowAllArtifactTypesInRegistry"
323
+ )
324
+ artifact_types: RegistryFragmentArtifactTypes = Field(alias="artifactTypes")
325
+ name: str
326
+ description: Optional[str]
327
+ created_at: str = Field(alias="createdAt")
328
+ updated_at: Optional[str] = Field(alias="updatedAt")
329
+ access: Optional[str]
330
+
331
+
332
+ class RegistryFragmentArtifactTypes(GQLBase):
333
+ edges: List[RegistryFragmentArtifactTypesEdges]
334
+
335
+
336
+ class RegistryFragmentArtifactTypesEdges(GQLBase):
337
+ node: Optional[RegistryFragmentArtifactTypesEdgesNode]
338
+
339
+
340
+ class RegistryFragmentArtifactTypesEdgesNode(GQLBase):
341
+ name: str
342
+
343
+
344
+ class RegistryVersionsPage(GQLBase):
345
+ page_info: RegistryVersionsPagePageInfo = Field(alias="pageInfo")
346
+ edges: List[RegistryVersionsPageEdges]
347
+
348
+
349
+ class RegistryVersionsPageEdges(GQLBase):
350
+ node: Optional[RegistryVersionsPageEdgesNode]
351
+
352
+
353
+ class RegistryVersionsPageEdgesNode(GQLBase):
354
+ artifact_collection: Optional[RegistryVersionsPageEdgesNodeArtifactCollection] = (
355
+ Field(alias="artifactCollection")
356
+ )
357
+ version_index: Optional[int] = Field(alias="versionIndex")
358
+ artifact: Optional[ArtifactFragmentWithoutAliases]
359
+ aliases: List[RegistryVersionsPageEdgesNodeAliases]
360
+
361
+
362
+ class RegistryVersionsPageEdgesNodeAliases(GQLBase):
363
+ alias: str
364
+
365
+
366
+ class RegistryVersionsPageEdgesNodeArtifactCollection(GQLBase):
367
+ typename__: Typename[
368
+ Literal["ArtifactCollection", "ArtifactPortfolio", "ArtifactSequence"]
369
+ ]
370
+ project: Optional[RegistryVersionsPageEdgesNodeArtifactCollectionProject]
371
+ name: str
372
+
373
+
374
+ class RegistryVersionsPageEdgesNodeArtifactCollectionProject(GQLBase):
375
+ name: str
376
+ entity: RegistryVersionsPageEdgesNodeArtifactCollectionProjectEntity
377
+
378
+
379
+ class RegistryVersionsPageEdgesNodeArtifactCollectionProjectEntity(GQLBase):
380
+ name: str
381
+
382
+
383
+ class RegistryVersionsPagePageInfo(GQLBase):
384
+ end_cursor: Optional[str] = Field(alias="endCursor")
385
+ has_next_page: bool = Field(alias="hasNextPage")
386
+
387
+
388
+ class ArtifactFragment(ArtifactFragmentWithoutAliases):
389
+ aliases: Optional[List[ArtifactFragmentAliases]] = None
390
+
391
+
193
392
  ArtifactCollectionsFragment.model_rebuild()
194
393
  ArtifactCollectionsFragmentEdges.model_rebuild()
195
394
  ArtifactCollectionsFragmentEdgesNode.model_rebuild()
196
395
  ArtifactCollectionsFragmentPageInfo.model_rebuild()
197
- ArtifactFragment.model_rebuild()
198
396
  ArtifactFragmentAliases.model_rebuild()
199
397
  ArtifactFragmentAliasesArtifactCollection.model_rebuild()
200
398
  ArtifactFragmentAliasesArtifactCollectionProject.model_rebuild()
201
- ArtifactFragmentArtifactSequence.model_rebuild()
202
- ArtifactFragmentArtifactSequenceProject.model_rebuild()
203
- ArtifactFragmentArtifactType.model_rebuild()
204
- ArtifactFragmentCurrentManifest.model_rebuild()
205
- ArtifactFragmentCurrentManifestFile.model_rebuild()
206
- ArtifactFragmentTags.model_rebuild()
399
+ ArtifactFragmentWithoutAliases.model_rebuild()
400
+ ArtifactFragmentWithoutAliasesArtifactSequence.model_rebuild()
401
+ ArtifactFragmentWithoutAliasesArtifactSequenceProject.model_rebuild()
402
+ ArtifactFragmentWithoutAliasesArtifactType.model_rebuild()
403
+ ArtifactFragmentWithoutAliasesCurrentManifest.model_rebuild()
404
+ ArtifactFragmentWithoutAliasesCurrentManifestFile.model_rebuild()
405
+ ArtifactFragmentWithoutAliasesTags.model_rebuild()
207
406
  ArtifactPortfolioTypeFields.model_rebuild()
208
407
  ArtifactSequenceTypeFields.model_rebuild()
209
408
  ArtifactTypeFragment.model_rebuild()
@@ -213,9 +412,48 @@ ArtifactTypesFragmentPageInfo.model_rebuild()
213
412
  ArtifactsFragment.model_rebuild()
214
413
  ArtifactsFragmentEdges.model_rebuild()
215
414
  ArtifactsFragmentPageInfo.model_rebuild()
415
+ FileUrlsFragment.model_rebuild()
416
+ FileUrlsFragmentEdges.model_rebuild()
417
+ FileUrlsFragmentEdgesNode.model_rebuild()
418
+ FileUrlsFragmentPageInfo.model_rebuild()
216
419
  FilesFragment.model_rebuild()
217
420
  FilesFragmentEdges.model_rebuild()
218
421
  FilesFragmentEdgesNode.model_rebuild()
219
422
  FilesFragmentPageInfo.model_rebuild()
423
+ MembershipWithArtifact.model_rebuild()
424
+ MembershipWithArtifactArtifactCollection.model_rebuild()
425
+ MembershipWithArtifactArtifactCollectionProject.model_rebuild()
426
+ RegistriesPage.model_rebuild()
427
+ RegistriesPageEdges.model_rebuild()
428
+ RegistriesPagePageInfo.model_rebuild()
429
+ RegistryCollectionsPage.model_rebuild()
430
+ RegistryCollectionsPageEdges.model_rebuild()
431
+ RegistryCollectionsPageEdgesNode.model_rebuild()
432
+ RegistryCollectionsPageEdgesNodeAliases.model_rebuild()
433
+ RegistryCollectionsPageEdgesNodeAliasesEdges.model_rebuild()
434
+ RegistryCollectionsPageEdgesNodeAliasesEdgesNode.model_rebuild()
435
+ RegistryCollectionsPageEdgesNodeDefaultArtifactType.model_rebuild()
436
+ RegistryCollectionsPageEdgesNodeProject.model_rebuild()
437
+ RegistryCollectionsPageEdgesNodeProjectEntity.model_rebuild()
438
+ RegistryCollectionsPageEdgesNodeTags.model_rebuild()
439
+ RegistryCollectionsPageEdgesNodeTagsEdges.model_rebuild()
440
+ RegistryCollectionsPageEdgesNodeTagsEdgesNode.model_rebuild()
441
+ RegistryCollectionsPagePageInfo.model_rebuild()
442
+ RegistryFragment.model_rebuild()
443
+ RegistryFragmentArtifactTypes.model_rebuild()
444
+ RegistryFragmentArtifactTypesEdges.model_rebuild()
445
+ RegistryFragmentArtifactTypesEdgesNode.model_rebuild()
446
+ RegistryVersionsPage.model_rebuild()
447
+ RegistryVersionsPageEdges.model_rebuild()
448
+ RegistryVersionsPageEdgesNode.model_rebuild()
449
+ RegistryVersionsPageEdgesNodeAliases.model_rebuild()
450
+ RegistryVersionsPageEdgesNodeArtifactCollection.model_rebuild()
451
+ RegistryVersionsPageEdgesNodeArtifactCollectionProject.model_rebuild()
452
+ RegistryVersionsPageEdgesNodeArtifactCollectionProjectEntity.model_rebuild()
453
+ RegistryVersionsPagePageInfo.model_rebuild()
220
454
  ArtifactFragment.model_rebuild()
455
+ ArtifactFragmentWithoutAliases.model_rebuild()
221
456
  ArtifactTypeFragment.model_rebuild()
457
+ RegistryFragment.model_rebuild()
458
+ ArtifactFragment.model_rebuild()
459
+ ArtifactFragment.model_rebuild()
@@ -9,6 +9,8 @@ from pydantic import Field
9
9
 
10
10
  from wandb._pydantic import GQLBase
11
11
 
12
+ from .fragments import MembershipWithArtifact
13
+
12
14
 
13
15
  class LinkArtifact(GQLBase):
14
16
  link_artifact: Optional[LinkArtifactLinkArtifact] = Field(alias="linkArtifact")
@@ -16,6 +18,10 @@ class LinkArtifact(GQLBase):
16
18
 
17
19
  class LinkArtifactLinkArtifact(GQLBase):
18
20
  version_index: Optional[int] = Field(alias="versionIndex")
21
+ artifact_membership: Optional[MembershipWithArtifact] = Field(
22
+ alias="artifactMembership", default=None
23
+ )
19
24
 
20
25
 
21
26
  LinkArtifact.model_rebuild()
27
+ LinkArtifactLinkArtifact.model_rebuild()