We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
with
It would be cool if I could write:
with ProgressBar(widgets=widgets, maxval=os.stat(fname).st_size) as pbar: fp = open(fname, 'rb') fp = ProgressFile(fp, pbar.update) client.uploadFile(dataset, fp, posixpath.join(dir, file))
With pbar.start() and pbar.finish() sequestered into pbar.__enter__ and pbar.__exit__ respectively.
pbar.start()
pbar.finish()
pbar.__enter__
pbar.__exit__
The text was updated successfully, but these errors were encountered:
Yeah, that's a good idea. I like it. I think it's convenient
Sorry, something went wrong.
I just pushed a pull request that does this.
Here: #78. If it's not merged, you can simply use the fork: https://github.com/thorwhalen/python-progressbar
Successfully merging a pull request may close this issue.
It would be cool if I could write:
With
pbar.start()
andpbar.finish()
sequestered intopbar.__enter__
andpbar.__exit__
respectively.The text was updated successfully, but these errors were encountered: