Skip to main content

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) 

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for py2flowchart, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size py2flowchart-0.0.2-py3-none-any.whl (8.9 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size py2flowchart-0.0.2.tar.gz (8.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page