PythonHub
2.33K subscribers
2.35K photos
49K links
News & links about Python programming.
https://pythonhub.dev/
Download Telegram
Thoughts on Django’s Core

Django's longevity is attributed to its stable core, time-based releases, and API stability policy. While there's enthusiasm for expanding Django's features, the author argues that the core should remain focused and prioritize stability. Instead, the community should embrace third-party packages as a way to innovate and extend Django's capabilities without compromising its core.

https://buttondown.com/carlton/archive/thoughts-on-djangos-core
Flash Attention derived and coded from first principles with Triton (Python)

This video provides an in-depth, step-by-step explanation of Flash Attention, covering its derivation, implementation, and underlying concepts. The presenter explains CUDA, Triton, and autograd from scratch, then derives and codes both the forward and backward passes of Flash Attention.

https://www.youtube.com/watch?v=zy8ChVd_oTM
chonkie

The no-nonsense RAG chunking library that's lightweight, lightning-fast, and ready to CHONK your texts.

https://github.com/bhavnicksm/chonkie
NanoDjango - single-file Django apps | uv integration

NanoDjango is a cool package that lets you build small scripts using all the power of Django, and also supports django-ninja for APIs. We'll dive into NanoDjango in this video, and will use uv and inline script metadata for dependency management.

https://www.youtube.com/watch?v=0-iuJgfQMOw
The Practical Guide to Scaling Django

Most Django scaling guides focus on theoretical maximums. But real scaling isn’t about handling hypothetical millions of users - it’s about systematically eliminating bottlenecks as you grow. Here’s how to do it right, based on patterns that work in production.

https://slimsaas.com/blog/django-scaling-performance
Python dependency management is a dumpster fire

This article is all about fire safety techniques and tools. It's about how you should think about dependency management, which tools you should consider for different scenarios, and what trade offs you'll have to make. Finally, it exposes the complexity and lingering problems in the ecosystem.

https://nielscautaerts.xyz/python-dependency-management-is-a-dumpster-fire.html
Tutorial: How to rate limit Python async API requests

With an example that performs 100 simultaneous requests to the Etherscan API

https://elnaril.hashnode.dev/how-to-rate-limit-python-async-requests-to-etherscan-and-other-apis
Proposal for a Django project template

The author's take on what could be a project template for Django advanced usage, with modern tooling (for Python and UI dependencies, as well as configuration/environment management), but not too opinionated.

https://david.guillot.me/en/posts/tech/proposal-for-a-django-project-template/