Skip to main content

ETA Progress bar for command-line utilities

Project description

ETA
===

This is a python package that will create progress bars for command-line programs.

Example usage:

from eta import ETA
eta = ETA(ticks)
for foo in bar:
eta.print_status()
eta.done()

Or, file based usage (calls tell() to get progress)

fobj = open(fname)
eta = ETA(os.stat(fname).st_size, fileobj=fobj)

for line in fobj:
eta.print_status(extra="extra message")
...
eta.done()

The output is something similar to:

20.0% - 0:04 [====> ] ETA: 0:17 (Optional messages go here)

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

eta-0.9.tar.gz (2.8 kB view details)

Uploaded Source

File details

Details for the file eta-0.9.tar.gz.

File metadata

  • Download URL: eta-0.9.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for eta-0.9.tar.gz
Algorithm Hash digest
SHA256 3186ee3e115a3305f269578e75ad05879297d2ca5854282a36ae877ad0d11aa1
MD5 34d0a5bbbce98a483c16c5edbb659f1f
BLAKE2b-256 62a1451c002f165c146489ede02e2dbc68b1aebf84f3b9ecf8a6266b2b026e6e

See more details on using hashes here.

Supported by

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