Commit Graph

51 Commits

Author SHA1 Message Date
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
Giorgos Verigakis
41d5f916c1 Fix Python 3 output 2013-11-25 12:52:20 +08:00
Giorgos Verigakis
32dc3db6f1 Bump version 1.1 2013-01-22 10:57:06 +08:00
Giorgos Verigakis
fc605a7217 Encode to UTF8 before printing
Fixes issues with unicode in OSX 10.8
2013-01-22 10:53:41 +08:00
Giorgos Verigakis
84a67ab6cf Optionally increment by more than 1 in next
Fixes #4
2013-01-22 10:47:43 +08:00
Giorgos Verigakis
8f69000ab6 Add a SIGINT handling mixin
Inspired by @glenbot's pull request
2013-01-22 10:21:10 +08:00
Giorgos Verigakis
ddab8c7a2b Merge pull request #2 from shawnsi/master
ETA Logic
2013-01-21 17:54:00 -08:00
Shawn Siefkas
22dcfc24a7 Fixing the eta logic 2012-08-26 13:52:04 -05:00
Giorgos Verigakis
153733662f Bump version 1.0.2 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
3a3dea7069 Add hide/show cursor support 2012-05-09 16:57:08 +03:00
Giorgos Verigakis
c76da39d1a Use ANSI clear line instead of tracking line width 2012-05-09 16:56:17 +03: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 1.0.1 2012-04-18 20:25:42 +03:00
Giorgos Verigakis
a0c9dc4df2 Fix documentation typos 2012-04-18 19:37:52 +03:00