PythonHub
2.36K subscribers
2.35K photos
49K links
News & links about Python programming.
https://pythonhub.dev/
Download Telegram
Types are Transforming Python

The article describes how type annotations and new typing features have transformed Python, making code more robust, maintainable, and easier to understand by enabling static analysis, better tooling, and safer refactoring. Modern additions like data classes, generics, protocols, and TypedDict have improved both developer experience and runtime capabilities, allowing Python to compete mo...

https://spin.atomicobject.com/types-are-transforming-python/
Optimizing Tool Selection for LLM Workflows: Differentiable Programming with PyTorch and DSPy

How local, learnable routers can reduce token overhead, lower costs, and bring structure back to agentic workflows.

https://viksit.substack.com/p/optimizing-tool-selection-for-llm?ref=feedle.world
Why This Python Performance Trick Doesn’t Matter Anymore

A deep dive into Python’s name resolution, bytecode, and how CPython 3.11 quietly made a popular optimization irrelevant.

https://blog.codingconfessions.com/p/old-python-performance-trick
How I Use Abstraction to Avoid Spaghetti Code

The video explains why Python projects often devolve into "spaghetti code" and shows how using abstractions such as Callable, Abstract Base Classes (ABC), and Protocol can make codebases more modular, testable, and maintainable. Through a step-by-step refactoring of an image processing example, it highlights how applying the right abstractions early reduces coupling and import complexity...

https://www.youtube.com/watch?v=SNqwNILX1Gg
Hosting your Django sites with Coolify

The article explains how deploying Django projects with Coolify streamlines the process by containerizing the app with Docker, automating builds, and managing environment variables through Coolify’s UI. This approach enables easier, near zero-downtime deployments compared to manual server setups, though users should note some nuances with environment variable availability during build steps.

https://www.loopwerk.io/articles/2025/coolify-django
uv: Making Python Local Workflows FAST and BORING in 2025

The video demonstrates how to create fast, reliable local Python workflows for production projects using the uv packaging tool, highlighting practical techniques to streamline dependency management, automate tasks, and reduce friction in day-to-day development. It also covers integrating tools like Just, Overmind, and Direnv to further enhance workflow ergonomics and team collaboration.

https://www.youtube.com/watch?v=TiBIjouDGuI
Voxtral

Voxtral is an open-source AI audio model developed by Mistral, designed for automatic speech recognition and understanding. It offers features like transcription, summarization, and multilingual support at a lower cost compared to proprietary models.

https://mistral.ai/news/voxtral
Python Gotcha: Logging an uncaught exception

Uncaught exceptions will crash an application. If you don't know how to log these, it can be difficult to troubleshoot such a crash. Let's walk through this gotcha and see how to fix it.

https://andrewwegner.com/python-gotcha-logging-uncaught-exception.html
Operating Inside the Interpreted: Offensive Python

The post discusses how Python on Windows (often preinstalled via the Microsoft Store) can be used as a surprisingly effective tool for offensive security and malware operations, thanks to its rich standard library, isolated package management, and low-profile presence in corporate environments. It outlines methods such as malware delivery, offline package installation, and leveraging cty...

https://trustedsec.com/blog/operating-inside-the-interpreted-offensive-python
The Step-by-Step Guide to Python Packaging Tools 2025

A future-ready guide comparing Python packaging tools like uv, Poetry, Hatch, and PDM—perfect for modern developers and teams.

https://www.datumlabs.io/resources/the-step-by-step-guide-to-python-packaging-tools-2025?utm_source=pythonhub&utm_medium=blog&utm_campaign=blog-published