Etawatch
Like a stopwatch, but it also gives you an ETA.
Example usage:
# construction immediately starts timer
eta_watch = etawatch(5)
for i in range(number_of_laps):
# do some work
time.sleep(random.randint(1, 3))
eta, lap = eta_watch()
print(f'Lap: {i+1} | Time: {lap:.2f} sec | ETA: {eta:.2f} min')
Another example:
for i, (eta, lap) in enumerate(etawatch(5)):
# do some work
time.sleep(random.randint(1, 3))
print(f'Lap: {i+1} | Time: {lap:.2f} sec | ETA: {eta:.2f} min')
It can optionally predict ETA by only the last n number of runs.
# will only calculate ETAs based on last 3 lap times
eta = etawatch(10, 3)
Metadata
Release files for etawatch 1.1.3
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 |
|---|---|---|---|---|
| etawatch-1.1.3.tar.gz | 42.0 kB | Without provenance | Details for etawatch-1.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| etawatch-1.1.3-py3-none-any.whl | Python 3 | none | any | Details for etawatch-1.1.3-py3-none-any.whl |
Total release size: 69.2 kB
Release files / etawatch-1.1.3.tar.gz
| Download URL | etawatch-1.1.3.tar.gz |
|---|---|
| Size | 42.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
77df12ee6a19891b2e271af5b304a3b14e0f57cfb4113335df3d8e33d52a7f4d
|
|
BLAKE2b-256 checksum How to use checksums |
2f639f35964debb92fc62f4cdbfdda77e9e424bc707a53a96b5e460e596636e6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.1 CPython/3.12.6
|
Release files / etawatch-1.1.3-py3-none-any.whl
| Download URL | etawatch-1.1.3-py3-none-any.whl |
|---|---|
| Size | 27.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0dcf53bc8caf8f800f0f5740bab1cda9efeae7c5df1a28bca042c60a2a4485ab
|
|
BLAKE2b-256 checksum How to use checksums |
8bca9052ea2a241e32c5cf0d6f5c0efa7491f9d4e07c3908c7a235b1176127fe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.1 CPython/3.12.6
|
Security for etawatch 1.1.3
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.