Python Trending Weekly #176 (with Issue 126 full text): In Memoriam: Tim Peters (1952–2026); Microsoft agent-framework Compromised Twice on PyPI
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, too
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 audio/video, 2 hot discussions
Here are the title summaries for this issue:
① Microsoft agent-framework Compromised Twice on PyPI
② PyPI code that breaks on Python 3.12 and 3.13
③ How CPython processes Python source code
④ Internals of asyncio
⑤ How a Python Type Checker Decides a Variable Is Unused
⑥ DRF vs Django Ninja: the Wagtail 8.1 API schema
⑦ Authenticating Django Channels WebSockets without putting the JWT in the URL
⑧ TestDriven.io: Taking Website Screenshots with Django, Celery, and Playwright
⑨ How to deploy multiple Django projects on one server
⑩ My bookkeeping runs on code now. AI only reads the PDFs.
⑪ How I manage my agents
⑫ Reading JSON at 277 GB/s in Python
① pybot: A Pure Python Chatbot by a Swarm of Agents
② msgspec: A fast serialization and validation library
③ Codewhale: An open-source coding agent for your terminal, written in Rust. It works with any model, can split one task across several agents, and every line of it is yours to read.
④ open-code-review: Hybrid AI Code Review CLI
⑤ caveman: why use many token when few token do trick
⑥ modern-web-guidance-src: Keep your coding agent up to date with the latest web best practices
⑦ phone-harness: let your agent control your phone
⑧ agent-purge: One persona, many coding agents
⑨ opencomputer: An open-source, faster Devin alternative
⑩ cloud-custodian: Rules engine for cloud security, cost optimization, and governance
⑪ claude-video-effects: 51 free video effects for Claude Code
⑫ cefpython: Embed Chromium in desktop apps
① Discussion regarding rules on the use of AI
② In Memoriam: Tim Peters 1952–2026
① DjangoCon US 2026
Welcome to subscribe for weekly hand-picked Python content: Patreon
After subscribing, you can view the full text of Issue 176 for free: https://www.patreon.com/PythonCat666/posts/python-trending-176101344
📖 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 126, 2025-11-08) —
much of it is still worth reading today.
Issue 126 shared 12 articles, 12 open-source projects, total characters.
🦄Articles & Tutorials
The author shares daily notes from the 2025 Python core developer sprint, where Python 3.14.0rc3 was released and in-depth technical discussions covered topics such as the JIT compiler, WASI, Pyodide FFI, deep immutability, cross-platform wheel building, and the new C API.
2、10 Smart Performance Hacks For Faster Python Code
Shares 10 practical tips such as using set lookups instead of list traversal, avoiding unnecessary data copies, and using __slots__ to optimize memory, demonstrating how to speed up code using Python's built-in features and low-level optimization techniques.
3、PEP 798 – Unpacking in Comprehensions
PEP 798 proposes using the * and ** unpacking operators in list, set, and dict comprehensions and generator expressions, merging any number of iterables into a single list via [*it for it in its] without writing nested loops or calling itertools.chain.
4、Making an Easy-to-Install Application in Python
To solve the problem of cross-platform script execution, the author moved from Bash scripts to developing a Python application, exploring options such as zero-dependency installation, self-contained packaging, and single-file vs multi-file architecture, ultimately achieving true cross-platform zero-dependency deployment by embedding the Python interpreter and dependency libraries.
5、Zensical - A modern static site generator
The Material for MkDocs team released the Zensical static site generator, built on Rust, achieving a 5x build speed improvement through the ZRX differential build engine, natively supporting mkdocs.yml configuration for seamless migration, and adopting a brand-new modern design that breaks free from Material Design constraints.
6、Conda in the Packaging Spectrum: From pip to Docker to Nix
The article provides an in-depth analysis of conda's unique position as a user-space distribution, comparing it with package management systems such as pip, Docker, and Nix, explaining how conda achieves lightweight environments by reusing the host glibc, uses prefix relocatability to ensure cross-platform compatibility, and finds a balance between flexibility and reproducibility.
SQLAlchemy tutorial series (15 articles), covering practical topics from basic mapping to complex relationship queries, transaction management, and performance optimization, with hands-on teaching through real project cases to fully master the most powerful ORM tool in the Python ecosystem.
The article analyzes the technical details of the ObjectProxy class in the wrapt library when handling immutable objects, demonstrating through examples the different behavior of in-place operators on mutable and immutable types, and revealing the subtle differences between class attributes and instance attributes during += operations.
9、Choose the Right Text Pattern Tool: Regex, Pregex, or Pyparsing
The article compares three approaches: traditional pattern matching with regex, readability-focused component building with pregex, and structured text parsing with pyparsing, analyzing how to choose the most suitable text processing tool based on the specific scenario.
10、A generator, duck typing, and a branchless conditional walk into a bar
The author uses vivid analogies to explain the lazy evaluation characteristics of Python generators, compares the memory usage differences between lists and generators, uses a book-finding example to illustrate when to use generators, and also explores the clever application of duck typing and branchless conditional statements in practical programming.
11、Debugging live code with CPython 3.14
Python 3.14 has been released—how do you use it to debug running processes? The article introduces the usage of sys.remote_exec(pid, path) and demonstrates how to debug the CrateDB driver.
12、What Actually Happens When You Press 'Send' to ChatGPT
An in-depth analysis of the technical pipeline behind ChatGPT, from HTTPS encrypted transmission to context construction, text tokenization, transformer model inference, and streaming response return, fully demonstrating how an AI chat system achieves real-time interaction through self-attention mechanisms and specialized hardware, giving you insight into the complex tech stack behind every conversation.
🐿️Projects & Resources
1、chandra: OCR model that handles complex tables, forms, handwriting with full layout
Converts images and PDFs into structured HTML/Markdown/JSON, supports over 40 languages, offers table recognition, form reconstruction, handwriting recognition, and image extraction, and provides both local and cloud inference modes. (star 2K)
2、zensical: A modern static site generator by the creators of Material for MkDocs
A new-generation static site generator built on Rust, with 5x faster builds, a modern design, support for incremental builds and caching, full compatibility with Material for MkDocs, and seamless migration of existing projects.
3、strix: Open-source AI hackers for your apps
Dynamically runs code like a real hacker, discovers vulnerabilities, and verifies them through actual exploitation, supports CI/CD integration, and provides a complete hacker toolkit and vulnerability detection reports. (star 3K)
4、nano-vllm: A lightweight vLLM implementation built from scratch
A lightweight vLLM implementation built from scratch in only about 1,200 lines of Python code, offering inference speed comparable to vLLM and supporting prefix caching, tensor parallelism, Torch compilation, and CUDA graph optimization. (star 8.4K)
5、deepagents: Build deep agents that tackle complex, multi-step tasks
A deep AI agent tool library launched by LangChain, supporting task planning and decomposition, filesystem context management, sub-agent delegation, and long-term memory, inspired by Claude Code and Deep Research. (star 5.5K)
6、ktransformers: A flexible framework for LLM inference optimizations
Provides a Transformers-compatible interface, OpenAI/Ollama RESTful API, and ChatGPT-style interface through injected optimization modules, supports GPU/CPU heterogeneous computing and quantized model offloading, and focuses on local deployment optimization. (star 15.5K)
7、agents: Claude Code intelligent automation plugin system
A Claude Code plugin system integrating 85 specialized AI agents, 15 multi-agent workflow orchestrators, 47 agent skills, and 44 development tools, supporting modular installation. (star 20K)
8、DeepAnalyze: The first agentic LLM for autonomous data science
Automatically completes the entire data science lifecycle of data preparation, analysis, modeling, visualization, and report generation, supports multiple data sources, and is fully open source including models, code, and training data. (star 1.7K)
9、caniscrape: Analyze anti-bot protections before scraping
A tool for intelligently analyzing website anti-scraping protection mechanisms, capable of detecting defenses such as WAF, CAPTCHA, rate limiting, TLS fingerprinting, and honeypots, providing difficulty scores and specific suggestions, and supporting historical change tracking and a cloud-based scan database.
10、pytogether: Google docs for Python collaborative IDE
A browser-based collaborative Python IDE suitable for beginners, supporting real-time collaborative editing, Google login, group project management, real-time drawing, voice calls, code linting, and other features, developed on the Django + React + Pyodide tech stack.
11、pipelex: Open-source language for AI Agents workflows
An open-source workflow language designed specifically for AI agents, creating repeatable AI workflows by writing business logic rather than API calls, supporting automated tasks such as PDF analysis, resume matching, and interview question generation, with a free API key provided.
12、amplifier: Metacognitive AI Development
A Microsoft open-source metacognitive AI development tool that automates complex workflows by describing thought processes (metacognitive recipes), transforming expertise into reusable AI tools without coding, and supporting tool composition and continuous improvement. (star 2.2K)
Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.
