从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第三方库


热门话题
我可以用C++代码使用java代码吗?   java使用JSR303在派生类中提供更具体的约束   java在这个查找唯一路径数算法中我做错了什么?   java如何为2个不同的服务提供商使用2个不同的SSL证书?   java在Gridview上绘制文本   java使用连接for循环构建字符串名   java StringBuilder拆分无法处理某些文件   java事件关注EditText   Java Web Start“找不到URL的缓存资源”   java程序从命令行运行的速度比在Eclipse中慢   java为什么HttpServletRequest会截断#字符上的url输入?   java自定义折叠工具栏平滑标题大小调整   使用Mockito对安卓 java中调用另一个静态函数的函数进行单元测试   http在java客户机中使用cachecontrol头   java如何使用。是否使用Delimiter从输入文件中排除标点符号和数字?   使用上下文作为参数/参数的java   java更有效地从Jar中提取文件   java为多个JButton提供相同的actionListener