Another simple progress bar to show the progress of a for loop iteration process in python working also for multiprocessing.
The progress bar has the following look:
[########### ]
Installation
Installation should be straight forward:
pip install progressbar-simple
From Source
Alternativly, to get the most current version, the code can be installed from github as follows:
git clone git@github.com:vgeck/progressBar.git cd progressBar pip install -r requirements.txt python setupy.py install
The last command might need sudo prefix, depending on your python setup.
Usage
Assume a for loop with 100 iterations calling the function foo:
for i in range(100):
foo()
To monitor the process of the for loop we consider a progress bar with 10 elements for the 100 iterations. The progress bar is initialized with:
from progressbarsimple import ProgressBar myProgressBar = ProgressBar(nElements = 10, nIterations = 100)
The progressBar is updated within the for loop with the iterator i:
myProgressBar.progress(i)
The full code for the examples is:
from progressbarsimple import ProgressBar
myProgressBar = ProgressBar(nElements = 10, nIterations = 100)
for i in range(100):
foo()
myProgressBar.progress(i)
For more information on how to use the progressbarsimple see the 2 example files.
Release files for progressbar-simple 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| progressbar-simple-0.1.tar.gz | 3.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| progressbar_simple-0.1-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 8.4 kB
Release files / progressbar-simple-0.1.tar.gz
| Download URL | progressbar-simple-0.1.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
96c51411aeddd63bc2ab256435cf770d5090f82a1d1fd94c90ca1a6d63048f9d
|
|
BLAKE2b-256 checksum How to use checksums |
805d8984882ff2d593472385daa30eefb007c285cdbd424e82fe578dd1821576
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / progressbar_simple-0.1-py2.py3-none-any.whl
| Download URL | progressbar_simple-0.1-py2.py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
37cc0419c56b4d10e6fff32b8ceb3cf3ccea048b17a29b642b5cf23f537b39cc
|
|
BLAKE2b-256 checksum How to use checksums |
c4f404a3a3a59c4f3b36079e8d6ce4b9cd02e7357bf766adc3750d35ba65cc42
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |