From 90b8808ea7fc840128a8952ffcfab38adec14d0e Mon Sep 17 00:00:00 2001 From: Yu ISHIKAWA Date: Mon, 8 May 2023 15:10:42 +0900 Subject: [PATCH] Update README Signed-off-by: Yu ISHIKAWA --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 358d066..f0e3ce5 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,7 @@ Those are the classes to parse dbt artifacts. - [ManifestV6](dbt_artifacts_parser/parsers/manifest/manifest_v6.py) for manifest.json v6 - [ManifestV7](dbt_artifacts_parser/parsers/manifest/manifest_v7.py) for manifest.json v7 - [ManifestV8](dbt_artifacts_parser/parsers/manifest/manifest_v8.py) for manifest.json v8 +- [ManifestV9](dbt_artifacts_parser/parsers/manifest/manifest_v9.py) for manifest.json v9 ### Run Results - [RunResultsV1](dbt_artifacts_parser/parsers/manifest/manifest_v1.py) for run_results.json v1 @@ -132,6 +133,13 @@ from dbt_artifacts_parser.parser import parse_manifest_v8 with open("path/to/manifest.json", "r") as fp: manifest_dict = json.load(fp) manifest_obj = parse_manifest_v8(manifest=manifest_dict) + +# parse manifest.json v9 +from dbt_artifacts_parser.parser import parse_manifest_v9 + +with open("path/to/manifest.json", "r") as fp: + manifest_dict = json.load(fp) + manifest_obj = parse_manifest_v9(manifest=manifest_dict) ``` ### Parse run-results.json