Skip to content

Commit

Permalink
Readme additions
Browse files Browse the repository at this point in the history
  • Loading branch information
mbreese committed Oct 30, 2012
1 parent 455cfc1 commit a677370
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,15 @@ 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)

Expand Down

0 comments on commit a677370

Please sign in to comment.