-
-
Notifications
You must be signed in to change notification settings - Fork 606
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
Make use of rich for progress bar #863
Conversation
For things like this, I've found that rich provides more flexibility and a better UX. I used tqdm in twine and it worked great but we switched to Rich and I've used it on a bunch of projects. It's far nicer and would give us other nice formatting features |
The module rich has an excellent and versatile implementation of a progress bar for Python code. Bandit has an existing custom progress indicator. This change makes use of rich for a more visually pleasing progress bar and more informational by including metrics. The down side is that this does add another dependency. But I think it can be useful in the future when implementing multi-process processing of source code since rich is well adapted for that. https://github.com/Textualize/rich Signed-off-by: Eric Brown <browne@vmware.com>
rich python package
This looks like an extreme overkill for rendering a simple progress bar. Are you sure that replacing a progress bar with a nicer one that necessary? |
pipdeptree for bandit 1.7.4 was
for bandit 1.7.5 it shows
|
venv weights 11.1 megabytes (~40%) more with the new version of bandit. |
Start with something small (a progress bar) and then enrich the rest of the experience. Yes it's worth it |
The module rich has an excellent and versatile implementation of a
progress bar for Python code. Bandit has an existing custom progress
indicator.
This change makes use of rich for a more visually pleasing progress
bar and more informational by including metrics.
The down side is that this does add another dependency. But I
think it can be useful in the future when implementing multi-process
processing of source code since rich is well adapted for that.
https://github.com/Textualize/rich
Signed-off-by: Eric Brown browne@vmware.com