Fraser Nevett
f6390b76f2
Fixed #64 -- ensure hidden cursor is reshown at exit.
2019-06-04 13:26:06 +01:00
Georgios Verigakis
80a91b9c78
Merge pull request #68 from edwardbarak/patch-1
...
Add additional help when AttributeError is raised with regards check_tty
2019-05-06 11:47:07 +03:00
Edward Barak
57a36d49f2
Add help message to check_tty AttributeError
2019-04-28 22:44:01 -04:00
Georgios Verigakis
efeb57282b
Bump version
1.5
2019-03-06 09:25:32 +02:00
Georgios Verigakis
61627a8642
Merge pull request #61 from pquentin/throttle-eta
...
Update avg/eta/eta_td only once per second
2019-02-01 16:24:21 +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
1b326504ce
Merge pull request #57 from Kilo59/patch-1
...
Add Pypi link and instuctions to ReadMe
2018-10-12 14:00:07 +03:00
Georgios Verigakis
b95b764e37
Merge pull request #54 from dotlambda/patch-1
...
Include tests in PyPI tarball
2018-10-12 13:59:02 +03:00
Gabriel
2eeff94083
Add Pypi link and instuctions to ReadMe
...
Made Pypi badge link to Pypi page.
Added Installation instructions
2018-10-11 10:48:10 -04:00
Robert Schütz
8cf7faa4e3
Include tests in PyPI tarball
2018-10-10 09:32:21 +02:00
Georgios Verigakis
4b7c9388f4
Remove SigIntMixin
...
This was meant mostly as an example, it doesn't justify its own file.
2018-09-13 10:37:21 +03: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
Georgios Verigakis
d407334bcf
Merge pull request #29 from TobiX/contextmanager
...
Allow usage as a context manager.
2018-08-01 13:08:02 +03:00
Tobias Gruetzmacher
086cfd5599
Allow usage as a context manager.
2018-08-01 12:01:56 +02:00
Georgios Verigakis
6553b7b207
Implement write using \r instead of \b
...
This is to appease PyCharm that doesn't implement \b.
2018-07-10 13:32:05 +03:00
Georgios Verigakis
1f19b5b61c
Add flag to override tty check
2018-07-10 13:23:43 +03:00
Georgios Verigakis
f5c911ed83
Bump
1.4
2018-06-25 09:06:26 +03:00
Georgios Verigakis
5d52c5b299
Avoid unprintable chars on Windows
...
Fixes #36
2018-05-31 09:47:00 +03:00
Georgios Verigakis
a83f91f4b8
Handles the case where self.file is None
...
Fixes #46
2018-03-13 15:53:27 +02:00
Georgios Verigakis
292a031c4b
Revert "Fixed broken character in windows"
2018-01-31 10:22:22 +02:00
Georgios Verigakis
83f3b79137
Merge pull request #44 from LiamGow/patch-1
...
Fixed broken character in windows
2018-01-30 09:43:54 +02:00
LiamGow
84c3b9197a
Fixed broken character in windows
2018-01-29 21:39:28 -08:00
Georgios Verigakis
715a2e130f
Fix copy paste typo
2017-04-10 14:40:06 +03:00
Georgios Verigakis
33ab0be1ec
Bump
1.3
2017-04-10 14:34:56 +03:00
Georgios Verigakis
91d9d3cb05
Merge pull request #38 from moreati/pixels
...
PixelBar and PixelSpinner, based on Braille characters
2017-04-01 11:50:38 +03:00
Georgios Verigakis
6661bcbe1d
Merge branch 'master' into pixels
2017-04-01 11:50:05 +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
Alex Willmer
7ecf7594a4
Add PixelSpinner, based on braille characters
2017-03-16 20:33:50 +00:00
Alex Willmer
92665ef189
Add PixelBar, based on braille characters
2017-03-16 20:31:35 +00:00
Georgios Verigakis
c5043685c5
Merge pull request #32 from aduriseti/master
...
Reduce I/O Cost - no change to ETA algorithm
2016-10-30 10:25:00 +02: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
e61e49bbf4
Add some variance
2016-03-06 17:46:29 +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
Georgios Verigakis
0435756cf7
Add a demo gif
2016-01-28 20:47:23 +02:00
Georgios Verigakis
ded975221b
Merge branch 'pr/15'
2016-01-27 11:42:30 +02:00
Georgios Verigakis
5e45abaa95
Merge branch 'pr/19'
2016-01-27 11:38:43 +02:00
Georgios Verigakis
80b54c1228
Merge branch 'pr/17'
2016-01-27 11:36:22 +02:00
Georgios Verigakis
36ba012ffb
Fix rounding error
...
Reported by paparomeo
2016-01-27 11:32:36 +02:00
Georgios Verigakis
f1bfb28df9
Merge branch 'pr/10'
2016-01-27 11:14:24 +02:00
Marc Abramowitz
ee7831362c
README.rst: Display class names in monospace font
2014-12-14 16:50:13 -08:00
Marc Abramowitz
85b59e0a1d
README.rst: Syntax highlight Python code
...
Works on both GitHub and PyPI (after you do `python setup.py register`)
2014-12-14 15:51:04 -08: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
Alireza Nourian
288ddf1ec5
use unicode_literals instead of old unicode specifier
...
this brings Python 3.2 compatibility
2013-12-25 09:15:48 +03:30
Giorgos Verigakis
723024a296
Bump
2013-11-28 14:49:16 +08:00
Giorgos Verigakis
a5981103cf
Update documentation
2013-11-28 13:49:12 +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