Skip to main content

Simple progress bar for terminal

Project description

Ez-Bar

Very simple customizable progress bar.

Installation

pip install py-ezbar

Usage and Examples

import, configure and use it's easy

from py_ezbar import ProgressBar, BarStyles, BarColors
    
progress_bar = ProgressBar(color=BarColors.YELLOW, style=BarStyles.DEFAULT, show_fractions=True)
t = range(327)
x = [fake.bs() for _ in range(5)]
y = {
    "1": "a",
    "2": "b",
    "3": "c",
    "4": "d",
    "5": "e",
}

for i in t:
    progress_bar(index=i, iterable=t, current=i)
    sleep(0.01)

for i, v in enumerate(x):
    progress_bar(index=i, iterable=x, current=v)
    sleep(0.01)

for i, (k, v) in enumerate(y.items()):
    progress_bar(index=i, iterable=x, current=v)
    sleep(0.01)

example

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

py_ezbar-0.1.2.tar.gz (3.9 kB view hashes)

Uploaded Source

Built Distribution

py_ezbar-0.1.2-py3-none-any.whl (4.5 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