PythonHub
2.36K subscribers
2.35K photos
49K links
News & links about Python programming.
https://pythonhub.dev/
Download Telegram
Agentic checkout in ~100 lines of Python

The post demonstrates how to build a functional agentic checkout system in around 100 lines of Python using LLMs and the Browser Use library, enabling automated online purchases by navigating, filling forms, and extracting order data. It highlights practical challenges like prompt tuning for determinism, implementing structured outputs with Pydantic, and adding guardrails to ensure safe ...

https://sophiabits.com/blog/building-agentic-checkout
desto

desto lets you run and manage your bash and Python scripts in the background (inside tmux sessions) through a simple web dashboard. Launch scripts, monitor their and your system's status, view live logs, and control sessions—all from your browser.

https://github.com/kalfasyan/desto
Scaling recommendations service at OLX

The article details how OLX scaled its Python-based FastAPI recommendation service to handle tens of thousands of requests per second by optimizing infrastructure and architecture. Key strategies included efficient request handling, robust monitoring, and leveraging cloud resources to ensure reliability and scalability during rapid user and data growth.

https://tech.olx.com/scaling-recommendations-service-at-olx-db4548813e3a
1
Solving Wordle with uv's dependency resolver

The post describes how the author models Wordle as a dependency resolution problem, using the Python tool uv to encode Wordle’s feedback and constraints as package dependencies. By representing possible words and letter positions as package versions and leveraging uv’s resolver, the author creates an automated solver that efficiently narrows down solutions based on Wordle guesses and fee...

https://mildbyte.xyz/blog/solving-wordle-with-uv-dependency-resolver/
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