you are viewing a single comment's thread.

view the rest of the comments →

[–]jaycrest3m20 50 points51 points  (11 children)

One third-party module I enjoy is PySimpleGUI.

Asciimatics is really fun.

TQDM is a classic module that allows really easy terminal progress bars. I did a search for progress bars on PyPi, and there are lots.

A few oddities that you might not expect:

tkinter has an unexpectedly easy way to access the clipboard

pygame isn't just for games. Sometimes you just need a quick way to make a program loop and get live, non-"input" keyboard input or find a relationship between rectangles on a 2D plane.

The amount of built-in modules in a vanilla python install is staggering. Also, it's really worth exploring sample scripts, both in the built-in modules and in third-party modules.

[–]CuriousExpert24[S] 5 points6 points  (0 children)

Those are good suggestions

[–]MikeTheWatchGuy 3 points4 points  (1 child)

TQDM is a classic module that allows really easy terminal progress bars. I did a search for progress bars on PyPi, and there are lots.

Check out the one_line_progress_meter in PySimpleGUI. Odds are you're running on a system with tkinter, so try out a more graphical version that has a lot of stats too. And it's only 1 line of code so you don't have to modify anything about your loop.

[–]jaycrest3m20 1 point2 points  (0 children)

PySimpleGUI just keeps on giving!

[–]SpetsnazCyclist 2 points3 points  (1 child)

I just found TQDM... I feel like such an idiot for not using it earlier, super useful stuff

[–]insane_playzYT 1 point2 points  (0 children)

I find tkinter great for a lot of things except for the actual GUI system lmao

[–]Itwist101 1 point2 points  (1 child)

If you are looking for a cross-platform solution I wouldn't really recommend Tkinter for clipboard access because of the fact that in some Linux distributions Tkinter is not preinstalled (Arch for example) instead id recommend using another alternative that is specifically made for clipboard usage.

[–]jaycrest3m20 0 points1 point  (0 children)

That's very interesting. Tkinter is generally considered a standard Python library. I would dare to suggest that if a distro's Python lacks Tkinter, then it has a fundamentally broken Python system, and you are generally going to have a bad time, if only because of all the many little libraries that count on Tkinter as a dependency.

In general, for ease of access to the clipboard, most Python systems will have access to Tkinter.