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.

Source Distribution

py2flowchart-0.0.3.tar.gz (44.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

py2flowchart-0.0.3-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

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

Hashes for py2flowchart-0.0.3.tar.gz
Algorithm Hash digest
SHA256 80c11be0a97ed387b36f693c4b34a5a6498cc63d0e09bbc35bd62e2f8b260bba
MD5 771a685197fe7761853356f5dc873e0a
BLAKE2b-256 6541f500ec157e4755896ac6bd8a49f4c733b5a84ebe7e91a6018adb78a59e98

See more details on using hashes here.

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

Hashes for py2flowchart-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 3cf62c8263a9d8c0eab7ab1324d65348703e4356d095bac09e5214d4280de28e
MD5 34f717647d30b45eee19ce863c476d9b
BLAKE2b-256 42dd2256aade8556c62fc3a862093d6397631ad561d13d10d2c8fcc95626c221

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page