https://github.com/thunderpoot/eta
Calculate ETAs of running tasks by extrapolating from timestamps / current progress
https://github.com/thunderpoot/eta
Last synced: about 1 year ago
JSON representation
Calculate ETAs of running tasks by extrapolating from timestamps / current progress
- Host: GitHub
- URL: https://github.com/thunderpoot/eta
- Owner: thunderpoot
- License: mit
- Created: 2025-05-26T18:35:33.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-05-26T18:52:34.000Z (about 1 year ago)
- Last Synced: 2025-05-26T19:51:19.458Z (about 1 year ago)
- Language: Python
- Size: 2.93 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ETA Calculator (`eta.py`)
A Python script to estimate when a long-running task will finish, assuming each step takes the same amount of time to complete. Not a perfect thing, but it's better than nothing if you forgot to add [`tqdm`](https://github.com/tqdm/tqdm) to your project.
## Usage
```bash
python eta.py
```
```
$ python eta.py 65 474 "2025-05-26 17:32:55,745" "2025/05/26 18:29"
=== ETA CALCULATION ===
Processed: 65 units over 56.07 min
Rate: 1.16 units/min
Remaining: 409 units
Time left: 3.53e+02 min (~5h 52m)
ETA: 2025-05-27 00:21 UTC
=======================
```
If no arguments are provided, the script will prompt you interactively. You can leave the 'current time' blank during interactive mode, and the script will automatically use the **current UTC time**.
Accepts almost anything as time format (ISO, slashes, AM/PM, etc.)
## Requirements
```bash
pip install -r requirements.txt
```