wandb 0.19.9__py3-none-win32.whl → 0.19.11__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 (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.exe +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
@@ -0,0 +1,611 @@
1
+ # Generated by ariadne-codegen
2
+ # Source: tools/graphql_codegen/artifacts/
3
+
4
+ __all__ = [
5
+ "ADD_ALIASES_GQL",
6
+ "ARTIFACT_COLLECTION_MEMBERSHIP_FILES_GQL",
7
+ "ARTIFACT_VERSION_FILES_GQL",
8
+ "CREATE_ARTIFACT_COLLECTION_TAG_ASSIGNMENTS_GQL",
9
+ "DELETE_ALIASES_GQL",
10
+ "DELETE_ARTIFACT_COLLECTION_TAG_ASSIGNMENTS_GQL",
11
+ "DELETE_ARTIFACT_PORTFOLIO_GQL",
12
+ "DELETE_ARTIFACT_SEQUENCE_GQL",
13
+ "FETCH_LINKED_ARTIFACTS_GQL",
14
+ "MOVE_ARTIFACT_COLLECTION_GQL",
15
+ "PROJECT_ARTIFACTS_GQL",
16
+ "PROJECT_ARTIFACT_COLLECTIONS_GQL",
17
+ "PROJECT_ARTIFACT_COLLECTION_GQL",
18
+ "PROJECT_ARTIFACT_TYPES_GQL",
19
+ "PROJECT_ARTIFACT_TYPE_GQL",
20
+ "RUN_INPUT_ARTIFACTS_GQL",
21
+ "RUN_OUTPUT_ARTIFACTS_GQL",
22
+ "UPDATE_ARTIFACT_GQL",
23
+ "UPDATE_ARTIFACT_PORTFOLIO_GQL",
24
+ "UPDATE_ARTIFACT_SEQUENCE_GQL",
25
+ ]
26
+
27
+ DELETE_ARTIFACT_SEQUENCE_GQL = """
28
+ mutation DeleteArtifactSequence($id: ID!) {
29
+ deleteArtifactSequence(input: {artifactSequenceID: $id}) {
30
+ artifactCollection {
31
+ __typename
32
+ state
33
+ }
34
+ }
35
+ }
36
+ """
37
+
38
+ DELETE_ARTIFACT_PORTFOLIO_GQL = """
39
+ mutation DeleteArtifactPortfolio($id: ID!) {
40
+ deleteArtifactPortfolio(input: {artifactPortfolioID: $id}) {
41
+ artifactCollection {
42
+ __typename
43
+ state
44
+ }
45
+ }
46
+ }
47
+ """
48
+
49
+ UPDATE_ARTIFACT_SEQUENCE_GQL = """
50
+ mutation UpdateArtifactSequence($id: ID!, $name: String, $description: String) {
51
+ updateArtifactSequence(
52
+ input: {artifactSequenceID: $id, name: $name, description: $description}
53
+ ) {
54
+ artifactCollection {
55
+ __typename
56
+ id
57
+ name
58
+ description
59
+ }
60
+ }
61
+ }
62
+ """
63
+
64
+ UPDATE_ARTIFACT_PORTFOLIO_GQL = """
65
+ mutation UpdateArtifactPortfolio($id: ID!, $name: String, $description: String) {
66
+ updateArtifactPortfolio(
67
+ input: {artifactPortfolioID: $id, name: $name, description: $description}
68
+ ) {
69
+ artifactCollection {
70
+ __typename
71
+ id
72
+ name
73
+ description
74
+ }
75
+ }
76
+ }
77
+ """
78
+
79
+ MOVE_ARTIFACT_COLLECTION_GQL = """
80
+ mutation MoveArtifactCollection($artifactSequenceID: ID!, $destinationArtifactTypeName: String!) {
81
+ moveArtifactSequence(
82
+ input: {artifactSequenceID: $artifactSequenceID, destinationArtifactTypeName: $destinationArtifactTypeName}
83
+ ) {
84
+ artifactCollection {
85
+ __typename
86
+ id
87
+ name
88
+ description
89
+ }
90
+ }
91
+ }
92
+ """
93
+
94
+ CREATE_ARTIFACT_COLLECTION_TAG_ASSIGNMENTS_GQL = """
95
+ mutation CreateArtifactCollectionTagAssignments($entityName: String!, $projectName: String!, $artifactCollectionName: String!, $tags: [TagInput!]!) {
96
+ createArtifactCollectionTagAssignments(
97
+ input: {entityName: $entityName, projectName: $projectName, artifactCollectionName: $artifactCollectionName, tags: $tags}
98
+ ) {
99
+ tags {
100
+ id
101
+ name
102
+ tagCategoryName
103
+ }
104
+ }
105
+ }
106
+ """
107
+
108
+ DELETE_ARTIFACT_COLLECTION_TAG_ASSIGNMENTS_GQL = """
109
+ mutation DeleteArtifactCollectionTagAssignments($entityName: String!, $projectName: String!, $artifactCollectionName: String!, $tags: [TagInput!]!) {
110
+ deleteArtifactCollectionTagAssignments(
111
+ input: {entityName: $entityName, projectName: $projectName, artifactCollectionName: $artifactCollectionName, tags: $tags}
112
+ ) {
113
+ success
114
+ }
115
+ }
116
+ """
117
+
118
+ PROJECT_ARTIFACT_COLLECTIONS_GQL = """
119
+ query ProjectArtifactCollections($entityName: String!, $projectName: String!, $artifactTypeName: String!, $cursor: String) {
120
+ project(name: $projectName, entityName: $entityName) {
121
+ artifactType(name: $artifactTypeName) {
122
+ artifactCollections: artifactCollections(after: $cursor) {
123
+ ...ArtifactCollectionsFragment
124
+ }
125
+ }
126
+ }
127
+ }
128
+
129
+ fragment ArtifactCollectionsFragment on ArtifactCollectionConnection {
130
+ pageInfo {
131
+ endCursor
132
+ hasNextPage
133
+ }
134
+ totalCount
135
+ edges {
136
+ node {
137
+ __typename
138
+ id
139
+ name
140
+ description
141
+ createdAt
142
+ }
143
+ cursor
144
+ }
145
+ }
146
+ """
147
+
148
+ PROJECT_ARTIFACT_COLLECTION_GQL = """
149
+ query ProjectArtifactCollection($entityName: String!, $projectName: String!, $artifactTypeName: String!, $artifactCollectionName: String!, $cursor: String, $perPage: Int = 1000) {
150
+ project(name: $projectName, entityName: $entityName) {
151
+ artifactType(name: $artifactTypeName) {
152
+ artifactCollection: artifactCollection(name: $artifactCollectionName) {
153
+ __typename
154
+ id
155
+ name
156
+ description
157
+ createdAt
158
+ tags {
159
+ edges {
160
+ node {
161
+ id
162
+ name
163
+ }
164
+ }
165
+ }
166
+ aliases(after: $cursor, first: $perPage) {
167
+ edges {
168
+ node {
169
+ alias
170
+ }
171
+ cursor
172
+ }
173
+ pageInfo {
174
+ endCursor
175
+ hasNextPage
176
+ }
177
+ }
178
+ }
179
+ artifactSequence(name: $artifactCollectionName) {
180
+ __typename
181
+ }
182
+ }
183
+ }
184
+ }
185
+ """
186
+
187
+ ARTIFACT_VERSION_FILES_GQL = """
188
+ query ArtifactVersionFiles($entityName: String!, $projectName: String!, $artifactTypeName: String!, $artifactName: String!, $fileNames: [String!], $fileCursor: String, $fileLimit: Int = 50) {
189
+ project(name: $projectName, entityName: $entityName) {
190
+ artifactType(name: $artifactTypeName) {
191
+ artifact(name: $artifactName) {
192
+ files(names: $fileNames, after: $fileCursor, first: $fileLimit) {
193
+ ...FilesFragment
194
+ }
195
+ }
196
+ }
197
+ }
198
+ }
199
+
200
+ fragment FilesFragment on FileConnection {
201
+ edges {
202
+ node {
203
+ id
204
+ name: displayName
205
+ url
206
+ sizeBytes
207
+ storagePath @include(if: true)
208
+ mimetype
209
+ updatedAt
210
+ digest
211
+ md5
212
+ directUrl
213
+ }
214
+ cursor
215
+ }
216
+ pageInfo {
217
+ endCursor
218
+ hasNextPage
219
+ }
220
+ }
221
+ """
222
+
223
+ ARTIFACT_COLLECTION_MEMBERSHIP_FILES_GQL = """
224
+ query ArtifactCollectionMembershipFiles($entityName: String!, $projectName: String!, $artifactName: String!, $artifactVersionIndex: String!, $fileNames: [String!], $fileCursor: String, $fileLimit: Int = 50) {
225
+ project(name: $projectName, entityName: $entityName) {
226
+ artifactCollection(name: $artifactName) {
227
+ __typename
228
+ artifactMembership(aliasName: $artifactVersionIndex) {
229
+ files(names: $fileNames, after: $fileCursor, first: $fileLimit) {
230
+ ...FilesFragment
231
+ }
232
+ }
233
+ }
234
+ }
235
+ }
236
+
237
+ fragment FilesFragment on FileConnection {
238
+ edges {
239
+ node {
240
+ id
241
+ name: displayName
242
+ url
243
+ sizeBytes
244
+ storagePath @include(if: true)
245
+ mimetype
246
+ updatedAt
247
+ digest
248
+ md5
249
+ directUrl
250
+ }
251
+ cursor
252
+ }
253
+ pageInfo {
254
+ endCursor
255
+ hasNextPage
256
+ }
257
+ }
258
+ """
259
+
260
+ PROJECT_ARTIFACT_TYPES_GQL = """
261
+ query ProjectArtifactTypes($entityName: String!, $projectName: String!, $cursor: String) {
262
+ project(name: $projectName, entityName: $entityName) {
263
+ artifactTypes(after: $cursor) {
264
+ ...ArtifactTypesFragment
265
+ }
266
+ }
267
+ }
268
+
269
+ fragment ArtifactTypeFragment on ArtifactType {
270
+ __typename
271
+ id
272
+ name
273
+ description
274
+ createdAt
275
+ }
276
+
277
+ fragment ArtifactTypesFragment on ArtifactTypeConnection {
278
+ edges {
279
+ node {
280
+ ...ArtifactTypeFragment
281
+ }
282
+ cursor
283
+ }
284
+ pageInfo {
285
+ endCursor
286
+ hasNextPage
287
+ }
288
+ }
289
+ """
290
+
291
+ PROJECT_ARTIFACT_TYPE_GQL = """
292
+ query ProjectArtifactType($entityName: String!, $projectName: String!, $artifactTypeName: String!) {
293
+ project(name: $projectName, entityName: $entityName) {
294
+ artifactType(name: $artifactTypeName) {
295
+ ...ArtifactTypeFragment
296
+ }
297
+ }
298
+ }
299
+
300
+ fragment ArtifactTypeFragment on ArtifactType {
301
+ __typename
302
+ id
303
+ name
304
+ description
305
+ createdAt
306
+ }
307
+ """
308
+
309
+ PROJECT_ARTIFACTS_GQL = """
310
+ query ProjectArtifacts($project: String!, $entity: String!, $type: String!, $collection: String!, $cursor: String, $perPage: Int = 50, $order: String, $filters: JSONString) {
311
+ project(name: $project, entityName: $entity) {
312
+ artifactType(name: $type) {
313
+ artifactCollection: artifactCollection(name: $collection) {
314
+ __typename
315
+ name
316
+ artifacts(filters: $filters, after: $cursor, first: $perPage, order: $order) {
317
+ ...ArtifactsFragment
318
+ }
319
+ }
320
+ }
321
+ }
322
+ }
323
+
324
+ fragment ArtifactFragment on Artifact {
325
+ id
326
+ artifactSequence {
327
+ project {
328
+ entityName
329
+ name
330
+ }
331
+ name
332
+ }
333
+ versionIndex
334
+ artifactType {
335
+ name
336
+ }
337
+ description
338
+ metadata
339
+ ttlDurationSeconds @include(if: true)
340
+ ttlIsInherited @include(if: true)
341
+ aliases @include(if: true) {
342
+ artifactCollection {
343
+ __typename
344
+ project {
345
+ entityName
346
+ name
347
+ }
348
+ name
349
+ }
350
+ alias
351
+ }
352
+ tags @include(if: true) {
353
+ name
354
+ }
355
+ historyStep @include(if: true)
356
+ state
357
+ currentManifest {
358
+ file {
359
+ directUrl
360
+ }
361
+ }
362
+ commitHash
363
+ fileCount
364
+ createdAt
365
+ updatedAt
366
+ }
367
+
368
+ fragment ArtifactsFragment on VersionedArtifactConnection {
369
+ totalCount
370
+ edges {
371
+ node {
372
+ ...ArtifactFragment
373
+ }
374
+ version
375
+ cursor
376
+ }
377
+ pageInfo {
378
+ endCursor
379
+ hasNextPage
380
+ }
381
+ }
382
+ """
383
+
384
+ RUN_OUTPUT_ARTIFACTS_GQL = """
385
+ query RunOutputArtifacts($entity: String!, $project: String!, $runName: String!, $cursor: String, $perPage: Int) {
386
+ project(name: $project, entityName: $entity) {
387
+ run(name: $runName) {
388
+ outputArtifacts(after: $cursor, first: $perPage) {
389
+ totalCount
390
+ edges {
391
+ node {
392
+ ...ArtifactFragment
393
+ }
394
+ cursor
395
+ }
396
+ pageInfo {
397
+ endCursor
398
+ hasNextPage
399
+ }
400
+ }
401
+ }
402
+ }
403
+ }
404
+
405
+ fragment ArtifactFragment on Artifact {
406
+ id
407
+ artifactSequence {
408
+ project {
409
+ entityName
410
+ name
411
+ }
412
+ name
413
+ }
414
+ versionIndex
415
+ artifactType {
416
+ name
417
+ }
418
+ description
419
+ metadata
420
+ ttlDurationSeconds @include(if: true)
421
+ ttlIsInherited @include(if: true)
422
+ aliases @include(if: true) {
423
+ artifactCollection {
424
+ __typename
425
+ project {
426
+ entityName
427
+ name
428
+ }
429
+ name
430
+ }
431
+ alias
432
+ }
433
+ tags @include(if: true) {
434
+ name
435
+ }
436
+ historyStep @include(if: true)
437
+ state
438
+ currentManifest {
439
+ file {
440
+ directUrl
441
+ }
442
+ }
443
+ commitHash
444
+ fileCount
445
+ createdAt
446
+ updatedAt
447
+ }
448
+ """
449
+
450
+ RUN_INPUT_ARTIFACTS_GQL = """
451
+ query RunInputArtifacts($entity: String!, $project: String!, $runName: String!, $cursor: String, $perPage: Int) {
452
+ project(name: $project, entityName: $entity) {
453
+ run(name: $runName) {
454
+ inputArtifacts(after: $cursor, first: $perPage) {
455
+ totalCount
456
+ edges {
457
+ node {
458
+ ...ArtifactFragment
459
+ }
460
+ cursor
461
+ }
462
+ pageInfo {
463
+ endCursor
464
+ hasNextPage
465
+ }
466
+ }
467
+ }
468
+ }
469
+ }
470
+
471
+ fragment ArtifactFragment on Artifact {
472
+ id
473
+ artifactSequence {
474
+ project {
475
+ entityName
476
+ name
477
+ }
478
+ name
479
+ }
480
+ versionIndex
481
+ artifactType {
482
+ name
483
+ }
484
+ description
485
+ metadata
486
+ ttlDurationSeconds @include(if: true)
487
+ ttlIsInherited @include(if: true)
488
+ aliases @include(if: true) {
489
+ artifactCollection {
490
+ __typename
491
+ project {
492
+ entityName
493
+ name
494
+ }
495
+ name
496
+ }
497
+ alias
498
+ }
499
+ tags @include(if: true) {
500
+ name
501
+ }
502
+ historyStep @include(if: true)
503
+ state
504
+ currentManifest {
505
+ file {
506
+ directUrl
507
+ }
508
+ }
509
+ commitHash
510
+ fileCount
511
+ createdAt
512
+ updatedAt
513
+ }
514
+ """
515
+
516
+ FETCH_LINKED_ARTIFACTS_GQL = """
517
+ query FetchLinkedArtifacts($artifactID: ID!) {
518
+ artifact(id: $artifactID) {
519
+ artifactMemberships {
520
+ edges {
521
+ node {
522
+ aliases {
523
+ alias
524
+ }
525
+ versionIndex
526
+ artifactCollection {
527
+ project {
528
+ entityName
529
+ name
530
+ }
531
+ name
532
+ __typename
533
+ }
534
+ }
535
+ }
536
+ }
537
+ }
538
+ }
539
+ """
540
+
541
+ ADD_ALIASES_GQL = """
542
+ mutation AddAliases($artifactID: ID!, $aliases: [ArtifactCollectionAliasInput!]!) {
543
+ addAliases(input: {artifactID: $artifactID, aliases: $aliases}) {
544
+ success
545
+ }
546
+ }
547
+ """
548
+
549
+ DELETE_ALIASES_GQL = """
550
+ mutation DeleteAliases($artifactID: ID!, $aliases: [ArtifactCollectionAliasInput!]!) {
551
+ deleteAliases(input: {artifactID: $artifactID, aliases: $aliases}) {
552
+ success
553
+ }
554
+ }
555
+ """
556
+
557
+ UPDATE_ARTIFACT_GQL = """
558
+ mutation UpdateArtifact($artifactID: ID!, $description: String, $metadata: JSONString, $ttlDurationSeconds: Int64, $tagsToAdd: [TagInput!], $tagsToDelete: [TagInput!], $aliases: [ArtifactAliasInput!]) {
559
+ updateArtifact(
560
+ input: {artifactID: $artifactID, description: $description, metadata: $metadata, ttlDurationSeconds: $ttlDurationSeconds, tagsToAdd: $tagsToAdd, tagsToDelete: $tagsToDelete, aliases: $aliases}
561
+ ) {
562
+ artifact {
563
+ ...ArtifactFragment
564
+ }
565
+ }
566
+ }
567
+
568
+ fragment ArtifactFragment on Artifact {
569
+ id
570
+ artifactSequence {
571
+ project {
572
+ entityName
573
+ name
574
+ }
575
+ name
576
+ }
577
+ versionIndex
578
+ artifactType {
579
+ name
580
+ }
581
+ description
582
+ metadata
583
+ ttlDurationSeconds @include(if: true)
584
+ ttlIsInherited @include(if: true)
585
+ aliases @include(if: true) {
586
+ artifactCollection {
587
+ __typename
588
+ project {
589
+ entityName
590
+ name
591
+ }
592
+ name
593
+ }
594
+ alias
595
+ }
596
+ tags @include(if: true) {
597
+ name
598
+ }
599
+ historyStep @include(if: true)
600
+ state
601
+ currentManifest {
602
+ file {
603
+ directUrl
604
+ }
605
+ }
606
+ commitHash
607
+ fileCount
608
+ createdAt
609
+ updatedAt
610
+ }
611
+ """
@@ -0,0 +1,101 @@
1
+ # Generated by ariadne-codegen
2
+ # Source: tools/graphql_codegen/artifacts/
3
+
4
+ from __future__ import annotations
5
+
6
+ from typing import List, Literal, Optional
7
+
8
+ from pydantic import Field
9
+
10
+ from wandb._pydantic import GQLBase, GQLId, Typename
11
+
12
+
13
+ class ProjectArtifactCollection(GQLBase):
14
+ project: Optional[ProjectArtifactCollectionProject]
15
+
16
+
17
+ class ProjectArtifactCollectionProject(GQLBase):
18
+ artifact_type: Optional[ProjectArtifactCollectionProjectArtifactType] = Field(
19
+ alias="artifactType"
20
+ )
21
+
22
+
23
+ class ProjectArtifactCollectionProjectArtifactType(GQLBase):
24
+ artifact_collection: Optional[
25
+ ProjectArtifactCollectionProjectArtifactTypeArtifactCollection
26
+ ] = Field(alias="artifactCollection")
27
+ artifact_sequence: Optional[
28
+ ProjectArtifactCollectionProjectArtifactTypeArtifactSequence
29
+ ] = Field(alias="artifactSequence")
30
+
31
+
32
+ class ProjectArtifactCollectionProjectArtifactTypeArtifactCollection(GQLBase):
33
+ typename__: Typename[
34
+ Literal["ArtifactCollection", "ArtifactPortfolio", "ArtifactSequence"]
35
+ ]
36
+ id: GQLId
37
+ name: str
38
+ description: Optional[str]
39
+ created_at: str = Field(alias="createdAt")
40
+ tags: ProjectArtifactCollectionProjectArtifactTypeArtifactCollectionTags
41
+ aliases: ProjectArtifactCollectionProjectArtifactTypeArtifactCollectionAliases
42
+
43
+
44
+ class ProjectArtifactCollectionProjectArtifactTypeArtifactCollectionTags(GQLBase):
45
+ edges: List[ProjectArtifactCollectionProjectArtifactTypeArtifactCollectionTagsEdges]
46
+
47
+
48
+ class ProjectArtifactCollectionProjectArtifactTypeArtifactCollectionTagsEdges(GQLBase):
49
+ node: ProjectArtifactCollectionProjectArtifactTypeArtifactCollectionTagsEdgesNode
50
+
51
+
52
+ class ProjectArtifactCollectionProjectArtifactTypeArtifactCollectionTagsEdgesNode(
53
+ GQLBase
54
+ ):
55
+ id: GQLId
56
+ name: str
57
+
58
+
59
+ class ProjectArtifactCollectionProjectArtifactTypeArtifactCollectionAliases(GQLBase):
60
+ edges: List[
61
+ ProjectArtifactCollectionProjectArtifactTypeArtifactCollectionAliasesEdges
62
+ ]
63
+ page_info: ProjectArtifactCollectionProjectArtifactTypeArtifactCollectionAliasesPageInfo = Field(
64
+ alias="pageInfo"
65
+ )
66
+
67
+
68
+ class ProjectArtifactCollectionProjectArtifactTypeArtifactCollectionAliasesEdges(
69
+ GQLBase
70
+ ):
71
+ node: Optional[
72
+ ProjectArtifactCollectionProjectArtifactTypeArtifactCollectionAliasesEdgesNode
73
+ ]
74
+ cursor: str
75
+
76
+
77
+ class ProjectArtifactCollectionProjectArtifactTypeArtifactCollectionAliasesEdgesNode(
78
+ GQLBase
79
+ ):
80
+ alias: str
81
+
82
+
83
+ class ProjectArtifactCollectionProjectArtifactTypeArtifactCollectionAliasesPageInfo(
84
+ GQLBase
85
+ ):
86
+ end_cursor: Optional[str] = Field(alias="endCursor")
87
+ has_next_page: bool = Field(alias="hasNextPage")
88
+
89
+
90
+ class ProjectArtifactCollectionProjectArtifactTypeArtifactSequence(GQLBase):
91
+ typename__: Typename[Literal["ArtifactSequence"]]
92
+
93
+
94
+ ProjectArtifactCollection.model_rebuild()
95
+ ProjectArtifactCollectionProject.model_rebuild()
96
+ ProjectArtifactCollectionProjectArtifactType.model_rebuild()
97
+ ProjectArtifactCollectionProjectArtifactTypeArtifactCollection.model_rebuild()
98
+ ProjectArtifactCollectionProjectArtifactTypeArtifactCollectionTags.model_rebuild()
99
+ ProjectArtifactCollectionProjectArtifactTypeArtifactCollectionTagsEdges.model_rebuild()
100
+ ProjectArtifactCollectionProjectArtifactTypeArtifactCollectionAliases.model_rebuild()
101
+ ProjectArtifactCollectionProjectArtifactTypeArtifactCollectionAliasesEdges.model_rebuild()