Toby Fox
bdce3afb5e
Fix typo in test_progress.py
2023-05-09 21:49:28 +01:00
Georgios Verigakis
0a5fc077b2
Merge pull request #99 from VSS-DEV/test-install
...
Update setup.py
2021-11-15 10:09:14 +02:00
VSS-DEV
3beeeb7716
Update setup.py
2021-11-14 15:33:43 +03:00
Georgios Verigakis
e3dbaf52e1
Bump version
1.6
2021-07-28 09:51:10 +03:00
Georgios Verigakis
ca6310204e
Use the formal form everywhere
2020-07-20 15:42:07 +03:00
Georgios Verigakis
b8fdfc782d
Add color support
...
Fixes #27
2020-07-20 15:34:23 +03:00
Georgios Verigakis
0faea87060
Style change
2020-07-20 13:41:50 +03:00
Georgios Verigakis
64671e1ceb
atexit.unregister does not exist in Python 2.7
...
Implement this with __del__ instead
2020-07-20 13:32:47 +03:00
Georgios Verigakis
12e46ed702
Do not use ANSI to clear line
2020-07-20 13:22:48 +03:00
Georgios Verigakis
d325dab247
Support formatted messages to remaining progress types
...
This is a followup to the changes for #76 . We can now remove the write function.
2020-07-20 12:46:43 +03:00
Georgios Verigakis
e5c2368c6b
Merge pull request #79 from mathstuf/avoid-division-by-zero
...
progress: avoid division by zero
2020-07-20 12:39:10 +03:00
Georgios Verigakis
03d4adbf73
Merge pull request #78 from mathstuf/iter-value-as-property
...
iter: expose the iteration value to the object
2020-07-20 12:38:34 +03:00
Georgios Verigakis
42fd17f67c
Merge pull request #77 from mathstuf/spinner-format-message
...
spinner: support formatted messages
2020-07-20 12:35:01 +03:00
Ben Boeckel
0d93258f52
progress: avoid division by zero
...
This occurs otherwise with `bar.iter([])`.
2020-03-31 15:14:55 -04:00
Ben Boeckel
4af220e573
iter: expose the iteration value to the object
...
Mentioned in #76 .
2020-03-30 20:23:15 -04:00
Ben Boeckel
25cefd12db
spinner: support formatted messages
...
Fixes #76
2020-03-30 20:14:43 -04:00
Georgios Verigakis
1ed414290f
Merge pull request #69 from frasern/atexit
...
Fixed #64 -- ensure hidden cursor is reshown at exit.
2019-07-02 15:12:13 +03:00
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