pip3 install jhpbar
from jhpbar import jhpbar
j = jhpbar(steps=10, size=20, prefix='Prefix!', postfix='Postfix!', color=1)
import time
for i in range(10):
j.update(1)
time.sleep(1)
the progress bar will be filled
Prefix! ▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉ Postfix!
j.reset()
- steps (required) : progress total size (logical size)
- size (default=20) : The size shown on the screen. (phcsical size)
- prefix (default='') : prefix
- postfix (default='') : postfix
- color (default=0) : color 0 : None 1 : Red 2 : green 3 : blue
update the progress bar
- count (default = 1) : Fill the progress bar by count
- prefix, postfix (default = '')
reset the progress bar
- progress (default=1) : reset the progress(logical step)
- prefix, postfix (default='')
from jhpbar import jhpbar
j = jhpbar(steps=10, size=20, prefix='Prefix!', postfix='Postfix!', color=1)
import time
for i in range(10):
j.update(1)
time.sleep(1)