txtoflow (Translate To Flowchart)
The Python library can be used to generate flowcharts from pseudocode.
Installation
pip install txtoflow
Usage
from txtoflow import txtoflow
txtoflow.generate(
'''
if (A) {
B;
} else {
C;
D;
while (E) {
F;
}
G;
}
H;
'''
)
Will generate an image named flowchart.jpg in current dir that looks like below
All the conditions and states can be arbitrary strings too
from txtoflow import txtoflow
txtoflow.generate(
'''
First Node;
if (A != 10) {
B;
} else if (Just a String) {
Another String;
} else {
Else Body;
More Statements;
while (While also works) {
While Body;
}
Link back;
}
Final Node;
'''
)
Will still generate image like below
Examples
More examples can be found here
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
txtoflow-0.1.0.tar.gz
(3.8 kB
view details)
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 txtoflow-0.1.0.tar.gz.
File metadata
- Download URL: txtoflow-0.1.0.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
195d2b9023a5743862b41f3ee24ecfcdbd023f0de76b88ff7493718cd826d088
|
|
| MD5 |
136695bd448794db17250a0e1983f0fb
|
|
| BLAKE2b-256 |
b2e7183e6792a798e38c60f1cbb9f94164435d20b23f6952f35478cd9fcc089b
|
File details
Details for the file txtoflow-0.1.0-py3-none-any.whl.
File metadata
- Download URL: txtoflow-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dbe9dbe1a8d4553a64fcc8e480d586cc4befbf8a34f3a407bef5b9af90694cdb
|
|
| MD5 |
6ed6701c44fb2e734c9b9301379c11f5
|
|
| BLAKE2b-256 |
d91d754b8a0cb4d5327a847a3522a1c86b42b55eb4383d530878a6a0c97ab15b
|