PythonHub
2.66K subscribers
2.35K photos
50.7K links
Human-curated Python news, projects, articles & tools.

https://pythonhub.dev/
Download Telegram
Stricter checks for uploaded distributions on PyPI

PyPI has introduced stricter validation of uploaded Python source distributions and wheels to prevent archive parser inconsistencies that could allow malicious packages to bypass security checks. The changes restrict legacy tar formats and problematic ZIP comments, improving supply chain security while requiring minimal changes from most package maintainers.

https://blog.pypi.org/posts/2026-11-18-stricter-checks-for-uploaded-sdists/
Reading JSON at 277 GB/s in Python

Daniel Lemire demonstrates JSON processing speeds of up to 277 GB/s using Python 3.14's free-threaded build and the SIMD-accelerated fastsimdjson library on a 192-core server. Benchmarks show substantial performance improvements over conventional JSON parsers and multiprocessing approaches on several workloads, highlighting the potential of GIL-free multithreading for large-scale data pr...

https://lemire.me/blog/2026/11/14/reading-json-at-277-gb-s-in-python/
What makes uv slow?

An in-depth look at what makes Python's uv package manager slow, examining bottlenecks in dependency resolution, package installation, caching, network requests, and concurrency. Real-world benchmarks reveal how optimizations such as parallel prefetching, efficient data structures, and filesystem operations help uv achieve its speed while exposing remaining performance challenges.

https://blog.schuetze.link/what-makes-uv-slow/
💩1
How to find and fix N+1 queries in Django

Learn how to identify and eliminate N+1 queries in Django using selectrelated(), prefetchrelated(), and SQL profiling tools to reduce unnecessary database operations. A practical example demonstrates reducing query counts from 61 to 2, with additional guidance on optimizing serializers, avoiding over-fetching, and preventing regressions through automated tests.

https://codewithstein.com/fix-n-plus-one-queries-django/
Learn Data Structures and Algorithms in Python with Visualizations

Learn data structures and algorithms in Python in this beginner's course. This course covers arrays, linked lists, stacks, queues, hash tables, trees, heaps, and graphs, plus recursion, searching, sorting, and interview prep. Each topic is explained with custom animations and visualizations alongside Python code examples. By the end, you will understand how the most important data struct...

https://www.youtube.com/watch?v=ybe6EGe_wjo