Package: dbt-artifacts-parser
dbt-artifacts-parserThis is a dbt artifacts parse in python.
It enables us to deal withcatalog.json,manifest.json,run-results.jsonandsources.jsonas python objects.Installationpipinstall-Udbt-artifacts-parserPython classesThose are the classes to parse dbt artifacts.CatalogCatalogV1for catalog.json v1ManifestManifestV1for manifest.json v1ManifestV2for manifest.json v2ManifestV3for manifest.json v3ManifestV4for manifest.json v4ManifestV5for manifest.json v5ManifestV6for manifest.json v6ManifestV7for manifest.json v7ManifestV8for manifest.json v8ManifestV9for manifest.json v9ManifestV10for manifest.json v10ManifestV11for manifest.json v11Run ResultsRunResultsV1for run_results.json v1RunResultsV2for run_results.json v2RunResultsV3for run_results.json v3RunResultsV4for run_results.json v4RunResultsV5for run_results.json v5SourcesSourcesV1for sources.json v1SourcesV2for sources.json v2SourcesV3for sources.json v3ExamplesParse catalog.jsonimportjson# parse any version of catalog.jsonfromdbt_artifacts_parser.parserimportparse_catalogwithopen("path/to/catalog.json","r")asfp:catalog_dict=json.load(fp)catalog_obj=parse_catalog(catalog=catalog_dict)# parse catalog.json v1fromdbt_artifacts_parser.parserimportparse_catalog_v1withopen("path/to/catalog.json","r")asfp:catalog_dict=json.load(fp)catalog_obj=parse_catalog_v1(catalog=catalog_dict)Parse manifest.jsonimportjson# parse any version of manifest.jsonfromdbt_artifacts_parser.parserimportparse_manifestwithopen("path/to/manifest.json","r")asfp:manifest_dict=json.load(fp)manifest_obj=parse_manifest(manifest=manifest_dict)# parse manifest.json v1fromdbt_artifacts_parser.parserimportparse_manifest_v1withopen("path/to/manifest.json","r")asfp:manifest_dict=json.load(fp)manifest_obj=parse_manifest_v1(manifest=manifest_dict)# parse manifest.json v2fromdbt_artifacts_parser.parserimportparse_manifest_v2withopen("path/to/manifest.json","r")asfp:manifest_dict=json.load(fp)manifest_obj=parse_manifest_v2(manifest=manifest_dict)# parse manifest.json v3fromdbt_artifacts_parser.parserimportparse_manifest_v3withopen("path/to/manifest.json","r")asfp:manifest_dict=json.load(fp)manifest_obj=parse_manifest_v3(manifest=manifest_dict)# parse manifest.json v4fromdbt_artifacts_parser.parserimportparse_manifest_v4withopen("path/to/manifest.json","r")asfp:manifest_dict=json.load(fp)manifest_obj=parse_manifest_v4(manifest=manifest_dict)# parse manifest.json v5fromdbt_artifacts_parser.parserimportparse_manifest_v5withopen("path/to/manifest.json","r")asfp:manifest_dict=json.load(fp)manifest_obj=parse_manifest_v5(manifest=manifest_dict)# parse manifest.json v6fromdbt_artifacts_parser.parserimportparse_manifest_v6withopen("path/to/manifest.json","r")asfp:manifest_dict=json.load(fp)manifest_obj=parse_manifest_v6(manifest=manifest_dict)# parse manifest.json v7fromdbt_artifacts_parser.parserimportparse_manifest_v7withopen("path/to/manifest.json","r")asfp:manifest_dict=json.load(fp)manifest_obj=parse_manifest_v7(manifest=manifest_dict)# parse manifest.json v8fromdbt_artifacts_parser.parserimportparse_manifest_v8withopen("path/to/manifest.json","r")asfp:manifest_dict=json.load(fp)manifest_obj=parse_manifest_v8(manifest=manifest_dict)# parse manifest.json v9fromdbt_artifacts_parser.parserimportparse_manifest_v9withopen("path/to/manifest.json","r")asfp:manifest_dict=json.load(fp)manifest_obj=parse_manifest_v9(manifest=manifest_dict)# parse manifest.json v10fromdbt_artifacts_parser.parserimportparse_manifest_v10withopen("path/to/manifest.json","r")asfp:manifest_dict=json.load(fp)manifest_obj=parse_manifest_v10(manifest=manifest_dict)# parse manifest.json v11fromdbt_artifacts_parser.parserimportparse_manifest_v11withopen("path/to/manifest.json","r")asfp:manifest_dict=json.load(fp)manifest_obj=parse_manifest_v11(manifest=manifest_dict)Parse run-results.jsonimportjson# parse any version of run-results.jsonfromdbt_artifacts_parser.parserimportparse_run_resultswithopen("path/to/run-resultsjson","r")asfp:run_results_dict=json.load(fp)run_results_obj=parse_run_results(run_results=run_results_dict)# parse run-results.json v1fromdbt_artifacts_parser.parserimportparse_run_results_v1withopen("path/to/run-results.json","r")asfp:run_results_dict=json.load(fp)run_results_obj=parse_run_results_v1(run_results=run_results_dict)# parse run-results.json v2fromdbt_artifacts_parser.parserimportparse_run_results_v2withopen("path/to/run-results.json","r")asfp:run_results_dict=json.load(fp)run_results_obj=parse_run_results_v2(run_results=run_results_dict)# parse run-results.json v3fromdbt_artifacts_parser.parserimportparse_run_results_v3withopen("path/to/run-results.json","r")asfp:run_results_dict=json.load(fp)run_results_obj=parse_run_results_v3(run_results=run_results_dict)# parse run-results.json v4fromdbt_artifacts_parser.parserimportparse_run_results_v4withopen("path/to/run-results.json","r")asfp:run_results_dict=json.load(fp)run_results_obj=parse_run_results_v4(run_results=run_results_dict)# parse run-results.json v5fromdbt_artifacts_parser.parserimportparse_run_results_v5withopen("path/to/run-results.json","r")asfp:run_results_dict=json.load(fp)run_results_obj=parse_run_results_v5(run_results=run_results_dict)Parse sources.jsonimportjson# parse any version of sources.jsonfromdbt_artifacts_parser.parserimportparse_sourceswithopen("path/to/sources.json","r")asfp:sources_dict=json.load(fp)sources_obj=parse_sources(sources=sources_dict)# parse sources.json v1fromdbt_artifacts_parser.parserimportparse_sources_v1withopen("path/to/sources.json","r")asfp:sources_dict=json.load(fp)sources_obj=parse_sources_v1(sources=sources_dict)# parse sources.json v2fromdbt_artifacts_parser.parserimportparse_sources_v2withopen("path/to/sources.json","r")asfp:sources_dict=json.load(fp)sources_obj=parse_sources_v2(sources=sources_dict)# parse sources.json v3fromdbt_artifacts_parser.parserimportparse_sources_v3withopen("path/to/sources.json","r")asfp:sources_dict=json.load(fp)sources_obj=parse_sources_v3(sources=sources_dict)ContributorsYu IshikawaNullBrent BrewingtonJudah RandMohamed Nabil Mahmoud HafezNull