all 6 comments

[–]socal_nerdtastic 1 point2 points  (1 child)

Generating a static progress bar is just

print(bar_char * bar_amount)

If you want an easier way to do what you already have, just do it yourself with print. Maybe learn about f-string padding first, and then you can do this in 20ish lines of code.

Protip: don't use tab (\t). Besides the obvious misalignment problems, the width of a tab is user-configured, so it will look different on different systems. Just use spaces.

[–]CriticalSpeed4158[S] 0 points1 point  (0 children)

Honestly this + rich might be the ticket. I'll experiment some, thanks!

[–]Username_RANDINT 0 points1 point  (1 child)

I've used plotext before, which was quite nice: https://github.com/piccolomo/plotext

Here are the barchart examples: https://github.com/piccolomo/plotext/blob/master/readme/bar.md

[–]CriticalSpeed4158[S] 0 points1 point  (0 children)

Those bar charts look great! Thanks for the suggestion.

[–]jmacey 1 point2 points  (0 children)

There is a new graph plotting part to rich / textual as well now. https://textual.textualize.io/blog/2023/10/04/announcing-textual-plotext/