Skip to main content

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)

Source distribution for etawatch 1.1.3
File Size Uploaded
etawatch-1.1.3.tar.gz 42.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for etawatch 1.1.3
File Interpreter ABI Platform
etawatch-1.1.3-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

1.1.3 This release

2 release files

1.1.2

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page