Skip to content
Discussion options

You must be logged in to vote
import time
import progressbar


widgets = [
    progressbar.Percentage(),
    progressbar.Bar(),
    ' ', progressbar.SimpleProgress(),
    ' ', progressbar.ETA(),
    ' ', progressbar.AdaptiveTransferSpeed(unit='it'),
]

bar = progressbar.ProgressBar(widgets=widgets)
for i in bar(range(100)):
    time.sleep(0.2)
    bar.update(i)

This does roughly what you want I think :)

 19%|##########                                           | 19 of 100 ETA:   0:00:17   4.9 it/s

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@wolph
Comment options

wolph Aug 3, 2021
Maintainer

@brando90
Comment options

@brando90
Comment options

@wolph
Comment options

wolph Aug 4, 2021
Maintainer

@wolph
Comment options

wolph Aug 4, 2021
Maintainer

Answer selected by wolph
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants