looptimer
Progress bar style loop timer with projected time-to-completion.
Installation
pip install looptimer
Usage
Directly wrap any iterable with timedloop to get iteration progress status:
from looptimer import timedloop
for _ in timedloop(range(100), label='foo'):
...
Sample output
Optional arguments
| Argument | Type | Default | Description |
|---|---|---|---|
label |
str | None | Descriptive label printed to the left of the progress bar |
bar_char |
str | ▢ | Character used to fill in the progress bar |
bar_width |
int | 20 | Character width of the progress bar |
animate |
bool | True | Disable to print each update on a new line (useful when interspersed with other log messages) |
max_refresh_secs |
float | 0.1 | Use to throttle print frequency for fast-iterating loops |
Metadata
Release files for looptimer 1.1.0
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 |
|---|---|---|---|---|
| looptimer-1.1.0.tar.gz | 4.7 kB | Without provenance | Details for looptimer-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| looptimer-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for looptimer-1.1.0-py3-none-any.whl |
Total release size: 9.9 kB
Release files / looptimer-1.1.0.tar.gz
| Download URL | looptimer-1.1.0.tar.gz |
|---|---|
| Size | 4.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
63222f3e1da3c70cc219ea701c371f87183cde0b7a0bb0e6091737983a5c338e
|
|
BLAKE2b-256 checksum How to use checksums |
cc5c1f5775bc1e021aae1c9b164feae1dbcf7bff8fda44c5dd9cac29a6a7fbd2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.2
|
Release files / looptimer-1.1.0-py3-none-any.whl
| Download URL | looptimer-1.1.0-py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
35bb432a6c3ef6488cf4de8c86456eb9fbb77a71a541208a4e5edd9cf9b9485b
|
|
BLAKE2b-256 checksum How to use checksums |
38f65acbe821d0ba6741a798e9f6ebad21a33b730255076d0d090d49d38d7fb6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.2
|
Security for looptimer 1.1.0
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.