DEV Community

Python Trending Weekly
Python Trending Weekly

Posted on

Python Trending Weekly #177 (with Issue 127 full text): Anthropic Redesigns Source Control with Scion

Welcome to Python Trending Weekly - your gateway to cutting-edge Python intelligence! Curated by Python Cat from 400+ premium sources worldwide, we deliver the most valuable articles, tutorials, open-source projects, tools, podcasts, videos, and trending discussions directly to your inbox. Our mission: Accelerate your Python mastery and unlock new career opportunities in the ever-evolving tech landscape.

Stay ahead of the curve: Subscribe now for weekly insights that keep you at the forefront of Python innovation!

Shared 12 articles, 12 open-source projects, 1 hot discussion

Here are the title summaries for this issue:

🦄Articles & Tutorials

① an incomplete list of non-syntax things python raises SyntaxError for

② Securing Python projects from supply-chain attacks

③ How BMLL Processes 1.5 TB of Market Data in Under 4 Minutes

④ FastAPI + HTMX: Bringing the Frontend Back to the Server

⑤ Vibe Coding Space Invaders with Python and pygame

⑥ AI Agents List 2026

⑦ Astra for Coding: Why Are We Doing This Again?

⑧ Jev and RLCD: Architecture, Open-Source Models, and Practical Agent Use Cases

⑨ I Built the Escape Hatch

⑩ Redesigning source control at Anthropic

⑪ Visualizing 64 Million Displaced People: How To Display The Painful Truth In Python

⑫ Pointing AI at archives found a forgotten meteorite, lost rhinos, and more

🐿️Projects & Resources

① LLMs-from-scratch: Implement a ChatGPT-like LLM in PyTorch from scratch

② qdrant: High-Performance, Massive-Scale Vector Database

③ OpenCompass: One-stop LLM Evaluation Platform

④ fast-anything: Don't rewrite it in Rust. Rewrite the 5% that's slow

⑤ gemini-api-cli: A CLI for the Gemini API

⑥ firecrawl: Search and Scrape the Web for AI Agents

⑦ LoopForge: Self-hosted workflows for coding-agent delivery

⑧ career-ops: Open-source AI job search agent

⑨ geo-sleuth: An agent skill that finds where a photo was taken

⑩ bama: Build Any Mac App

⑪ prompts.chat: Community AI Prompt Library You Can Self-Host

⑫ couch-tv: Your Own TV Home Screen - Faster, nicer, removes spyware and tonnes more features.

🥂Discussions & Questions

① Remove author, credits and copyright from stdlib modules

Welcome to subscribe for weekly hand-picked Python content: Patreon

After subscribing, you can view the full text of Issue 177 for free:


📖 Full text of a past issue, now free

Paid issues of this newsletter become free to read one year after publication,
so every new issue comes with one past issue's full text.

Below is the issue published one year ago (Issue 127, 2025-11-15) —
much of it is still worth reading today.

Issue 127 shared 13 articles, 12 open-source projects, 2 audio/video items, with a full text of characters.

🦄Articles & Tutorials

1、A Plan for 5-10% Faster Free-Threaded JIT by Python 3.16

CPython core developers announced a plan to implement performance analysis support, tracing JIT, improved machine code generation and register allocation, and other optimizations through LLVM 21, making Python 3.15 5% faster and 3.16 10% faster. The new JIT frontend has already initially improved average performance by 1.5%, and some benchmarks have even doubled.

2、Decompression is up to 30% faster in CPython 3.15

By optimizing output buffer management, CPython 3.15 can speed up Zstandard decompression by 25-30% and zlib decompression by 10-15%, greatly improving performance in scenarios such as pip installing dependency packages, making standard library compression modules surpass third-party libraries.

3、How often does Python allocate?

Does Python allocate heap memory for every integer? By modifying the CPython source code, the author found that even a simple loop addition triggers nearly 100,000 memory allocations, revealing Python's astonishing memory management overhead. The small integer pool and object caching mechanisms also cannot fully avoid frequent allocations.

4、PEP 814 – Add frozendict built-in type

This PEP proposes introducing a built-in immutable dictionary, frozendict, in Python 3.15, supporting hash computation and thread-safe sharing. It can be used as dictionary keys or function default arguments, solving the mutable default value problem, and provides C API support for extension module integration.

5、Rippling's Gunicorn pre-fork journey

Rippling systematically solved TCP connection and thread issues through monkey-patch technology, successfully implementing Gunicorn pre-fork mode, reducing memory usage of a 17 million-line Django monolith by 70%, saving 30% in costs, and significantly improving deployment reliability.

6、Build better software to build software better

The Slack engineering team modeled the Python backend development process as a directed acyclic graph, implementing intelligent caching and parallel processing through Bazel, greatly compressing a development cycle that lasted up to 60 minutes. They adopted a fine-grained caching strategy to improve hit rates, using the mindset of optimizing code to optimize the development process.

7、Django Admin Deux: Bringing Django's Admin Back to Django

The Django Admin Deux project redesigns the admin backend architecture, truly developing based on Django generic CBVs, unifying CRUD operations into composable actions, making admin backend skills interoperable with Django view development, and solving the disconnect between traditional admin and the Django framework.

8、PEP 791 – math.integer: submodule for integer-specific mathematics functions

Python 3.15 plans to migrate integer-related functions such as gcd, isqrt, comb, and perm to a new math.integer submodule, separating them from the math module to provide clearer API organization and better IDE autocompletion support.

9、Building a CI/CD Pipeline Runner from Scratch in Python

The author developed a CI/CD pipeline executor from scratch in Python, implementing multi-stage parallel execution, task dependency graph scheduling, and build artifact passing through Docker containers, fully reproducing the core mechanisms of GitLab Runner: YAML configuration parsing, isolated environment execution, real-time log streaming, and error handling.

10、Why we migrated from Python to Node.js

The author shared the reasons for switching project frameworks, complaining about the complexity of Python asynchronous programming: Django lacks complete async support and requires frequent sync_to_async conversions, while Node.js's native event loop provides a simpler concurrency model.

11、Unnecessary parentheses in Python

Python's if statements actually do not require parentheses. Many people mistakenly regard grouping parentheses as a syntax requirement. The article also mentions that statements such as del and return are often mistaken for function calls due to extra parentheses, and explains the three major uses of function calls, tuple creation, and expression grouping, to avoid unnecessary additions.

12、Async and Finaliser Deadlocks

Through Python examples, the author reveals the fatal combination of finalizers and mutex locks in asynchronous code. When the garbage collector executes the del method at the wrong time, it triggers a deadlock. This problem, pointed out as early as 2002, remains unsolved and can only be avoided by running finalizers in a separate thread.

13、How DeepSeek OCR Quietly Solved a Billion-Dollar Problem in AI Scaling

DeepSeek OCR combines the SAM segmentation model, CLIP visual encoder, and sparse MoE decoder to achieve 10-20x context compression, reducing the number of tokens required for document processing by 90%. While maintaining 97% accuracy, it greatly lowers the processing cost of AI models and solves the high cost problem of text processing with large models.

🐿️Projects & Resources

1、Google Sans Code programming font

A monospace font designed by Google specifically for programming, optimizing character legibility, supporting variable font weight and italic styles, suitable for code editors and terminals. (star 1.8K)

2、Memori: AI Agent Memory Engine

One line of code gives LLMs persistent memory, supports SQL database storage, automatically extracts entities and relationships, and is compatible with mainstream AI frameworks. (star 3.2K)

3、ROLL: Large Language Model Reinforcement Learning Library

An efficient reinforcement learning library developed by Alibaba, supporting algorithms such as PPO/GRPO/Reinforce++, scalable to thousands of GPU clusters, and integrating frameworks such as Megatron-Core and vLLM. (star 1.8K)

4、arxiv-paper-curator: Building Production RAG Systems

Learn to build a production-grade RAG system in 6 weeks, automatically fetch arXiv papers, support hybrid search and local LLMs, and include complete infrastructure and monitoring. (star 1.5K)

5、all-in-rag: RAG Technology Full Stack Guide

A full-stack RAG technology tutorial produced by Datawhale, systematically learning RAG from basics to advanced, including theoretical explanations, code practice, and multimodal support, suitable for building production-grade intelligent question-answering systems. (star 1.5K)

6、nyno: Multi-Language Workflow Engine

An open-source multilingual workflow engine supporting Python, PHP, JavaScript, and Bash languages, creating automated processes through YAML configuration, with a high-performance multiprocess work engine and Docker deployment support.

7、httpmorph: Browser Fingerprint HTTP Client

A Python HTTP client that perfectly simulates the Chrome 142 browser fingerprint, supports JA3N/JA4 fingerprint matching, HTTP/2 and TLS fingerprints, is compatible with the requests API, and has a high-performance C implementation.

8、langgraph-swarm-py: Multi-Agent Coordination Framework

A multi-agent swarm collaboration framework based on LangGraph, supporting dynamic switching and context passing between agents, with built-in streaming responses and short-term and long-term memory support, compatible with the LangChain ecosystem. (star 1.3K)

9、droidrun: Mobile Device Natural Language Control Framework

A powerful framework for controlling Android and iOS devices through natural language commands, supporting multiple LLM providers, capable of planning complex multi-step tasks, and providing an easy-to-use CLI and extensible Python API. (star 6K)

10、codetracer: Time-Travel Debugger

A user-friendly time-travel debugger supporting multiple programming languages, capable of recording program execution into shareable trace files, providing a GUI to move execution forward and backward, view memory location history, and quickly locate root causes of bugs. (star 1.2K)

11、DjangoRealtime: Django Real-time Event Push

Add real-time capabilities to Django applications based on PostgreSQL publish-subscribe and SSE, without requiring WebSocket, Redis, or additional processes, supporting user-level events and global broadcasts, and providing automatic reconnection and event persistence.

12、any-llm: Unified LLM Interface

A unified LLM interface developed by Mozilla, supporting mainstream providers such as OpenAI, Anthropic, Mistral, and Ollama, providing enterprise-grade gateway features including budget management, API key management, and usage analytics, with a framework-agnostic design. (star 1.3K)

🐢Podcasts & Videos

1、PyBay 2025

2、DjangoCon US 2025

Top comments (0)