estipy
Estimate time of availability of long running for loops.
Usage
import time
from estipy import ETA
# Some data to be processed
data = list(range(42))
for num, _ in ETA(data):
# Do something useful here that takes a little time
time.sleep(0.1)
# Example output:
# 13/42 = 31.0%, ETA Delta 0:00:02.685864, ETA 2021-07-04 14:50:12.486002
Or disable auto print and access all eta data
for num, eta in ETA(data, auto_print=False):
# Do something useful here that takes a little time
time.sleep(0.1)
print(eta.json(indent=' '))
# Example output:
# {
# "total": {
# "time": "0:00:03.762402",
# "absolute": 42,
# "percentage": 100
# },
# "remaining": {
# "time": "0:00:02.956173",
# "absolute": 33,
# "percentage": 78.57142857142857
# },
# "done": {
# "time": "0:00:00.806229",
# "absolute": 9,
# "percentage": 21.428571428571427
# },
# "eta": "2021-07-04 18:05:35.103308"
# }
Release files for estipy 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| estipy-0.0.4.tar.gz | 4.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| estipy-0.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.5 kB
Release files / estipy-0.0.4.tar.gz
| Download URL | estipy-0.0.4.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c6dd3096b612e2be1c1c2e0e377a731fdd617ddedf194614284da1f1159c07a9
|
|
BLAKE2b-256 checksum How to use checksums |
d9a1b56c3b9ba35b5838293f3d0a4ff571969e48e7702f9ef683075aa60ac92b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5
|
Release files / estipy-0.0.4-py3-none-any.whl
| Download URL | estipy-0.0.4-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4aa9227b7964293638440419da344dc89417fd0c5c3eaf9465d9c2cf83236eda
|
|
BLAKE2b-256 checksum How to use checksums |
6bf729005347846dbcb8e3764ee275d759f50b560db6d6d6bee881048f75981e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5
|