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