Skip to main content

Uses ansi terminal characters to print braille barcodes. Simple library that uses the braille unicode characters to make 4 individual barcodes in one line of text.

Installation No dependencies, just run the braille-test.py file.

Make sure you switch terminal emulation on to allow ansi characters.

Howto: There are two classes, the Manager to keep track of the progress bars and the Bar class to create the individual bars.

    manager = ProgressBarManager()

    # Keep track of time
    start_time = time.time()

    # progress bar unique index
    bar_index = 1

    # Update and display progress bars
    while len(manager.bars) > 0 or bar_index < 15:
        # Add a new progress bar set every 3 seconds
        if time.time() - start_time > 1.3 and bar_index < 15:
            manager.add_progress_bar(f"PDF {bar_index}")
            start_time = time.time()
            bar_index += 1

        # Update progress bars
        for title in list(manager.bars.keys()):
            for index in range(4):
                increment = random.random() * 0.03
                manager.update_progress_bar(title, index, increment)

        # Remove and reposition completed progress bar sets
        for title, bar in list(manager.bars.items()):
            if all(progress >= 1 for progress in bar.progresses):
                manager.reposition_progress_bars(title)

        # Sleep before next update
        time.sleep(0.05)```

Release files for braille-bars 0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for braille-bars 0.2
File Size Uploaded
braille-bars-0.2.tar.gz 2.5 kB Details

Release files / braille-bars-0.2.tar.gz

Download URL braille-bars-0.2.tar.gz
Size 2.5 kB
Tags Source
SHA-256 checksum
How to use checksums
2443c272ea5ccc3677f7f3002fbb13355eb58f47daec56b2a094fabdb2696763
BLAKE2b-256 checksum
How to use checksums
f9bc0f950a416ce1d9fa3915abd357177e16214df1755c0636c66570bf9c9eaa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.6

Release history Release notifications | RSS feed

This release

0.2 This release

1 release file

0.1

1 release file

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