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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file py2flowchart-0.0.3.tar.gz.
File metadata
- Download URL: py2flowchart-0.0.3.tar.gz
- Upload date:
- Size: 44.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
80c11be0a97ed387b36f693c4b34a5a6498cc63d0e09bbc35bd62e2f8b260bba
|
|
| MD5 |
771a685197fe7761853356f5dc873e0a
|
|
| BLAKE2b-256 |
6541f500ec157e4755896ac6bd8a49f4c733b5a84ebe7e91a6018adb78a59e98
|
File details
Details for the file py2flowchart-0.0.3-py3-none-any.whl.
File metadata
- Download URL: py2flowchart-0.0.3-py3-none-any.whl
- Upload date:
- Size: 9.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3cf62c8263a9d8c0eab7ab1324d65348703e4356d095bac09e5214d4280de28e
|
|
| MD5 |
34f717647d30b45eee19ce863c476d9b
|
|
| BLAKE2b-256 |
42dd2256aade8556c62fc3a862093d6397631ad561d13d10d2c8fcc95626c221
|