I find the new version pip(package installer for Python) has a colorful progress bar to show the downloading progress. How can I do that?
Advertisement
Answer
pip itself is using the rich package! In particular, their progress bar docs show this example:
JavaScript
x
5
1
from rich.progress import track
2
3
for n in track(range(n), description="Processing..."):
4
do_work(n)
5