Skip to content

canassa/minibar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minibar

A python progress bar

Travis CI build status

Installing

pip install minibar

Usage

import minibar
import time

for i in minibar.bar(range(100)):
    time.sleep(0.05)

Output:

Progress bar

Minibar can be customized

template = "{i}/{total} {bar} {elapsed}s {eta}"

for i in minibar.bar(range(100), template=template):
    time.sleep(0.05)

The following widgets are avaliable:

  • {i} The numeric progress counter.
  • {total} The total value.
  • {bar} The progress bar.
  • {elapsed} The time ellapsed in seconds.
  • {eta} The estimated time to finish.