progressor
A visually appealing progress bar for long lasting computations. It also computes the remaining estimated time for the task by ad-hoc learning of the completion so far. For this reason scikit-learn and numpy are required.
You can install progressor via
pip install progressor
and import it in python using:
import progressor
Compute a task as follows:
from __future__ import print_function
import time
res = [ 0 ]
def task(elem):
time.sleep(0.01)
res[0] += elem
progressor.progress_list(range(1000), task, prefix="sleep list")
print(res[0])
or in a range:
def task_range(cur_ix, length):
task(cur_ix)
progressor.progress(0, 1000, task_range, prefix="sleep range")
print(res[0])
or while reading a file:
with progressor.IOWrapper(open(datafile, "r"), prefix="loading data", out=sys.stdout) as f_in:
data = f_in.read()
The output looks roughly like this:
sleep list: |████████████▌ | 62.30% (T 7.492s ETA 6.791s)
If no estimate of the progress towards completion can be made use:
def repeat(num):
while True:
yield num
progressor.progress_indef(repeat(1), task, prefix="sleep indefinitely")
which produces output like this:
sleep indefinitely: /
Metadata
Release files for progressor 0.1.19
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| progressor-0.1.19.tar.gz | 5.9 kB | Without provenance | Details for progressor-0.1.19.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| progressor-0.1.19-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for progressor-0.1.19-py2.py3-none-any.whl |
Total release size: 11.2 kB
Release files / progressor-0.1.19.tar.gz
| Download URL | progressor-0.1.19.tar.gz |
|---|---|
| Size | 5.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
eb750aea910a14bfd01bbfbb76872f6f0103d1bc537b8efabe4d51424e4d1283
|
|
BLAKE2b-256 checksum How to use checksums |
10c91b1bfcbf945bdb77989c9196ea9d470684e0f24b8985b7ce96f381aea3b4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.20.0 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.4
|
Release files / progressor-0.1.19-py2.py3-none-any.whl
| Download URL | progressor-0.1.19-py2.py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
5137e5285928a267d5feb916f9891f65e7e7c47fd92f3603d8c969686add9941
|
|
BLAKE2b-256 checksum How to use checksums |
5d3ed6781d057ecba556ef4211a05a38ec2b01f2092035101848bbe96f8230cf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.20.0 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.4
|
Security for progressor 0.1.19
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.