PythonHub
2.54K subscribers
2.35K photos
50.2K links
News & links about Python programming.
https://pythonhub.dev/
Download Telegram
The 2026 way of using importmaps in Django

The post explains a modern Django approach to JavaScript using import maps, native browser modules, and a shared import map rendered by Django templates. It argues that import maps can eliminate the need for bundlers in many applications while still supporting cache-busted static assets and reusable third-party app JavaScript.

https://406.ch/writing/the-2026-way-of-using-importmaps-in-django/#the-2026-way-of-using-importmaps-in-django
Testing in Python with pytest: from the basics to advanced techniques

This comprehensive guide covers pytest from basic testing concepts to advanced techniques such as fixtures, parametrization, mocking, and asynchronous testing. It provides practical patterns for building maintainable, scalable Python test suites and leveraging pytest effectively in production environments.

https://en.andros.dev/blog/b6bf68de/testing-in-python-with-pytest-from-the-basics-to-advanced-techniques/
GitHub Pages alternative with native Python

This article shows how to recreate core GitHub Pages functionality using only Python's standard library, including static file serving, automated deployments, and HTTPS support. By extending http.server in just a few dozen lines of code, it demonstrates how native Python tools can power a lightweight static website hosting platform.

https://blog.klemek.fr/articles/2026-06-14/
Django Internationalization - translate your app to multiple languages!

This video explains how Django's internationalization framework enables applications to support multiple languages by detecting a user's active language and serving the appropriate translations. It also demonstrates the makemessages and compilemessages commands, along with common localization approaches such as language cookies and URL-based language prefixes.

https://www.youtube.com/watch?v=PGMhsAcfPpI
Ordered key sharding in DynamoDB

So, you want to keep a sorted index in DynamoDB, but for whatever reason – usually throughput-related – it won't fit on a single partition. What do you do? Today, we look at the available solutions, do the math, and find out which is best.

https://death.andgravity.com/albumtitle
Scikit-learn 1.9

Scikit-learn 1.9 release is out, and it comes with solid improvements to many existing estimators, making them faster, more stable, handling missing values, adding GPU support… The release also enhances the estimator displays in notebooks, and introduces a callback mechanism that opens the door to progress bars or advanced monitoring of convergence.

https://blog.scikit-learn.org/updates/release-1-9/
Plugins case study: Pluggy

The post explains how Pluggy works as a reusable Python library for building plugin systems, centered on hooks that hosts define and plugins implement. It also highlights the design tradeoffs Pluggy handles well, including registration, signature validation, ordering, and hook wrappers, while leaving plugin discovery largely up to the application.

https://eli.thegreenplace.net/2026/plugins-case-study-pluggy/
PyData London 26

The videos from PyData London 2026 are now available.

https://www.youtube.com/playlist?list=PLGVZCDnMOq0rFQykYJg7t441AEpN4SszE