Skip to main content

Easy and simple loading bar for python.

Project description

Easy and simple loading bar for python.

TYPES: baro.SPIN, baro.BAR

How to use:

from baro import baro

bar = baro(total=100, ncols=8, 'Setting up..', type=baro.SPIN)

# Option 1
bar.start().close()

# Option 2
for iter in bar:
    # Do something
    bar.update(iter)

bar.close()

# Option 3
with baro(total=100, ncols=8, 'Setting up..', type=baro.BAR) as bar:
    # Do something
    for iter in bar:
        # Do something
        bar.update(iter)
CLASSES:
    baro.baro,
    baro.fore (Contains fore colors for coloring text),
    baro.style (Contains style i.e. BOLD for styling text),
    baro.back (Contains the colors for the background of the text)

METHODS:
    baro.color(
        color: fore (Default none), 
        style: style (Default none),
        back: back (Default none)
    )
    baro.reset() Returns the defualt color, style, and back.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

baro-5.3.6.tar.gz (3.1 kB view hashes)

Uploaded Source

Built Distribution

baro-5.3.6-py3-none-any.whl (3.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page