migueweb / progress-bar

Customizable progress bar

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Progress bar

How does it work?

Argument 1 receive a string and represent the bar before load, argument 2 receive a string and represent the bar onload, argument 3 receive a integer which is the length of the the bar and Argument 4 receives an integer and this is the maximum refresh time between the argument and 0 in seconds, the default value of this is 0.5 seconds.

from progress_bar import *

BAR = "."
FILLED = "#"
BAR_LENGHT = 30
REFRESH_TIME = 1 #seconds

progressBar(BAR, FILLED, BAR_LENGHT, REFRESH_TIME)

output

current progress: [##############################...] 90.0%
Fineshed!

Author

Github - @migueweb

About

Customizable progress bar


Languages

Language:Python 100.0%