pip install code2flow
python
from code2flow import code2flow
python
c2f = code2flow.Code2Flow()
python
c2f.add_file('path_to_file.py')
python
c2f.generate_flowchart()
c2f.export_graph('output.png')
python
c2f.set_canvas_size(800, 600)
python
c2f.add_comment('This is a flowchart for the given code.')
python
c2f.add_color('if', '#FF0000')
python
c2f.set_horizontal_spacing(100)
python
c2f.layout_hierarchy()
c2f.set_direction('LR')
python
c2f.save_config('config.json')
python
from code2flow import code2flow
c2f = code2flow.Code2Flow()
c2f.add_file('path_to_file.py')
c2f.set_canvas_size(800, 600)
c2f.add_comment('This is a flowchart for the given code.')
c2f.add_color('if', '#FF0000')
c2f.set_horizontal_spacing(100)
c2f.layout_hierarchy()
c2f.set_direction('LR')
c2f.generate_flowchart()
c2f.export_graph('output.png')
c2f.save_config('config.json')