Tenncor
Functions | Variables
csv_to_png Namespace Reference

Functions

def _str_clean (str)
 
def _apply_styles (graph, styles)
 
def read_graph (lines)
 
def print_graph (callgraph, outname)
 
def csv_to_png (lines, outpath)
 

Variables

dictionary _styles
 
 parser = argparse.ArgumentParser()
 
 nargs
 
 default
 
 help
 
 args = parser.parse_args()
 

Detailed Description

Conversion script for writing teq_csv format to png 

Function Documentation

◆ _apply_styles()

def csv_to_png._apply_styles (   graph,
  styles 
)
private

◆ _str_clean()

def csv_to_png._str_clean (   str)
private

◆ csv_to_png()

def csv_to_png.csv_to_png (   lines,
  outpath 
)

◆ print_graph()

def csv_to_png.print_graph (   callgraph,
  outname 
)

◆ read_graph()

def csv_to_png.read_graph (   lines)

Variable Documentation

◆ _styles

dictionary csv_to_png._styles
private
Initial value:
1 = {
2  'graph': {
3  'label': 'Operation Graph',
4  'fontsize': '16',
5  'fontcolor': 'white',
6  'bgcolor': '#333333',
7  'rankdir': 'BT',
8  },
9  'nodes': {
10  'fontname': 'Helvetica',
11  'shape': 'hexagon',
12  'fontcolor': 'white',
13  'color': 'white',
14  'style': 'filled',
15  'fillcolor': '#006699',
16  },
17  'edges': {
18  'style': 'dashed',
19  # 'color': 'white',
20  'arrowhead': 'open',
21  'fontname': 'Courier',
22  'fontsize': '12',
23  'fontcolor': 'white',
24  }
25 }

◆ args

csv_to_png.args = parser.parse_args()

◆ default

csv_to_png.default

◆ help

csv_to_png.help

◆ nargs

csv_to_png.nargs

◆ parser

csv_to_png.parser = argparse.ArgumentParser()