New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merge to progressbar2 #855
Comments
Are there any features in |
Widgets are objects,
Custom variables + extendability, I guess. Also there are some features as spinners (but IMHO progressbars should be used as much as possible because they are more informative). |
Disclaimer 1: I'm the author of Progressbar 2 As for features that For example: import time
import progressbar
for i in progressbar.progressbar(range(3), redirect_stdout=True):
print('Processing %d' % i)
time.sleep(0.1) This results in:
Whereas 0%| | 0/3 [00:00<?, ?it/s]Processing 0
33%|███████▋ | 1/3 [00:00<00:00, 9.59it/s]Processing 1
67%|███████████████▎ | 2/3 [00:00<00:00, 9.67it/s]Processing 2
100%|███████████████████████| 3/3 [00:00<00:00, 9.63it/s] I'm aware of the redirecting of writes that optionally supported, but that's not integrated in such a way that it would work with logging for example. While I personally wouldn't be against merging the repositories, I don't think it's going to happen any time soon because the APIs between the two is very different and it would be hard to write a compatibility layer that translates one into the other. |
@wolph yes we use
|
These all are just workarounds. |
There are a few exceedingly rare cases where can be problematic but in most cases it works transparently without causing issues. As I said, it's definitely a maintenance hog to keep it working like that :P I should note that I never would have started this project if |
@wolph hah yes I started with |
That's very true :) As for the rewrite thing, I noticed another difference while looking through the source. I am working on an optional multi-bar approach which does use the move commands to function, but those will have the same downsides that they only function in a limited amount of shells. |
yes that's why we have I think the documentation is probably the main reason why |
Yes I've noticed that. Those submodules are a really nice touch to make it work in more environments :) As for the book, it very well might have been. I honestly don't keep track too much when it's on sale. I'm working on an updated version which hopefully addresses all of the issues the previous book had so if you have any suggestions please let me know :) |
For what it's worth, for some use cases one relevant difference might be the license. |
read the [known issues]
progressbar2 has a concept of widgets. It allows library user to set up what is to be shown.
I guess it may make sense to merge the 2 projects.
@wolph
The text was updated successfully, but these errors were encountered: