PythonHub
2.44K subscribers
2.35K photos
49.2K links
News & links about Python programming.
https://pythonhub.dev/
Download Telegram
Parallelization with MultiProcessing in Python

Run your data science tasks in parallel to speed up computation timeContinue reading on Towards ...

https://towardsdatascience.com/parallelization-w-multiprocessing-in-python-bd2fc234f516
Appreciating Python's match-case by parsing Python code

Python's match-case blocks are complex structural pattern matching tools that are often more hassle than they're worth. But they're great for parsing abstract syntax trees.

https://www.pythonmorsels.com/match-case-parsing-python/
How to optimize PostgreSQL queries from Django using pgMustard

Slow queries happen, and when they do, it can be tough to dissect why they’re slow. This difficulty is compounded by using Django’s ORM, since it generates the SQL for you, so you may have little idea of the actual queries “under the hood”. In this post we’ll look at what pgMustard does and how to use it with the Django ORM.

https://adamj.eu/tech/2022/06/21/optimize-postgresql-queries-from-django-using-pgmustard/
“Don’t Mock What You Don’t Own” in 5 Minutes

A common issue programmers have when they try to test real-world software is how to deal with third-party dependencies. Let’s examine an old, but counter-intuitive principle.

https://hynek.me/articles/what-to-mock-in-5-mins/