从Python函数生成流程图。

py2flowchart的Python项目详细描述


py2flowchart

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

Examples

frompy2flowchartimport*pyfile2flowchart("xxxx.py","xxxx.html")pyfile2flowchart("xxxx.py","xxxx.html",{"line-width":1,"arrow-end":"open"})get_flowchart("if a>b:\n    print(c)")defmyfun():passget_flowchart(myfun)

demo

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

about

dstang2000@263.net

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java广播接收器未检测到按键事件   java不为特定列更改创建修订   java采用了更实用的方法   java桌面窗格HTML呈现   java处理internet连接丢失   java在调整JFrame的大小时,如何防止JTable的列调整大小?   如何用Java中的“Scanner.hasNext”完成程序   具有模块名称的java停止IntelliJ项目工具窗口?   执行已编译的Rails-Warbler JAR文件时发生java加载错误   java Spring数据redis存储库不支持集合查询?   每个客户端的java队列请求   获取Java中的JSON嵌套数组元素   java GWT,Vaadin ConcurrentModificationException   firebase存储中的java在保存照片之前,我需要发送两次照片   JavaSpringEleaf如何在容器外使用变量