PEP-750 has been accepted and will be merged into Python 3.14! It proposes introducing t-strings that return a Template type instead of a string, suitable for custom string processing, web templates, DSLs, and other scenarios while avoiding security issues like SQL injection and XSS attacks. (Also: PEP750 Template Strings Chinese Translation)
TL;DR
Template strings are officially accepted, with PEP 787 making subprocess calls safer; a hardcore experiment writes a TCP stack in Python, and the A2A protocol for agent interoperability debuts.
Articles & Tutorials
× 12This PEP proposes extending the subprocess and shlex modules to support template strings (t-strings), enabling safer and more convenient execution of shell commands with interpolation.
Introduces how to compile Python code to native code, achieving performance close to Rust. Uses CPython's frame evaluation API to implement symbolic tracing, builds IR graphs, and then progressively lowers IR graphs to platform-specific native code.
How to develop a simple TCP protocol stack using Python and scapy? The article analyzes the TCP three-way handshake process, implements its interaction mechanism through code, and demonstrates Python's speed limitations in network communication.
The article shares 14 advanced Python features with examples, including type overloading, generics, pattern matching, advanced f-strings, proxy properties, metaclasses, and more.
Python doesn't support controlling memory layout of data structures - does this mean CPU caching has no impact on Python performance? After testing, the author found that random list access is 1.2-1.5 times slower than sequential access, indicating that cache optimization applies to interpreted languages as well.
The author recommends using polars in data analysis projects because it offers better performance, more intuitive API design, and a more unified type system. The author also mentions two shortcomings of polars.
The second part of a series introducing how to translate dataframe operations into SQL, including filtering with window functions, expression composition, and nested data types.
Recommends avoiding writing __init__ methods to prevent redundancy, testing difficulties, and inflexibility issues. The author suggests using dataclass to auto-generate __init__, using classmethod as object factories, and strengthening type constraints through NewType.
Introduces how to extract GPS information from images using the Django web framework, GeoDjango module, and Pillow image library, then create web maps with images.
Provides an accessible introduction to Model Context Protocol (MCP), demonstrating environment setup, practical operations using Python for MCP, and integration applications with other tools.
The first part of a series attempting to trace DeepSeek's step-by-step exploration journey (DeepSeek LLM -> DeepSeek MoE -> DeepSeek V2 -> DeepSeek V3 -> DeepSeek R1), showcasing DeepSeek's unique approach to technical route selection and model optimization.
Projects & Resources
× 12Google's latest open-source Agent2Agent protocol, enabling seamless communication and collaboration between agents implemented in different frameworks. (12K stars)
Quickly see everything your program is doing without modifying any code. Integrates Firefox Profiler and supports multiple analysis views including stack charts, flame graphs, and call trees.
A web crawler designed specifically for efficient distributed crawling and data extraction, built with asynchronous I/O, robust logging, plugin architecture, and Celery's distributed task processing.
Focuses on converting scanned book PDF files to various other formats. Extracts main text while filtering out headers, footers, footnotes, page numbers, and other elements, using algorithms to handle cross-page continuity issues. (2.1K stars)
Microsoft's newly open-sourced interactive world model based on Minecraft, featuring high generation quality, powerful controllability, and fast inference speed.
Supports multi-agent systems, autonomous agent management, blockchain integration, social media integration (Twitter and Telegram), extensible skill systems, and extensible plugin systems. (6.1K stars)
Local AI chat tool requiring no complex configuration, usable for AI conversations and text generation, image generation and editing, text-to-speech, and speech-to-text.
A website project that can search and view Python download trend charts, supporting comparative viewing of multiple packages' download trends.
A toolkit for Python operations with CUDA, containing multiple related component packages. (2.3K stars)
Supports converting Markdown to HTML, PDF, DOCX, and PPTX, supports executing code blocks and rendering plots. Uses LLM output to create beautiful reports with charts.
Supports calling Python from Excel and vice versa. Supports Excel on Windows and MacOS, as well as Google Sheets and web-based Excel. (3.1K stars)
A purely satirical library mocking America's arbitrary import tariffs. It can set "tariffs" required for importing certain libraries (like numpy), with the effect of extending import time when importing these libraries... (2.2K stars)
Podcasts & Videos
× 2A video collection from "Conf42 Python" with 50+ videos available.
Video guests are two Jupyter contributors and project leaders, discussing topics including: How does Jupyter work? How did they develop an interactive language execution engine?