forked from wjohnson/pyapacheatlas
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Completing WhatIf and Samples (wjohnson#12)
Wrapping up the WhatIfValidator class with a single method to run all the validations and provide an output. Adding an additional sample file to create templates. Cleaned up column_scaffolding tests to reflect the columnMapping feature.
- Loading branch information
Showing
8 changed files
with
176 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import json | ||
import os | ||
|
||
# PyApacheAtlas packages | ||
from pyapacheatlas.scaffolding import column_lineage_scaffold # Create dummy types | ||
from pyapacheatlas.scaffolding.templates import excel_template # Create the excel template file to be populated | ||
|
||
if __name__ == "__main__": | ||
# Create the demo scaffolding | ||
print("Creating the scaffolding json file") | ||
scaffold = column_lineage_scaffold("demo") | ||
with open("./demo_scaffold.json", 'w') as fp: | ||
fp.write( | ||
json.dumps(scaffold, indent=1) | ||
) | ||
|
||
# Create the excel template file | ||
print("Creating the excel template file") | ||
excel_template("./demo_excel_template.xlsx") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
|
||
setuptools.setup( | ||
name="pyapacheatlas", | ||
version="0.0.1", | ||
version="0.0.2", | ||
author="Will Johnson", | ||
author_email="[email protected]", | ||
description="A package to simplify working with the Apache Atlas REST APIs and support bulk loading from files.", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters