Skip to content

Latest commit

 

History

History
105 lines (53 loc) · 11.2 KB

File metadata and controls

105 lines (53 loc) · 11.2 KB

Python Trending Weekly #116: The State of Python 2025

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!

1、The State of Python 2025

The eighth annual developer survey report from the Python Software Foundation and JetBrains is out! It reveals some fascinating trends: 86% of respondents use Python as their primary programming language, 50% of developers have less than two years of coding experience, and data science now dominates Python applications.

2、Python: File streaming @237MB/s on $8/m droplet in 507 lines (stdlib)

The author built a WSGI core called Axon that achieves 237MB/s file streaming performance on an $8/month server using just 507 lines of pure Python standard library code. The framework maps HTTP request bodies to iterable byte streams, processing data on-the-fly while maintaining constant memory usage of just a few dozen KB.

3、Sometimes LFU > LRU

Facing the problem of malicious AI crawlers creating tons of throwaway sessions that push out real user sessions from cache, the author suggests replacing traditional LRU (Least Recently Used) with LFU (Least Frequently Used) caching strategy. By configuring Redis's volatile-lfu mode, you can effectively protect frequently accessed user sessions and ensure critical business data like e-commerce shopping carts don't get flushed out by malicious traffic.

4、Context Engineering — A Comprehensive Hands-On Tutorial with DSPy

This article dives deep into context engineering, demonstrating through the DSPy framework how to break down complex problems into multiple subtasks and have different AI agents collaborate to complete them, avoiding the performance degradation that comes from cramming all information into a single context.

5、Proxy Objects

A deep dive into Python proxy object implementation principles, showing how to achieve transparent object call proxying through special methods. Demonstrates how to leverage this mechanism to develop advanced features like database connection pools and file system abstractions.

6、Preventing Domain Resurrection Attacks

PyPI introduces new security mechanisms to prevent domain resurrection attacks. When a user's email domain expires, attackers might purchase that domain and gain account control through password resets. PyPI now regularly checks domain status and cancels related email verifications once a domain enters redemption period, effectively blocking these supply chain attacks.

7、Algorithms through the lens of symbolic pattern matching

This article shares how to design algorithms using symbolic pattern matching, transforming graph theory problems into mathematical expression operations through the Symbolica library. The author demonstrates implementing algorithms like factorial calculation and graph connectivity detection using pattern replacement. While not the most efficient approach, it offers an elegant way of thinking about algorithms.

8、A practical introduction to Constraint Programming using CP-SAT and Python

This article introduces constraint programming through a declarative programming paradigm, describing problems using variables and constraints. Using Python's CP-SAT solver, it demonstrates how to solve discrete optimization problems like warehouse location and logistics scheduling, showcasing the power of constraint programming in handling complex combinatorial optimization scenarios.

9、Origin of BDFL

An old blog post by Guido van Rossum revealing the origin of the BDFL (Benevolent Dictator For Life) title. At the first Python Software Association meeting at CNRI on April 18, 1995, each attendee came up with titles starting with "First Interim," with Guido's being the most humorous. This title was likely suggested by Ken Manheimer or Barry Warsaw and became an important symbol of Python community culture.

10、ASCII rain scroll art

This article shows how to create terminal rain drop animation effects using pure Python standard library. Using deque data structures for management, characters 'v' and '|' represent raindrops and trails respectively, combined with random number generation and time delays to create smooth rain animations. The code is elegant and concise, creating impressive visual effects with just a few dozen lines.

11、Timeouts and cancellation for humans

The Trio library author explores the design challenges of timeout handling in I/O operations, sharing Trio's cancel scopes solution. Through cancellation tokens and scope mechanisms, it solves the problems of traditional timeout APIs being difficult to abstract and compose, providing a more human-friendly timeout control approach for asynchronous programming.

12、The only two log levels you need are INFO and ERROR

The author challenges traditional logging level thinking, arguing that complex log level systems (like WARNING, DEBUG, TRACE) aren't actually practical. By analyzing the two core purposes of logging—"errors that need alerts" and "information that helps debugging"—they propose that just ERROR and INFO levels are sufficient, while suggesting improvements to log utility through structured logging, request IDs, timestamps, and other methods.

1、parlant: LLM agents built for control

An AI agent framework that defines behavioral guidelines through natural language rather than complex system prompts, ensuring agents strictly follow instructions. Features conversation flow management, tool integration, domain adaptation, and template responses, with deployment possible in under 60 seconds. (7.3K stars)

2、GhostTrack: Useful tool to track location or mobile number

An OSINT information gathering tool for tracking locations or mobile numbers. Supports IP address tracking, mobile number information queries, and social media username searches, running on Linux and Termux environments. (2.8K stars)

3、Archon: the knowledge and task management backbone for AI coding assistants

A command center providing knowledge base and task management for AI programming assistants. Features document crawling, PDF uploads, intelligent search, and task management, connecting to AI tools like Claude Code and Cursor through MCP protocol to enhance AI-driven programming effectiveness. (10.2K stars)

4、mcp-context-forge: A Model Context Protocol (MCP) Gateway & Registry

An MCP gateway and registry serving as central management for tools, resources, and prompts. Supports converting REST API endpoints to MCP, composing virtual MCP servers while adding security and observability. (1.4K stars)

5、tensorlake: Document Ingestion API and serverless platform for building data processing APIs

A platform that transforms unstructured documents into AI-ready data, parsing PDF, DOCX, spreadsheets and other formats through APIs, while providing serverless workflow runtime for developing scalable data processing pipelines.

6、flower: Real-time monitor and web admin for Celery distributed task queue

Open-source Celery cluster monitoring and management web application providing task progress viewing, worker node status monitoring, remote control, and queue statistics. Features real-time event monitoring, HTTP authentication, Prometheus integration, and REST API—an essential management tool for Celery distributed task processing. (6.9K stars)

7、AI-Researcher: Autonomous Scientific Innovation

Provides end-to-end research automation from concept to publication, including literature review, idea generation, algorithm design and implementation, result analysis, and paper writing. Supports two input modes: detailed idea descriptions and reference-based idea generation. (2K stars)

8、tilf: Pixel Art Editor

A free pixel art editor built with PySide6, featuring drawing tools, real-time preview, undo/redo, and export functionality. Designed specifically for creating sprites, icons, and small 2D assets. No registration or installation required—ready to use right out of the box.

9、plutoprint: HTML to PDF and Image Generation Library

A lightweight, easy-to-use Python library that generates high-quality PDFs and images from HTML or XML content. Built on the PlutoBook rendering engine with a simple API, perfect for creating reports, invoices, or visual snapshots. Supports command-line usage and can integrate with Matplotlib for chart generation.

10、SpatialLM: Training Large Language Models for Structured Indoor Modeling

A large model designed specifically for processing 3D point cloud data, capable of generating structured 3D scenes including architectural elements like walls and windows, plus oriented object bounding boxes with semantic categories. Supports multiple data sources including monocular video, RGBD images, and LiDAR sensors, effectively bridging unstructured 3D geometric data. (3.9K stars)

11、One-KVM: DIY IP-KVM Solution

Achieves BIOS-level remote server management using inexpensive hardware. Features Docker deployment, Chinese interface, video recording, and virtual storage mounting. Enables remote control without installing software on target machines, perfect for home labs and server maintenance scenarios. (1.6K stars)

12、Notte: Reliable Browser AI agents

A full-stack framework for building and deploying reliable browser AI agents. Combines AI agents with traditional scripting to improve efficiency and reduce costs. Features natural language task execution, Pydantic structured output, website interaction, stealth browser sessions, hybrid workflows, secret vaults, and digital personas.