Skip to main content

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.2.1.tar.gz (4.2 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.1-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: txtoflow-0.2.1.tar.gz
  • Upload date:
  • Size: 4.2 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.1.tar.gz
Algorithm Hash digest
SHA256 ca7d1d59df2c078eafa7c81e8e55ae9c349f1bbc3866503cf6540d522d1e44ad
MD5 b5275ef90c07ce93fd08110d0ed46274
BLAKE2b-256 613f20c1ca298d3988ecea115fc749d6e4d34ebc5afe0940a13e4e516f6df60f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: txtoflow-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 5.6 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 766645980fd4c232fd417e9504f4d930cf71119b756a2e7634ab2de81eb5593b
MD5 64daa61e326762ea15722eb7e3a631a1
BLAKE2b-256 e42c655b023dda7d5fa6ea58a657a772c396cf08bdb4e43fe6b98e21db472bda

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

0.2.6

2 files

0.2.5

2 files

0.2.4

2 files

0.2.3

2 files

0.2.2

2 files

This release

0.2.1 This release

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