Many automated systems frequently download packages from PyPI, creating a massive traffic burden. Issue #71 of this newsletter mentioned it costs about $12 million annually! This article discusses how to optimize Dockerfiles to both speed up builds and reduce traffic pressure on PyPI.
TL;DR
A plea to go easy on PyPI, debate over uv's managed Python in production, PEP-762's plan to replace the default REPL, and OpenAI's swarm for multi-agent orchestration.
Articles & Tutorials
× 12uv is an alternative to pip that can also install Python. Is it appropriate to use uv to install Python in production environments? The article compares it with other versions in terms of Python source, portability and compatibility, performance and security, maintaining a cautiously optimistic stance overall.
The author developed a video subtitle optimizer using Python + NextJS, with the backend using FastAPI and SQLmodel. The article shares experiences in technology selection, asynchronous programming, database selection and optimization, using LLM for quality control, using LLM for diagnosis and error fixing, and production deployment.
Explores how to implement background task processing without blocking services when calling large models in Starlette-based applications (like FastHTML and FastAPI). Solutions include using SQL databases as queues, using threads for background tasks, asynchronous processing, and more.
The author has been a Python core developer since 2017 and shares some of the privileges, benefits, and responsibilities they enjoy, including commit access to CPython and over 20 Python repositories, a python.org email address, participation in Python Language Summits, and more.
Eventlet is a Python async library that's been around for nearly 20 years and is now officially retiring! The article explains how to migrate Eventlet projects to Python's official Asyncio library using the Awaitlet tool open-sourced by the SQLAlchemy team.
How do you monitor Tesla Model 3 charging and driving data? The article covers using Python and OpenTelemetry to interface with the Tesla Owner API, implementing data collection and storage processes for vehicle data monitoring and analysis.
A comprehensive long-form tutorial that teaches you step-by-step how to develop a blog using the Django + Vue tech stack, with GraphQL for API communication.
Python 3.13 brings a brand new REPL (Python console). This PEP is the design specification for this feature, including why Python rather than C was used to implement the REPL, what features it includes, backward compatibility, rejected design ideas, and more.
Slack engineers discovered massive EOFErrors in SQL queries while integrating Quip, which they traced to asyncio.IncompleteReadError. The article covers the investigation process to dig into the root cause, solutions, and the impact of this issue.
How do exceptions typically occur, and what factors help fix them quickly? The Bugsink author emphasizes the importance of local variables in debugging - they're traceable breadcrumbs that help developers quickly track down and locate errors.
The author developed a django-simple-deploy project for configuring and automatically deploying projects to different platforms. The article discusses problems encountered when developing the plugin system and how good project architecture can solve them.
Projects & Resources
× 12A cross-platform Python profiler that collects samples by reading CPython interpreter virtual memory space with minimal impact on target programs. Zero-intrusion, time and memory-based profiling, built-in support for multi-process applications. (1.8K stars)
Similar to grep, can be seen as a hybrid of tr, sed, ripgrep, and tree-sitter. Understands source code syntax and can perform searches and other operations.
An educational framework for exploring ergonomic, lightweight multi-agent orchestration. (13.1K stars)
Manage commands and documentation using Markdown files, supports script execution for zsh, bash, javascript, python, and more, with syntax highlighting support.
Built on QtWebEngine and PySide6, designed to simplify desktop application development as an alternative to Electron and Tauri.
2D rendering of NASA MPC asteroid data, displaying asteroid orbital trajectories.
A free open-source ebook that develops a basic but complete web browser using a few thousand lines of Python code, covering everything from networking to JavaScript.
A powerful self-hosted website archiving solution for offline collection, preservation, and viewing of websites. Saves HTML, JS, PDF, media, and more through URLs/browser history/bookmarks/Pocket/Pinboard/etc. (21.5K stars)
A smarter, faster audio transcription tool based on the SenseVoice model, with lightning speed and precise timestamps.
Generates requirements.txt files based on import statements in projects, more useful than pip freeze. (6.4K stars)
Based on OpenStreetMap public data, provides free custom maps for your websites and apps. No limits on maps and requests, no registration or API keys required. (2.2K stars)
An affordable, empathetic conversational AI companion for companionship, entertainment, education, childcare, IoT robots, AI-enhanced robots, and DIY robot kit development.