Skip to main content

txtoflow (Translate To Flowchart)

The Python library can be used to generate flowcharts from pseudo-code.

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

Cmdline usage

$ > txtoflow -h

# Generates flowchart of pseudo-code from sample.c in file flow.jpg
$ > txtoflow -s sample.c -o flow.jpg

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.2.6.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

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

txtoflow-0.2.6-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file txtoflow-0.2.6.tar.gz.

File metadata

  • Download URL: txtoflow-0.2.6.tar.gz
  • Upload date:
  • Size: 4.3 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

Hashes for txtoflow-0.2.6.tar.gz
Algorithm Hash digest
SHA256 fd60ef149f6be8d90b9b23b2b6e2f093f41c3d124a10a0fa07c5ce86679975ca
MD5 71cd5f44802ecf40ddf43eb6e0fe7a92
BLAKE2b-256 8724bd9fa406cdf8a71c4f020ae322599ef71e37392888081f00b059094f00c1

See more details on using hashes here.

File details

Details for the file txtoflow-0.2.6-py3-none-any.whl.

File metadata

  • Download URL: txtoflow-0.2.6-py3-none-any.whl
  • Upload date:
  • Size: 5.7 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

Hashes for txtoflow-0.2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 baf147f270a6492390356736a7a00907da0e7ac8172df6cef935b9320574cd5f
MD5 48d2f5b3ca54b28269731c748dc4e42e
BLAKE2b-256 3e2ac0ea917de7ac1b32d4546b2abbd4b2e6c262460d5c100e4c2215177d2b1e

See more details on using hashes here.

Release history Release notifications | RSS feed

0.3.2

2 files

0.3.0

2 files

0.2.9

2 files

0.2.8

2 files

This release

0.2.6 This release

2 files

0.2.5

2 files

0.2.4

2 files

0.2.3

2 files

0.2.2

2 files

0.2.1

2 files

0.2.0

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

0.0.1

2 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