collate-dbt-artifacts-parser 0.1__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.
Files changed (67) hide show
  1. collate_dbt_artifacts_parser/__init__.py +21 -0
  2. collate_dbt_artifacts_parser/parser.py +390 -0
  3. collate_dbt_artifacts_parser/parsers/__init__.py +16 -0
  4. collate_dbt_artifacts_parser/parsers/base.py +26 -0
  5. collate_dbt_artifacts_parser/parsers/catalog/__init__.py +16 -0
  6. collate_dbt_artifacts_parser/parsers/catalog/catalog_cloud.py +85 -0
  7. collate_dbt_artifacts_parser/parsers/catalog/catalog_v1.py +85 -0
  8. collate_dbt_artifacts_parser/parsers/manifest/__init__.py +16 -0
  9. collate_dbt_artifacts_parser/parsers/manifest/manifest_cloud.py +4172 -0
  10. collate_dbt_artifacts_parser/parsers/manifest/manifest_v1.py +1548 -0
  11. collate_dbt_artifacts_parser/parsers/manifest/manifest_v10.py +1667 -0
  12. collate_dbt_artifacts_parser/parsers/manifest/manifest_v11.py +1449 -0
  13. collate_dbt_artifacts_parser/parsers/manifest/manifest_v12.py +4182 -0
  14. collate_dbt_artifacts_parser/parsers/manifest/manifest_v2.py +1553 -0
  15. collate_dbt_artifacts_parser/parsers/manifest/manifest_v3.py +1565 -0
  16. collate_dbt_artifacts_parser/parsers/manifest/manifest_v4.py +1748 -0
  17. collate_dbt_artifacts_parser/parsers/manifest/manifest_v5.py +1763 -0
  18. collate_dbt_artifacts_parser/parsers/manifest/manifest_v6.py +1799 -0
  19. collate_dbt_artifacts_parser/parsers/manifest/manifest_v7.py +1917 -0
  20. collate_dbt_artifacts_parser/parsers/manifest/manifest_v8.py +1258 -0
  21. collate_dbt_artifacts_parser/parsers/manifest/manifest_v9.py +1431 -0
  22. collate_dbt_artifacts_parser/parsers/run_results/__init__.py +16 -0
  23. collate_dbt_artifacts_parser/parsers/run_results/run_results_cloud.py +90 -0
  24. collate_dbt_artifacts_parser/parsers/run_results/run_results_v1.py +75 -0
  25. collate_dbt_artifacts_parser/parsers/run_results/run_results_v2.py +76 -0
  26. collate_dbt_artifacts_parser/parsers/run_results/run_results_v3.py +147 -0
  27. collate_dbt_artifacts_parser/parsers/run_results/run_results_v4.py +147 -0
  28. collate_dbt_artifacts_parser/parsers/run_results/run_results_v5.py +79 -0
  29. collate_dbt_artifacts_parser/parsers/run_results/run_results_v6.py +89 -0
  30. collate_dbt_artifacts_parser/parsers/sources/__init__.py +16 -0
  31. collate_dbt_artifacts_parser/parsers/sources/sources_cloud.py +107 -0
  32. collate_dbt_artifacts_parser/parsers/sources/sources_v1.py +88 -0
  33. collate_dbt_artifacts_parser/parsers/sources/sources_v2.py +100 -0
  34. collate_dbt_artifacts_parser/parsers/sources/sources_v3.py +107 -0
  35. collate_dbt_artifacts_parser/parsers/utils.py +67 -0
  36. collate_dbt_artifacts_parser/parsers/version_map.py +124 -0
  37. collate_dbt_artifacts_parser/resources/catalog/catalog_cloud.json +425 -0
  38. collate_dbt_artifacts_parser/resources/catalog/catalog_v1.json +425 -0
  39. collate_dbt_artifacts_parser/resources/manifest/manifest_cloud.json +22719 -0
  40. collate_dbt_artifacts_parser/resources/manifest/manifest_v1.json +5074 -0
  41. collate_dbt_artifacts_parser/resources/manifest/manifest_v10.json +5638 -0
  42. collate_dbt_artifacts_parser/resources/manifest/manifest_v11.json +6256 -0
  43. collate_dbt_artifacts_parser/resources/manifest/manifest_v12.json +22727 -0
  44. collate_dbt_artifacts_parser/resources/manifest/manifest_v2.json +5128 -0
  45. collate_dbt_artifacts_parser/resources/manifest/manifest_v3.json +5225 -0
  46. collate_dbt_artifacts_parser/resources/manifest/manifest_v4.json +5939 -0
  47. collate_dbt_artifacts_parser/resources/manifest/manifest_v5.json +5984 -0
  48. collate_dbt_artifacts_parser/resources/manifest/manifest_v6.json +6209 -0
  49. collate_dbt_artifacts_parser/resources/manifest/manifest_v7.json +6575 -0
  50. collate_dbt_artifacts_parser/resources/manifest/manifest_v8.json +4434 -0
  51. collate_dbt_artifacts_parser/resources/manifest/manifest_v9.json +4965 -0
  52. collate_dbt_artifacts_parser/resources/run-results/run-results_cloud.json +265 -0
  53. collate_dbt_artifacts_parser/resources/run-results/run-results_v1.json +183 -0
  54. collate_dbt_artifacts_parser/resources/run-results/run-results_v2.json +190 -0
  55. collate_dbt_artifacts_parser/resources/run-results/run-results_v3.json +381 -0
  56. collate_dbt_artifacts_parser/resources/run-results/run-results_v4.json +400 -0
  57. collate_dbt_artifacts_parser/resources/run-results/run-results_v5.json +229 -0
  58. collate_dbt_artifacts_parser/resources/run-results/run-results_v6.json +264 -0
  59. collate_dbt_artifacts_parser/resources/sources/sources_cloud.json +280 -0
  60. collate_dbt_artifacts_parser/resources/sources/sources_v1.json +212 -0
  61. collate_dbt_artifacts_parser/resources/sources/sources_v2.json +261 -0
  62. collate_dbt_artifacts_parser/resources/sources/sources_v3.json +280 -0
  63. collate_dbt_artifacts_parser/utils.py +27 -0
  64. collate_dbt_artifacts_parser-0.1.dist-info/METADATA +531 -0
  65. collate_dbt_artifacts_parser-0.1.dist-info/RECORD +67 -0
  66. collate_dbt_artifacts_parser-0.1.dist-info/WHEEL +4 -0
  67. collate_dbt_artifacts_parser-0.1.dist-info/licenses/LICENSE +201 -0
@@ -0,0 +1,381 @@
1
+ {
2
+ "type": "object",
3
+ "required": [
4
+ "metadata",
5
+ "results",
6
+ "elapsed_time"
7
+ ],
8
+ "properties": {
9
+ "metadata": {
10
+ "$ref": "#/definitions/BaseArtifactMetadata"
11
+ },
12
+ "results": {
13
+ "type": "array",
14
+ "items": {
15
+ "$ref": "#/definitions/RunResultOutput"
16
+ }
17
+ },
18
+ "elapsed_time": {
19
+ "type": "number"
20
+ },
21
+ "args": {
22
+ "type": "object",
23
+ "default": {}
24
+ }
25
+ },
26
+ "additionalProperties": false,
27
+ "description": "RunResultsArtifact(metadata: dbt.contracts.util.BaseArtifactMetadata, results: Sequence[dbt.contracts.results.RunResultOutput], elapsed_time: float, args: Dict[str, Any] = <factory>)",
28
+ "definitions": {
29
+ "BaseArtifactMetadata": {
30
+ "type": "object",
31
+ "required": [
32
+ "dbt_schema_version"
33
+ ],
34
+ "properties": {
35
+ "dbt_schema_version": {
36
+ "type": "string"
37
+ },
38
+ "dbt_version": {
39
+ "type": "string",
40
+ "default": "0.21.0rc1"
41
+ },
42
+ "generated_at": {
43
+ "type": "string",
44
+ "format": "date-time",
45
+ "default": "2021-09-24T13:29:14.315088Z"
46
+ },
47
+ "invocation_id": {
48
+ "oneOf": [
49
+ {
50
+ "type": "string"
51
+ },
52
+ {
53
+ "type": "null"
54
+ }
55
+ ]
56
+ },
57
+ "env": {
58
+ "type": "object",
59
+ "additionalProperties": {
60
+ "type": "string"
61
+ },
62
+ "default": {}
63
+ }
64
+ },
65
+ "additionalProperties": false,
66
+ "description": "BaseArtifactMetadata(dbt_schema_version: str, dbt_version: str = '0.21.0rc1', generated_at: datetime.datetime = <factory>, invocation_id: Union[str, NoneType] = <factory>, env: Dict[str, str] = <factory>)"
67
+ },
68
+ "RunResultOutput": {
69
+ "type": "object",
70
+ "required": [
71
+ "status",
72
+ "timing",
73
+ "thread_id",
74
+ "execution_time",
75
+ "adapter_response",
76
+ "unique_id"
77
+ ],
78
+ "properties": {
79
+ "status": {
80
+ "oneOf": [
81
+ {
82
+ "type": "string",
83
+ "enum": [
84
+ "success",
85
+ "error",
86
+ "skipped"
87
+ ]
88
+ },
89
+ {
90
+ "type": "string",
91
+ "enum": [
92
+ "pass",
93
+ "error",
94
+ "fail",
95
+ "warn",
96
+ "skipped"
97
+ ]
98
+ },
99
+ {
100
+ "type": "string",
101
+ "enum": [
102
+ "pass",
103
+ "warn",
104
+ "error",
105
+ "runtime error"
106
+ ]
107
+ }
108
+ ]
109
+ },
110
+ "timing": {
111
+ "type": "array",
112
+ "items": {
113
+ "$ref": "#/definitions/TimingInfo"
114
+ }
115
+ },
116
+ "thread_id": {
117
+ "type": "string"
118
+ },
119
+ "execution_time": {
120
+ "type": "number"
121
+ },
122
+ "adapter_response": {
123
+ "type": "object"
124
+ },
125
+ "message": {
126
+ "oneOf": [
127
+ {
128
+ "type": "string"
129
+ },
130
+ {
131
+ "type": "null"
132
+ }
133
+ ]
134
+ },
135
+ "failures": {
136
+ "oneOf": [
137
+ {
138
+ "type": "integer"
139
+ },
140
+ {
141
+ "type": "null"
142
+ }
143
+ ]
144
+ },
145
+ "unique_id": {
146
+ "type": "string"
147
+ }
148
+ },
149
+ "additionalProperties": false,
150
+ "description": "RunResultOutput(status: Union[dbt.contracts.results.RunStatus, dbt.contracts.results.TestStatus, dbt.contracts.results.FreshnessStatus], timing: List[dbt.contracts.results.TimingInfo], thread_id: str, execution_time: float, adapter_response: Dict[str, Any], message: Union[str, NoneType], failures: Union[int, NoneType], unique_id: str)"
151
+ },
152
+ "TimingInfo": {
153
+ "type": "object",
154
+ "required": [
155
+ "name"
156
+ ],
157
+ "properties": {
158
+ "name": {
159
+ "type": "string"
160
+ },
161
+ "started_at": {
162
+ "oneOf": [
163
+ {
164
+ "type": "string",
165
+ "format": "date-time"
166
+ },
167
+ {
168
+ "type": "null"
169
+ }
170
+ ]
171
+ },
172
+ "completed_at": {
173
+ "oneOf": [
174
+ {
175
+ "type": "string",
176
+ "format": "date-time"
177
+ },
178
+ {
179
+ "type": "null"
180
+ }
181
+ ]
182
+ }
183
+ },
184
+ "additionalProperties": false,
185
+ "description": "TimingInfo(name: str, started_at: Union[datetime.datetime, NoneType] = None, completed_at: Union[datetime.datetime, NoneType] = None)"
186
+ },
187
+ "FreshnessMetadata": {
188
+ "type": "object",
189
+ "required": [],
190
+ "properties": {
191
+ "dbt_schema_version": {
192
+ "type": "string",
193
+ "default": "https://schemas.getdbt.com/dbt/sources/v2.json"
194
+ },
195
+ "dbt_version": {
196
+ "type": "string",
197
+ "default": "0.21.0rc1"
198
+ },
199
+ "generated_at": {
200
+ "type": "string",
201
+ "format": "date-time",
202
+ "default": "2021-09-24T13:29:14.312598Z"
203
+ },
204
+ "invocation_id": {
205
+ "oneOf": [
206
+ {
207
+ "type": "string"
208
+ },
209
+ {
210
+ "type": "null"
211
+ }
212
+ ]
213
+ },
214
+ "env": {
215
+ "type": "object",
216
+ "additionalProperties": {
217
+ "type": "string"
218
+ },
219
+ "default": {}
220
+ }
221
+ },
222
+ "additionalProperties": false,
223
+ "description": "FreshnessMetadata(dbt_schema_version: str = <factory>, dbt_version: str = '0.21.0rc1', generated_at: datetime.datetime = <factory>, invocation_id: Union[str, NoneType] = <factory>, env: Dict[str, str] = <factory>)"
224
+ },
225
+ "SourceFreshnessRuntimeError": {
226
+ "type": "object",
227
+ "required": [
228
+ "unique_id",
229
+ "status"
230
+ ],
231
+ "properties": {
232
+ "unique_id": {
233
+ "type": "string"
234
+ },
235
+ "error": {
236
+ "oneOf": [
237
+ {
238
+ "type": "string"
239
+ },
240
+ {
241
+ "type": "integer"
242
+ },
243
+ {
244
+ "type": "null"
245
+ }
246
+ ]
247
+ },
248
+ "status": {
249
+ "type": "string",
250
+ "enum": [
251
+ "runtime error"
252
+ ]
253
+ }
254
+ },
255
+ "additionalProperties": false,
256
+ "description": "SourceFreshnessRuntimeError(unique_id: str, error: Union[str, int, NoneType], status: dbt.contracts.results.FreshnessErrorEnum)"
257
+ },
258
+ "SourceFreshnessOutput": {
259
+ "type": "object",
260
+ "required": [
261
+ "unique_id",
262
+ "max_loaded_at",
263
+ "snapshotted_at",
264
+ "max_loaded_at_time_ago_in_s",
265
+ "status",
266
+ "criteria",
267
+ "adapter_response",
268
+ "timing",
269
+ "thread_id",
270
+ "execution_time"
271
+ ],
272
+ "properties": {
273
+ "unique_id": {
274
+ "type": "string"
275
+ },
276
+ "max_loaded_at": {
277
+ "type": "string",
278
+ "format": "date-time"
279
+ },
280
+ "snapshotted_at": {
281
+ "type": "string",
282
+ "format": "date-time"
283
+ },
284
+ "max_loaded_at_time_ago_in_s": {
285
+ "type": "number"
286
+ },
287
+ "status": {
288
+ "type": "string",
289
+ "enum": [
290
+ "pass",
291
+ "warn",
292
+ "error",
293
+ "runtime error"
294
+ ]
295
+ },
296
+ "criteria": {
297
+ "$ref": "#/definitions/FreshnessThreshold"
298
+ },
299
+ "adapter_response": {
300
+ "type": "object"
301
+ },
302
+ "timing": {
303
+ "type": "array",
304
+ "items": {
305
+ "$ref": "#/definitions/TimingInfo"
306
+ }
307
+ },
308
+ "thread_id": {
309
+ "type": "string"
310
+ },
311
+ "execution_time": {
312
+ "type": "number"
313
+ }
314
+ },
315
+ "additionalProperties": false,
316
+ "description": "SourceFreshnessOutput(unique_id: str, max_loaded_at: datetime.datetime, snapshotted_at: datetime.datetime, max_loaded_at_time_ago_in_s: float, status: dbt.contracts.results.FreshnessStatus, criteria: dbt.contracts.graph.unparsed.FreshnessThreshold, adapter_response: Dict[str, Any], timing: List[dbt.contracts.results.TimingInfo], thread_id: str, execution_time: float)"
317
+ },
318
+ "FreshnessThreshold": {
319
+ "type": "object",
320
+ "required": [],
321
+ "properties": {
322
+ "warn_after": {
323
+ "oneOf": [
324
+ {
325
+ "$ref": "#/definitions/Time"
326
+ },
327
+ {
328
+ "type": "null"
329
+ }
330
+ ]
331
+ },
332
+ "error_after": {
333
+ "oneOf": [
334
+ {
335
+ "$ref": "#/definitions/Time"
336
+ },
337
+ {
338
+ "type": "null"
339
+ }
340
+ ]
341
+ },
342
+ "filter": {
343
+ "oneOf": [
344
+ {
345
+ "type": "string"
346
+ },
347
+ {
348
+ "type": "null"
349
+ }
350
+ ]
351
+ }
352
+ },
353
+ "additionalProperties": false,
354
+ "description": "FreshnessThreshold(warn_after: Union[dbt.contracts.graph.unparsed.Time, NoneType] = None, error_after: Union[dbt.contracts.graph.unparsed.Time, NoneType] = None, filter: Union[str, NoneType] = None)"
355
+ },
356
+ "Time": {
357
+ "type": "object",
358
+ "required": [
359
+ "count",
360
+ "period"
361
+ ],
362
+ "properties": {
363
+ "count": {
364
+ "type": "integer"
365
+ },
366
+ "period": {
367
+ "type": "string",
368
+ "enum": [
369
+ "minute",
370
+ "hour",
371
+ "day"
372
+ ]
373
+ }
374
+ },
375
+ "additionalProperties": false,
376
+ "description": "Time(count: int, period: dbt.contracts.graph.unparsed.TimePeriod)"
377
+ }
378
+ },
379
+ "$schema": "http://json-schema.org/draft-07/schema#",
380
+ "$id": "https://schemas.getdbt.com/dbt/run-results/v3.json"
381
+ }