Metadata-Version: 2.1
Name: py2flowchart
Version: 0.0.2
Summary: Generates flowchart from Python functions.
Home-page: https://github.com/dstang2000/py2flowchart
Author: Tang Dashi
Author-email: dstang2000@263.net
License: MIT
Keywords: python flow flowchart
Platform: UNKNOWN
Classifier: Framework :: IPython
Classifier: Framework :: Jupyter
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python
Classifier: Topic :: Scientific/Engineering :: Visualization
Classifier: Topic :: Software Development :: Code Generators
Classifier: Topic :: Text Processing :: Markup
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Requires-Dist: dill (>=0.3.2)

# py2flowchart

Generates flowchart from Python functions and python file.  
让简单的Python函数或文件生成流程图。  
（流程图可用flowchart.js来显示，也可以用于typora等md文件中）  
（在typora中用```flow.....```表示流程图）  

## Examples
```python
from py2flowchart import * 
pyfile2flowchart("xxxx.py", "xxxx.html")
pyfile2flowchart("xxxx.py", "xxxx.html", {"line-width": 1, "arrow-end": "open"})

get_flowchart("if a>b:\n    print(c)")

def myfun():
    pass
get_flowchart(myfun) 
```
![demo](tests/test1.png)

## FAQs
Which Python version? ... Using 3.x AST.  
This prog is very limited, it can use for "if,for,while" statement, but not for "break,continue"


## Thanks
this programe was inspired by [latexify_py](https://github.com/google/latexify_py)

## about
dstang2000@263.net


