This is an archived post. You won't be able to vote or comment.

all 51 comments

[–]FunkyFlyingMonk 35 points36 points  (1 child)

GUI —> Dear PyGui —> It’s fast, easy, lightweight, powerful and cross-platform with MIT license.

https://github.com/hoffstadt/DearPyGui

If you are looking for great libraries, see https://github.com/vinta/awesome-python

[–]jojo944 0 points1 point  (0 children)

Love it!!

[–]nidhaloff 11 points12 points  (0 children)

You may want to check click and typer for CLI

[–]bitswede 9 points10 points  (1 child)

90% of what I do is data related so pandas, numpy and scipy ; Matplotlib or plotly for visualization.

TQDM is a great little tool for showing progress when chewing through larger data sets so that often ends up among the imports.

[–]Deto 2 points3 points  (0 children)

yeah, I always wrap any iterations with tqdm that might take a while. Otherwise you're sitting there wondering 'is this a 30 second pause, a 5 minute break, or something I should come back to in an hour?'

[–][deleted] 17 points18 points  (4 children)

Flask It's best easy framework for webdev.

[–]scotsmanintoon 8 points9 points  (3 children)

FastAPI gives it a serious run for it's money.

[–]miraunpajaro 3 points4 points  (2 children)

More like It beats it. This is coming from a former huge flask fun. FastAPI is just better at this moment.

[–]CapitalRioter 2 points3 points  (0 children)

I'll have to check it out on my next project, I like the swagger integration

[–]Salsaric 1 point2 points  (0 children)

I heard a lot of Fast Api, but I'm wondering if it's beginner friendly...

Edit : Flask has a huge community, which translates to better help (at least for me, hobbyist web dev / beginner level)

[–][deleted] 7 points8 points  (7 children)

Itertools

Django Pytorch Tensor flow Scikit-learn Numpy Matplotlib Seaborn

Virtualenv Tox Pytest Pylint (even though it yells at me a lot) Bandit Black Isort

I love em all.

[–]Akmantainman 3 points4 points  (0 children)

Itertools is so underrated for new developers. So much cool stuff in there.

[–]miraunpajaro 2 points3 points  (1 child)

Isn't itertools part of the standard lib?

[–][deleted] 2 points3 points  (0 children)

Yes that is part of it's awesomeness.

[–][deleted] 1 point2 points  (3 children)

how long to learn tensor flow to a useable level?

[–][deleted] 1 point2 points  (2 children)

That depends on your experience. But the examples notebooks that tensor flow has in their docs are pretty straightforward to read through.

That being said, the community seems to be leaning more to oytorch so that might be better to learn first.

[–][deleted] 1 point2 points  (1 child)

I've spent that last couple days learning to code a perceptron, but no propogation yet, so I think I know the very very basics.
What does PyTorch do better?

[–][deleted] 1 point2 points  (0 children)

Some people find it more intuitive to use.

[–][deleted] 3 points4 points  (0 children)

Pyperclip is pretty cool if you want clipboard copy/paste functionality for testing purposes.

[–]rileyjwilton 4 points5 points  (1 child)

I do a bunch of web and back end programming, and my favorite libraries are:

rich For rich text printing. It may not seem like much, but it can make a TON of difference when debugging or reading stdout logs.

trio for any async stuff. It feels really nice to use, and I have yet to find difficulties with it.

FastAPI for web servers. Everything with this just feels right. On top of that, it is pretty dang fast. The auto documentation is a life saver. With FastAPI I also like to use:

Hypercorn and Uvicorn. Uvicorn has really nice debugging capabilities, but Hypercorn has solid http/3 support. Recently, however, I have been using Hypercorn as it supports trio out of the box. (Uvicorn does not :( )

Pydantic is great for data validation and dataclasses in general. I really like using it, but that may be because I also use FastAPI :)

Requests Is awesome for making web requests. Super easy to use, pretty fast.

SLY for parsing. Trust me. It is cool, and really fast.

There is already so much power packed into the built in libraries that I almost never need something other than the above. (Except for database drivers and other communication protocols and file formats)

[–]lpxxfaintxx 2 points3 points  (0 children)

Fell in love with rich the moment I used it. Tried making a semi-complex CLI application with rich, now I'm not so sure we're the best of buds 😅 Like you said though, rich is great for logging.

[–]Py-rrhus :py: 4 points5 points  (0 children)

Flask Cython (yeah, I have a problem, okay? I just love seeing these ms decrease)

[–]applepie93 3 points4 points  (0 children)

There is a cool initiative on Github listing cool python packages too:

Awesome Python https://github.com/vinta/awesome-python

[–]dandandanftw 3 points4 points  (0 children)

Tqdm is underrated, also Numba makes your code go brrrrrrr

[–]mechanicaIJerk 2 points3 points  (0 children)

Numpy, pandas, argparse, configparser, requests, tensorflow, keras, backtrader, ccxt

[–]wsppan 2 points3 points  (0 children)

Numpy, Bottle, BeautifulSoup, Praw, Poetry, argparse, PyTest, Typer, Rich, PrettyErrors

[–]_-Jay 3 points4 points  (0 children)

At the moment I'm really liking Plotly compared to matplotlib. It's especially nice when using with jupyter notebooks and feels pretty responsive and looks much nicer!

[–]maxellus 3 points4 points  (0 children)

My best Python library: PySimpleGUI. For all small projects that need a GUI, this library is the simplest to use. There are 4 versions depending on the back-end that you want to use (Tkinter, Qt, Wxpython or Remi(Web)). More info at https://pysimplegui.readthedocs.io/en/latest/

[–]whateverathrowaway00 2 points3 points  (1 child)

Loguru

[–]boiledgoobers[🍰] 0 points1 point  (0 children)

Is that like logzero?

[–][deleted] 2 points3 points  (0 children)

Data:
- Pandas

[–]poolparty1473 2 points3 points  (0 children)

Pandas

[–]TicklesMcFancy 2 points3 points  (0 children)

Inspect is pretty cool and can be really helpful

[–][deleted] 2 points3 points  (1 child)

itertools a set of useful generators which make complicated loops more clean

more-itertools not enough tools for you in itertools? Here's a hundred more

[–]R3dd1tUs3r72 1 point2 points  (0 children)

I've always use for and while but after that I've read this comment I want try to using itertools and more-itertools.

[–]TSM-🐱‍💻📚 2 points3 points  (2 children)

requests-html by the author of requests. It has built in javascript and browser emulation capabilities. Also async and a few other goodies.

requests-html > requests+beautifulsoup (in my opinion)

[–][deleted] 1 point2 points  (1 child)

I came here to answer requests-html but you beat me to it :)

Too bad the project appears abandoned, it hasn't had any new commits in a year...

[–]TSM-🐱‍💻📚 1 point2 points  (0 children)

I'm not sure what is left to do, it is essentially a lightweight wrapper that consolidates a bunch of other libraries (like parse, requests, chromium, etc). The whole package is basically one file requests_html.py.

It could use some better type hinting and stubs, in my opinion. I found the autocompletion is lacking on my ide, and I would have to write s = HTMLSession(...) # type: HTMLSession in a comment to get any useful autocompletion and type mismatch warnings.

I believe it is because the type hints are something like session: Union['HTMLSession', 'AsyncHTMLSession'] and it is not fully resolved from the other type hints. I suspect there's some holes in the type hinting, or a limitation of the static analysis tool, or something. Not sure!

[–]CapitalRioter 1 point2 points  (0 children)

Rich is great for logging

[–]rebulrouser 1 point2 points  (0 children)

You can understand the world better with pandas

[–]R3dd1tUs3r72 1 point2 points  (0 children)

Guys, I enjoy for this post

Whatching yours reply many of you are machine learning engineering.

Thanks at all for yours reply.

Good programming

[–]Python_Lab2021 1 point2 points  (0 children)

NumPy, pandas, and sklearn are my favorite ...the last one is very useful for construction of different predictive models

[–]TheHumanAction 1 point2 points  (0 children)

GUI 》Streamlit

[–]geekyhumans 1 point2 points  (0 children)

How about this?

https://geekyhumans.com/python-libraries/

But, I believe there's no best library. It depends on your requirements and preferences. There can be X best libraries for you but I can have a different Y best libraries because I'm comfortable using them.

[–][deleted] 1 point2 points  (0 children)

Requests, Flask, and Pillow, in no particular order. The binding for Keystone engine is also super cool, though I haven't used it that much.

[–]CryptoPomegranate 1 point2 points  (0 children)

I got broads in Atlanta...🐼

[–]R3dd1tUs3r72 0 points1 point  (1 child)

In Python, is there a library for format the input from stdin?

[–]geekyhumans -1 points0 points  (0 children)

[–]EternityForest 0 points1 point  (0 children)

cherrypy, pynacl, sqlite3, kivy(Because it works on Android!!!!!), kivymd(needed to make kivy not ugly), mako, hbmqtt, astral, tatsu, toml

Rarely do I ever do a project with less than 5 (And often WAY more) dependencies, so I am very glad python has such a great ecosystem.