Fraser Nevett
f6390b76f2
Fixed #64 -- ensure hidden cursor is reshown at exit.
2019-06-04 13:26:06 +01:00
Edward Barak
57a36d49f2
Add help message to check_tty AttributeError
2019-04-28 22:44:01 -04:00
Georgios Verigakis
efeb57282b
Bump version
2019-03-06 09:25:32 +02:00
Quentin Pradet
c1e07104e1
Update avg/eta/eta_td less frequently
...
When the progress bar is updated frequently (every few milliseconds),
the eta can change so quickly that it's impossible to read.
This commit updates the average while sma_window is being filled, then
after every second.
This means we're calling monotonic/time often, but those calls take less
than 100 nsec per loop on Linux, Windows and macOS [0], which is
equivalent to one attribute lookup or two.
[0]: https://github.com/python-trio/trio/issues/33
2019-02-01 18:16:14 +04:00
Quentin Pradet
326413a271
Use time.monotonic if available
2018-11-16 17:22:45 +04:00
Georgios Verigakis
d9d40736d6
Fold the mixins in __init__.py
...
The 2 mixins were almost the same, simplify the codebase by merging them in.
2018-09-13 10:34:24 +03:00
Tobias Gruetzmacher
086cfd5599
Allow usage as a context manager.
2018-08-01 12:01:56 +02:00
Georgios Verigakis
f5c911ed83
Bump
2018-06-25 09:06:26 +03:00
Georgios Verigakis
33ab0be1ec
Bump
2017-04-10 14:34:56 +03:00
Georgios Verigakis
d440d5bbaf
Revert to simplistic eta estimation but make it easier to plug different algorithms
2017-04-01 11:44:02 +03:00
aduriseti
f1f6ea57da
prevents I/O from dominating computation time when using progress
2016-09-26 21:17:01 -07:00
Georgios Verigakis
0b668811f9
Use xput for the calculation of eta
...
Refer to #24 for the discussion.
2016-03-08 09:04:18 +02:00
Georgios Verigakis
61ac9b6980
Improve stats when progressing too quickly
...
Do not update stats if time between data points is less than
`time_threshold`. This should fix the issue reported in #24 .
2016-03-06 17:37:49 +02:00
Sindre Johansen
94ff8dd979
Now iter() calls finish even on an exception
...
As I reported in issue #14 raising an exception in a loop over a
iterator got from a iter() call will not finalize the bar.
This commit uses a try, finally block to ensure that finish is always
called
2014-12-10 14:23:42 +01:00
Giorgos Verigakis
723024a296
Bump
2013-11-28 14:49:16 +08:00
Giorgos Verigakis
120b3e53b1
Refactor
2013-11-28 13:34:14 +08:00
Giorgos Verigakis
8b02a5b59f
Allow custom properties in format strings
2013-11-28 13:05:05 +08:00
Giorgos Verigakis
e5cffc8c72
Add elapsed seconds
2013-11-25 12:53:30 +08:00
Giorgos Verigakis
32dc3db6f1
Bump version
2013-01-22 10:57:06 +08:00
Giorgos Verigakis
84a67ab6cf
Optionally increment by more than 1 in next
...
Fixes #4
2013-01-22 10:47:43 +08:00
Shawn Siefkas
22dcfc24a7
Fixing the eta logic
2012-08-26 13:52:04 -05:00
Giorgos Verigakis
153733662f
Bump version
2012-07-28 09:26:53 +08:00
Giorgos Verigakis
a3fb1b4fcc
Add a start method
...
Use it to show progress without advancing
2012-07-18 10:50:56 +08:00
Giorgos Verigakis
32afe021ea
Remove logic from update of base classes, so subclasses don't have to call super
2012-04-20 18:09:29 +03:00
Giorgos Verigakis
65471d7609
Add a manifest file to include README.rst
2012-04-18 20:25:42 +03:00
Giorgos Verigakis
c8d37e0ee2
Initial commit
2012-04-18 19:26:56 +03:00