# py2flowchart
Generates flowchart from Python functions and python file.
让简单的Python函数或文件生成流程图。
(流程图可用flowchart.js来显示,也可以用于typora等md文件中)
(在typora中用```flow.....```表示流程图)
## Examples
```python
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](tests/test1.png)
## 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](https://github.com/google/latexify_py)
## about
dstang2000@263.net
Raw data
{
"_id": null,
"home_page": "https://github.com/dstang2000/py2flowchart",
"name": "py2flowchart",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": "",
"keywords": "python flow flowchart",
"author": "Tang Dashi",
"author_email": "dstang2000@263.net",
"download_url": "https://files.pythonhosted.org/packages/65/41/f500ec157e4755896ac6bd8a49f4c733b5a84ebe7e91a6018adb78a59e98/py2flowchart-0.0.3.tar.gz",
"platform": null,
"description": "# py2flowchart\n\nGenerates flowchart from Python functions and python file. \n\u8ba9\u7b80\u5355\u7684Python\u51fd\u6570\u6216\u6587\u4ef6\u751f\u6210\u6d41\u7a0b\u56fe\u3002 \n\uff08\u6d41\u7a0b\u56fe\u53ef\u7528flowchart.js\u6765\u663e\u793a\uff0c\u4e5f\u53ef\u4ee5\u7528\u4e8etypora\u7b49md\u6587\u4ef6\u4e2d\uff09 \n\uff08\u5728typora\u4e2d\u7528```flow.....```\u8868\u793a\u6d41\u7a0b\u56fe\uff09 \n\n## Examples\n```python\nfrom py2flowchart import * \npyfile2flowchart(\"xxxx.py\", \"xxxx.html\")\npyfile2flowchart(\"xxxx.py\", \"xxxx.html\", {\"line-width\": 1, \"arrow-end\": \"open\"})\n\nget_flowchart(\"if a>b:\\n print(c)\")\n\ndef myfun():\n pass\nget_flowchart(myfun) \n```\n![demo](tests/test1.png)\n\n## FAQs\nWhich Python version? ... Using 3.x AST. \nThis prog is very limited, it can use for \"if,for,while\" statement, but not for \"break,continue\"\n\n\n## Thanks\nthis programe was inspired by [latexify_py](https://github.com/google/latexify_py)\n\n## about\ndstang2000@263.net\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Generates flowchart from Python functions.",
"version": "0.0.3",
"project_urls": {
"Homepage": "https://github.com/dstang2000/py2flowchart"
},
"split_keywords": [
"python",
"flow",
"flowchart"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "42dd2256aade8556c62fc3a862093d6397631ad561d13d10d2c8fcc95626c221",
"md5": "34f717647d30b45eee19ce863c476d9b",
"sha256": "3cf62c8263a9d8c0eab7ab1324d65348703e4356d095bac09e5214d4280de28e"
},
"downloads": -1,
"filename": "py2flowchart-0.0.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "34f717647d30b45eee19ce863c476d9b",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 9441,
"upload_time": "2023-12-09T03:21:41",
"upload_time_iso_8601": "2023-12-09T03:21:41.951247Z",
"url": "https://files.pythonhosted.org/packages/42/dd/2256aade8556c62fc3a862093d6397631ad561d13d10d2c8fcc95626c221/py2flowchart-0.0.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "6541f500ec157e4755896ac6bd8a49f4c733b5a84ebe7e91a6018adb78a59e98",
"md5": "771a685197fe7761853356f5dc873e0a",
"sha256": "80c11be0a97ed387b36f693c4b34a5a6498cc63d0e09bbc35bd62e2f8b260bba"
},
"downloads": -1,
"filename": "py2flowchart-0.0.3.tar.gz",
"has_sig": false,
"md5_digest": "771a685197fe7761853356f5dc873e0a",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 43997,
"upload_time": "2023-12-09T03:21:44",
"upload_time_iso_8601": "2023-12-09T03:21:44.878662Z",
"url": "https://files.pythonhosted.org/packages/65/41/f500ec157e4755896ac6bd8a49f4c733b5a84ebe7e91a6018adb78a59e98/py2flowchart-0.0.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-12-09 03:21:44",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "dstang2000",
"github_project": "py2flowchart",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [],
"lcname": "py2flowchart"
}