PyProgress
General Use
A simple interface for terminal based progress updates
Begin by creating an instance with the starting and ending value
import os
files = os.listdir('.')
bar = ProgressBar(0, len(files))
for file in files:
bar.iterbegin('Processing file: {}'.format(file))
process(file)
bar.iterdone()
bar.done()
Manually call ProgressBar.iterbegin([message]) before an iteration starts
and call ProgressBar.iterend() when it completes or ProgressBar.iterfail()
if it fails
When all items complete use ProgressBar.done() to print a summary
Alternative Use – Context Manager
ProgressBar instances can also be used as context managers
use a with statement on every iteration
import os
files = os.listdir('.')
bar = ProgressBar(0, len(files), supress_exc=True)
for file in files:
with bar:
process(file)
bar.done()
Using the supress_exc=True argument will report statistic for failures
from raised exceptions but not raise the exception itself
This is not necessary to use bar as a Context Manager but you must use it as a Context Manager to get the exception suppressing behavior
Metadata
Release files for pyprogress-elunico 0.1.6
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 |
|---|---|---|---|---|
| pyprogress_elunico-0.1.6.tar.gz | 3.7 kB | Without provenance | Details for pyprogress_elunico-0.1.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyprogress_elunico-0.1.6-py3-none-any.whl | Python 3 | none | any | Details for pyprogress_elunico-0.1.6-py3-none-any.whl |
Total release size: 7.7 kB
Release files / pyprogress_elunico-0.1.6.tar.gz
| Download URL | pyprogress_elunico-0.1.6.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
65ba6b0a01f3db3cd88827ccad75cc3670d9c3cfd44815d1f2b33b054ba5a2a9
|
|
BLAKE2b-256 checksum How to use checksums |
594ea765be7f152e44f1daa79b8a77ad74059abbb595f20c13e5d4cfd09f77e7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.4
|
Release files / pyprogress_elunico-0.1.6-py3-none-any.whl
| Download URL | pyprogress_elunico-0.1.6-py3-none-any.whl |
|---|---|
| Size | 4.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
73acf3bf35b19afd532b90f7f6668c8fa06bff92729d95b5988926c7b9367ecc
|
|
BLAKE2b-256 checksum How to use checksums |
01bdbd1049b79de483267795512ed1184fc036135a2b7768b0a26bfca95c62f6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.4
|
Security for pyprogress-elunico 0.1.6
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.