Skip to main content

Usefull progress "bar"

Project description

nobar

  • Why make a new progress bar?
  • To have the right one! Pythonic, plain, which can be used)

Quick start:

pip install nobar

Examples:

from nobar import nobar

# With init. You'll see itetations and time left

nobar('task_1', 3000)
for i in range(3000):
    nobar('task_1')
    sleep(0.02)
    
>>> task_1  127 of 3000    passed : 00:00:21    left: 00:08:27    avg: 00:00:00.169

# Without init. Only Passed 

for i in range(3000):
    nobar('task_2')
    sleep(0.02)
    
>>> task_2  150 of n/a    passed : 00:00:13    left: n/a    avg: 00:00:00.088

# Mixed. Few bars simultaneously.

nobar('task_1',3000)
nobar('task_2')
for i in range(3000):
    nobar('task_1')
    if i%3 == 0:
        nobar('task_2')
    sleep(0.02)

More arguments in the class

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

nobar-1.0.2.12.tar.gz (15.9 kB view hashes)

Uploaded Source

Built Distribution

nobar-1.0.2.12-py3-none-any.whl (16.0 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