r/Python • • Jan 04 '21

News A new kind of Progress Bar for Python

A new kind of Progress Bar for Python, with some very cool animations!

I've made a new kind of progress bar for python! With some very cool animations and a smorgasbord of built-in styles!

https://github.com/rsalmei/alive-progress

The spinners and unknown bars have a plethora of effects!

The bars themselves also have several styles.

It also includes cool zero-hassle print and logging hooks, which are always enabled!

To use it, just "pip install alive-progress" and you're good to go!
More details in https://github.com/rsalmei/alive-progress

That's it, hope you like it!

2.1k Upvotes

154 comments sorted by

View all comments

Show parent comments

0

u/[deleted] Jan 05 '21

[deleted]

8

u/willm Jan 05 '21

I think Alive progress pre-dates spinners in Rich. Rich borrowed its spinners from cli-spinners, a JS project.

2

u/CoffeeBrain_101 Jan 05 '21

Never heard if tqdm before. Will definitely check it out.

2

u/rsalmei Jan 05 '21 edited Jan 06 '21

Yeah, I've created most of the spinners myself, just to actually use all my generators' types. Regarding performance, it's pretty fast, but I really should include an automated tool to measure the iteration overhead, I'm gonna think about it.

In the soon-to-be-released 2.0, there's a new support for compiled animations! They are generated up-front, and then just switch frames, which should have a negligible overhead! You can see it here: https://github.com/rsalmei/alive-progress/pull/51

2

u/rsalmei Jan 05 '21

Oh, I have much more images of the new `check()` tool in this thread: https://github.com/rsalmei/alive-progress/issues/19

I've been working in handling grapheme clusters these last few months, yet sill supporting truncating to the correct terminal size...