You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the current documentation a common use case which is advancing to a specific amount.
In the case of downloading a file from sftp (for example) the callback tells how many bytes have been transferred and how many bytes total.
the next() method doesn't work in this case.
for this case bar.goto() seems to work well but there are no examples in the documentation
The text was updated successfully, but these errors were encountered:
data = b""
with progress.bar.Bar('Download', max=file_size) as bar:
while True:
packet = ftp.read()
bar.next(len(packet))
data += packet
if not packet: break
# Do something with data
With the current documentation a common use case which is advancing to a specific amount.
In the case of downloading a file from sftp (for example) the callback tells how many bytes have been transferred and how many bytes total.
the
next()
method doesn't work in this case.for this case
bar.goto()
seems to work well but there are no examples in the documentationThe text was updated successfully, but these errors were encountered: