Live data from Hacker News

Top Python libraries of 2020 you should know about

tryolabs.com

21–30 of 55 posts

Re: Top Python libraries of 2020 you should know about

#21

Summary of list: * Typer * Rich * Dear PyGui * PrettyErrors - formatting and coloring error messages in the terminal * Diagrams * Hydra - build configurations in a composable manner, and override certain parts from the command line or config files. * OmegaConf * PyTorch Lightning * Hummingbird - compile your trained traditional ML models into tensor computations * HiPlot - high-dimensional data using parallel plots *…

DearPyGUI is awesome, and I hope that people don't use it en-mass so that my side-projects using it have an easy time getting a lot of attention because of it!

Re: Top Python libraries of 2020 you should know about

#23
post #20
post #5

I've been using Python a lot, both professionally and privately. Been contributing to Cpython. Not sure I like the language. The best dependency manager (Poetry) is buggy. The default interpreter is slow. But I love the ecosystem of third party packades. Thank you! Python will be around for a long time.

Curious what bugs you have come across with poetry?

In the current version, 1.1.4, if your package has optional dependencies (AKA "extras"), the generated package metadata is incompatible with setuptools (specifically the packaging package, which can't parse the requirement specs generated by poetry), so I've had to stick with 1.0 for now.

I've encountered a few issues like this since I started using poetry 0.12.

Re: Top Python libraries of 2020 you should know about

#24
post #3
post #2

Refusing to read (in spite of my genuine interest) based on the click-baity title.

The text is written in the same clickbaity style. But the libraries look pretty interesting.

To be fair, other than the title, I don’t think it’s written in a clickbait style.

I’m not bombarded with ads and they aren’t doing the thing where you get one page per list item. And several people have found certain libraries useful.

Re: Top Python libraries of 2020 you should know about

#25
Absolutely off-topic, but can somebody advise on the best resource to learn the most up-to-date Python for somebody who is mentally stuck on Python 2.7-3.2? I always referred to Python when I needed to quickly write some tool for personal use, but never professionally, even though I am a professional programmer. And recently while writing something like this I was struck with how bad my Python actually is in 2020, compared to how other languages I know currently look. Quick lookup shows that it seemingly has pretty powerful typehints system now, but I never used it. I have no idea, which parts of standard library you aren't supposed to actually use anymore, and use some well-established 3rd part library instead (like it was with requests). And stuff like that. And is it even a good idea, to finally switch to the newest versions of Python and to never look back?

So, basically, what's the best way to catch up?

Re: Top Python libraries of 2020 you should know about

#27
Typer looks cool. I really like the idea of just writing functions to create command line scripts rather than using argparse.

Here's another library that takes a similarish approach using annotations, although it's not quite as polished: https://pypi.org/project/runcommands/

Re: Top Python libraries of 2020 you should know about

#28
post #25

Absolutely off-topic, but can somebody advise on the best resource to learn the most up-to-date Python for somebody who is mentally stuck on Python 2.7-3.2? I always referred to Python when I needed to quickly write some tool for personal use, but never professionally, even though I am a professional programmer. And recently while writing something like this I was struck with how bad my Python actually is in 2020, co…

I"d strongly recommend Trey Hunner at PythonMorsels. The approach is to give you a concise problem that should exercise some part of your python knowledge, and have you write code, re-write your code, bang your head against a problem, and then, once you've written something that passes all the unit tests, you get a walk through possible solutions by someone who knows python well.

Trey starts with a description of how you might solve the problem (which is about how I solved the problem 50% of the time) that is almost always clearly wrong, even though it "works" - then he shows you a somewhat more pythonic and modern way - and you go, "aha!", and then, he shows you the elegant solution - and it changes your life, and you use that pattern in everything you write.

His focus though, is really on how to write clean pythonic 3.x code more than the latest and greatest features, but he tags his problems/solution sets, so if you really want to dive into decorators, or context managers, or dunder methods - you can zoom right in.

The only problem I've had with Python Morsels is I look at the code I wrote a year ago (I'm not a developer) and I'm embarrassed and ashamed at how gross it was.

Re: Top Python libraries of 2020 you should know about

#30
post #27

Typer looks cool. I really like the idea of just writing functions to create command line scripts rather than using argparse. Here's another library that takes a similarish approach using annotations, although it's not quite as polished: https://pypi.org/project/runcommands/

Having not used typer, your description is reminiscent of fire [1], which has worked well for our purposes.

[1]: https://github.com/google/python-fire

Post reply on HN