Python Trending Weekly
ISSUE 96

Using Computers Like Humans

2025-04-05 Season 4

TL;DR

A deep dive demystifies MCP, the protocol connecting LLMs to the outside world; a team hacks Google's Gemini and leaks its source code, while uv officially overtakes Poetry in downloads.

Articles 12 Projects 12 Discussions 2
🦄

Articles & Tutorials

× 12
01 A Deep Dive into MCP: The Revolutionary Breakthrough for AI Model Interaction with the External World juejin.cn

What exactly is the recently trending MCP? This article introduces MCP's technical background, advantages, and development process, showcasing its fundamental differences from traditional Function Calling technology, and demonstrates code examples for MCP client and server development. (Also: What is MCP (Model Context Protocol)?)

A Deep Dive into MCP: The Revolutionary Breakthrough for AI Model Interaction with the External World
02 We hacked Google's A.I Gemini and leaked its source code landh.tech

A hacker team shares their experience discovering Gemini vulnerabilities during Google's LLM bugSWAT event and earning the "Most Valuable Hacker" title, detailing their approach to exploring Python sandbox environments.

03 How We Migrated to Async Python blog.duolingo.com

Duolingo's official blog shares their experience transforming a synchronous microservice into an asynchronous one, including how to reach consensus on migration, design async versions of sync libraries, and handle async code.

04 Share Python Scripts Like a Pro: uv and PEP 723 for Easy Deployment thisdavej.com

PEP-723 "Inline Script Metadata" specification allows embedding external dependencies directly into single-file scripts without needing additional requirements.txt. Combined with uv and shebang, it simplifies Python script distribution and execution.

05 Building a Real-time Dashboard with FastAPI and Svelte testdriven.io

Using Server-Sent Events (SSE) to push real-time data updates from FastAPI to a Svelte frontend, developing an interactive dashboard with real-time updates.

06 Data Visualization Powerhouse — The Interesting Philosophy of Streamlit qtmuniao.com

Streamlit is a Python library for rapidly developing simple web pages. The article analyzes its three fundamental design philosophies: writing frontend with backend language, rebuilding on new events, and supporting session-level caching.

07 Optimizing Python: Understanding Generator Mechanics, Expressions, And Efficiency pybit.es

Explores Python generator mechanics and demonstrates their advantages in memory efficiency and data processing through data comparisons.

08 Unveiling 8 Hardcore Uses of Python Network Programming juejin.cn

Beyond chat rooms, what else can Socket do? The article introduces port scanners, simple HTTP servers, LAN games, remote control, file transfer, load balancing, DDOS attack simulators, and network proxy servers.

09 PyTorch and Python Free-Threading trent.me

Introduces Python 3.13's "free-threading" mode and how it achieves efficient parallel model inference with PyTorch. By training GPT-2 models without GIL, it demonstrates the benefits of fully utilizing multi-core CPU resources in AI inference scenarios.

10 How to Automate PyPI Publishing with uv, Trusted Publisher, and GitHub blog.zech.codes

Using uv to simplify Python package management, PyPI's Trusted Publisher for secure connections, and GitHub Actions to automatically trigger package uploads to PyPI.

11 How I Automated My Podcast Transcript Production With Local AI den.dev

The author leverages WhisperX's speech-to-text and alignment capabilities to quickly process audio files, then uses local LLM to organize transcribed text and generate high-quality podcast subtitles.

12 Opening a web page from Python mostlypython.com

The author discovered that using subprocess + shlex + open to open web pages has OS compatibility issues, while the standard library webbrowser easily solves this, so they analyzed webbrowser's implementation principles.

🐿️

Projects & Resources

× 12
01 plain: A web framework for building products with Python github.com

A web framework forked from Django, consisting of a core package and several optional third-party packages.

plain: A web framework for building products with Python
02 playa: PDF Parallel and Lazy Analyzer github.com

Provides parallelizable lazy-loading interfaces to access PDF file internal structures; view various PDF metadata from command line; extract text or text objects, supports JPEG image extraction.

03 safe-result: A Python package for elegant error handling github.com

Inspired by Rust's Result type, enables more explicit error handling without relying on try/catch blocks.

04 clypi: Your all-in-one for beautiful, prod-ready CLIs github.com

Lightweight CLI framework that's type-safe, async-capable, easy to test, with composable commands and flexible configuration.

05 gcop: AI-Powered Git Commit Assistant github.com

Transforms messy commits into meaningful narratives. Automates commit message generation, enhances Git workflow, and makes version control effortless with 20+ smart commands. (Shared by @Zeeland)

06 conftier: Multi-layer Configuration Management Framework github.com

Multi-layer configuration management framework similar to VSCode's user/workspace settings model, simplifying the definition, access, and synchronization of hierarchical configurations in Python programs. (Shared by @Zeeland)

07 arxiv-mcp-server: A Model Context Protocol server for searching and analyzing arXiv papers github.com

Filter arXiv papers by date and category, download and read paper content, view downloaded papers, store papers locally.

08 nova-act: Develop agents that execute in browsers github.com

Amazon's open-source experimental SDK for developing agents that reliably execute actions in browsers.

09 dockerpyze: Python applications to Docker, automatically. github.com

Automatically generates Docker images for uv/poetry projects, PEP-621 compatible, supports adding configuration in pyproject.toml.

10 E-book: Architecture Patterns with Python cosmicpython.com

Published by O'Reilly, with free online reading version. Helps Python developers manage architectural design for complex projects, including dependency inversion, domain-driven design, event-driven architecture, and reactive microservices.

11 social-auto-upload: Automatically upload videos to Douyin/Xiaohongshu/WeChat Channels/Bilibili etc. github.com

Automates video publishing to major social media platforms, supports scheduled uploads. (4.4K stars)

12 VideoX-Fun: Generate videos of any resolution, supports image-to-video github.com

A video generation pipeline for creating AI images and videos, training Diffusion Transformer baseline models and Lora models.

🥂

Discussions & Issues

× 2
01 PEP-751: Python Standard Dependency Lock File Discussion discuss.python.org

PEP-751 was officially accepted a few days ago! This is major news for Python's packaging ecosystem! It proposes specifying a standard dependency lock file format for reproducible installations. (Also: Reddit discussion about the PEP acceptance, PEP 751 (A Standardized Lockfile for Python) is Accepted!)

02 uv Overtaking Poetry in Package Downloads reddit.com

Discussion about the trending uv's download numbers.

ESC
↑↓ select · ↵ open175 issues