Skip to main content

Estimated time of availability calculator

Project description

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

Try it online

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"
# }

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

estipy-0.0.4.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

estipy-0.0.4-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file estipy-0.0.4.tar.gz.

File metadata

  • Download URL: estipy-0.0.4.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for estipy-0.0.4.tar.gz
Algorithm Hash digest
SHA256 c6dd3096b612e2be1c1c2e0e377a731fdd617ddedf194614284da1f1159c07a9
MD5 a3ed52cd592159bdeb6b193f98d654e8
BLAKE2b-256 d9a1b56c3b9ba35b5838293f3d0a4ff571969e48e7702f9ef683075aa60ac92b

See more details on using hashes here.

File details

Details for the file estipy-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: estipy-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for estipy-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 4aa9227b7964293638440419da344dc89417fd0c5c3eaf9465d9c2cf83236eda
MD5 230d618ea62f5e788d6cb4bed9e6aa20
BLAKE2b-256 6bf729005347846dbcb8e3764ee275d759f50b560db6d6d6bee881048f75981e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page