Skip to main content

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

Metadata

Release files for py2flowchart 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for py2flowchart 0.0.3
File Size Uploaded
py2flowchart-0.0.3.tar.gz 44.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for py2flowchart 0.0.3
File Interpreter ABI Platform
py2flowchart-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 53.4 kB

Release files / py2flowchart-0.0.3.tar.gz

Download URL py2flowchart-0.0.3.tar.gz
Size 44.0 kB
Tags Source
SHA-256 checksum
How to use checksums
80c11be0a97ed387b36f693c4b34a5a6498cc63d0e09bbc35bd62e2f8b260bba
BLAKE2b-256 checksum
How to use checksums
6541f500ec157e4755896ac6bd8a49f4c733b5a84ebe7e91a6018adb78a59e98
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.2

Release files / py2flowchart-0.0.3-py3-none-any.whl

Download URL py2flowchart-0.0.3-py3-none-any.whl
Size 9.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3cf62c8263a9d8c0eab7ab1324d65348703e4356d095bac09e5214d4280de28e
BLAKE2b-256 checksum
How to use checksums
42dd2256aade8556c62fc3a862093d6397631ad561d13d10d2c8fcc95626c221
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.2

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page