r/Python • • Dec 21 '20

Discussion We hand-picked the best Python libraries released in 2020

Hello,

Every year, we produce a list of the top 10 Python libraries released or popularized that year.

2020 was a hard one, since there are so many good choices! Therefore, we decided we should list many more :) Most are around data science / machine learning.

The full list is available here: https://tryolabs.com/blog/2020/12/21/top-10-python-libraries-of-2020/

So:

  • What do you think about our picks?

  • Did we miss any good one? Especially non-data science libraries.

1.3k Upvotes

73 comments sorted by

View all comments

9

u/reddittestpilot Dec 21 '20

Interesting selection of libraries, thanks!

And you have included my favourite Python GUI, so it must be a good list ;-)

2

u/iiMoe Dec 21 '20

Wut does it have that Tkinter and Pyqt5 doesn't? I wanna know from someone who used it so i consider switching

5

u/Retropunch Dec 21 '20

As it says in the article, the biggest difference is that its drawing the gui each frame (like a video game).

As others have pointed out, it's only really for small GUIs and last time I checked in they still had a really odd/non-scalable way of handling layouts. It's definitely good for small GUIs a d does have promise though.

5

u/cubic_unit Dec 22 '20

My two cents: DPG shines in its development speed. You can make GUIs that handle a LOT of dynamic data, without next-to-zero fuss. If your job involves building or maintaining lots of internal tools, this library is amazing. If you need to deploy your app to the public, I wouldn't recommend this toolkit (yet).

I'm excited to see DPG reach v1.0 because my experience with it has been overwhelmingly positive.

7

u/Username_RANDINT Dec 21 '20

I usually find these "simple" GUI libraries ok for very simple applications, but if you need some finer control of the widgets/UI, a more complex UI, custom widgets, etc, they become limiting really fast and nothing beats a proper framework like Qt or GTK. Also they look ugly.

3

u/reddittestpilot Dec 22 '20

Compared to Tkinter, it's more modern and fast. Dear PyGui is an extended wrapper around Dear ImGui which is written in C++ and uses the GPU. Dear ImGui is used for interfaces for game development, so speed is everything. An example of this would be its dynamic plotting. Dear PyGui provides bindings for Python and adds functionality, so that it is getting more functionality of a traditional GUI while maintaining its speed.

Compared to PyQt, one main difference is the license. Dear PyGui has an MIT license. Qt has a dual license and is crazy expensive if you use it commercially. I agree with most comments here. Dear PyGui is not nearly as polished or feature rich as Qt, but it is fast and bloat-free. On Windows, it's only 1Mb.

For me personally, it's just really easy to understand. No OOP or classes are required. They started development about half a year ago, using Dear Imgui as a starting point, and development is going at a rapid pace with weekly releases, adding functionality and fixes quickly. The developers and community on Discord are friendly and helpful, usually responding within hours (often minutes) after asking questions.

See this technical comparison of Python GUI frameworks for details.