PythonHub
2.39K subscribers
2.35K photos
49.1K links
News & links about Python programming.
https://pythonhub.dev/
Download Telegram
That time I optimized a program by 5000x

Using a more detailed profiler like Scalene can really help optimization efforts by locating inefficiencies in an actionable way.

https://emeryberger.medium.com/that-time-i-optimized-a-program-by-5000x-155cb8cfd9f9
ThreadPoolExecutor in Python: The Complete Guide

The ThreadPoolExecutor allows you to create and manage thread pools in Python. This guide provides a detailed and comprehensive review of the ThreadPoolExecutor in Python, including how it works, how to use it, common questions, and best practices.

https://superfastpython.com/threadpoolexecutor-in-python/
A probabilistic programming language in 70 lines of Python

This post explains how Probabilistic Programming Languages (PPLs) work by showing step-by-step how to build a simple one in Python.

https://mrandri19.github.io/2022/01/12/a-PPL-in-70-lines-of-python.html
Ultimate Guide To Text Similarity With Python

In this article, you will learn about different similarity metrics and text embedding techniques. By the end, you'll have a good grasp of when to use what metrics and embedding techniques. You’ll also get to play around with them to help establish a general intuition.

https://newscatcherapi.com/blog/ultimate-guide-to-text-similarity-with-python
Go Fast With Django

How do you make your Django app fast? You measure what is slow, scale your system when necessary, and use a combination of fast database queries and strategic caching. In this Understand Django article, we'll explore those topics and more to help you get a performant Django app.

https://www.mattlayman.com/understand-django/go-fast/
Solving Wordle Puzzles with Basic Python

The Wordle puzzle game is deceptively simple - you get six tries to guess a five-letter English word, with hints if you get it wrong. Here’s how you can write an iterative solver that suggests words based on letter frequency and hints using nothing but pure Python.

https://www.inspiredpython.com/article/solving-wordle-puzzles-with-basic-python