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
Release history Release notifications | RSS feed
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)
Built Distribution
baro-5.3.6-py3-none-any.whl
(3.4 kB
view hashes)