-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
23 lines (19 loc) · 775 Bytes
/
Copy pathmain.py
File metadata and controls
23 lines (19 loc) · 775 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
from qgate_graph.graph_performance import GraphPerformance
from qgate_graph.graph_executor import GraphExecutor
import qgate_graph
import click
import logging
@click.command()
@click.option("--input", help="input directory (default is directory 'input')", default="input")
@click.option("--output", help="output directory (default is directory 'output')", default="output")
def graph(input,output):
"""Generate graphs based in input data."""
logging.basicConfig()
logging.getLogger().setLevel(logging.INFO)
graph=GraphPerformance()
graph.generate_from_dir(input, output)
graph=GraphExecutor()
graph.generate_from_dir(input, output)
# graph.generate_from_file("input/prf_nonprod_BDP_NoSQL.txt", output)
if __name__ == '__main__':
graph()