python-progressbar
python-progressbar copied to clipboard
Text progress bar library for Python
- Progressbar version: 2.5 - OS: OS: Arch Linux x86_64 - Kernel: 5.18.3-arch1-1 ``` > python examples.py Running: Example 20 Traceback (most recent call last): File "~/sourcecode/examples.py", line 240, in...
``` import progressbar not found my python ver is 2.7 ``` Original issue reported on code.google.com by `[email protected]` on 30 Sep 2014 at 8:09
`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...
- ProgressBar can also be used as context manager - ProgressBar.track to track an iterable - track(): a convenience function to track iterables ---> Also, applied black formatter to the...
This probably still needs some doc changes before it's worth taking, but I thought I'd throw it out there for you. Fixes #70.