Generates flowchart from Python functions.
Project description
py2flowchart
Generates flowchart from Python functions and python file.
让简单的Python函数或文件生成流程图。
(流程图可用flowchart.js来显示,也可以用于typora等md文件中)
(在typora中用flow.....
表示流程图)
Examples
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)
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
py2flowchart-0.0.3.tar.gz
(44.0 kB
view hashes)
Built Distribution
Close
Hashes for py2flowchart-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3cf62c8263a9d8c0eab7ab1324d65348703e4356d095bac09e5214d4280de28e |
|
MD5 | 34f717647d30b45eee19ce863c476d9b |
|
BLAKE2b-256 | 42dd2256aade8556c62fc3a862093d6397631ad561d13d10d2c8fcc95626c221 |