Python Trending Weekly
ISSUE 45

More and More AI-Powered Development Frameworks

2024-04-06 Season 2

TL;DR

Microsoft's AutoDev, OpenDevin, and SWE-agent arrive almost together as AI dev frameworks multiply; ten reasons for sticking with Django make the case too.

Articles 13 Projects 11 Media 2
🐱

Brand Partnership

This newsletter is produced by the "Python Cat" WeChat public account, a tech media focused on Python technology education and sharing, with 50,000+ subscribers across all platforms. For brand partnerships, please contact us via private message.

🦄

Articles & Tutorials

× 13
01 AutoDev: Microsoft's Automated AI-Driven Development Framework arxiv.org

A research paper from Microsoft headquarters introducing the AutoDev framework, which enables AI agents to autonomously write code, test, build, and operate Git, etc. It uses Docker to ensure development environment security and can be configured to limit AI agent permissions and operations. Achieved 91.5% code generation accuracy and 87.8% test generation accuracy on the HumanEval dataset.

AutoDev Framework Overview
02 10 Reasons I Stick to Django Instead of FastAPI david-dahan.com

While FastAPI is becoming increasingly popular, the author still sticks with Django. The article briefly introduces 10 reasons why.

03 Django and ASGI Servers fly.io

ASGI is the Asynchronous Server Gateway Interface specification that allows asynchronous servers to communicate with web application frameworks. The article introduces several popular ASGI servers (Daphne, Uvicorn, Hypercorn, and Granian), compares their performance and features, and provides advice on choosing the right ASGI server.

04 What Exactly is a Number in JSON? blog.trl.sn

JSON has two main standard definitions (Ecma-404 and RFC-8259), yet various programming languages and JSON libraries in reality have many differences when handling number precision and ranges. The article provides some comparisons and summaries on this topic.

Number Type Representations in Different Languages
05 CPython Source Code Analysis: Why Do Python Lists Multiply So Oddly? codeconfessions.substack.com

Python lists support multiplication operations, like [[]]*4, which results in [[],[],[],[]]. However, the 4 lists copied in this example are just references to the same object. The article deeply analyzes CPython source code, introducing list object structure and internal object storage mechanisms, the implementation principle of the asterisk operator, and how CPython specifically executes list multiplication operations.

06 Celery Source Code Analysis Series juejin.cn

Celery is a commonly used distributed task queue library in Python. This series has been updated with 9 articles, deeply introducing its basic architecture, Worker startup, important components, lifecycle, scheduled tasks, and more.

07 How I Manage Python in 2024 outlore.dev

The author introduces their latest tech stack: using mise for Python version and virtual environment management, poetry or uv for dependency management, ruff for formatting and linting, and pydantic for runtime checking.

08 Bringing Python to Cloudflare Workers using Pyodide and WebAssembly blog.cloudflare.com

A significant news this week: Cloudflare supports writing Workers in Python! This move will expand Cloudflare platform capabilities and drive serverless computing and running Python code in browsers. The feature is currently in public beta, looking forward to future developments.

09 Learning to Code With and Without AI austinhenley.com

The article poses two fundamental questions: What impact do AI code generation tools have on programming newcomers? How should newcomers use AI code generation tools when learning programming? The article introduces research results from two papers.

10 Easy Video Transcription and Subtitling with Whisper, FFmpeg and Python editframe.com

This tutorial shows how to use OpenAI's Whisper model to transcribe videos and easily add subtitles using the powerful FFmpeg tool.

11 How to Use GitHub Actions to Automate Data Scraping? medium.com

The article introduces how to use GitHub Actions' scheduling functionality to automatically execute data scraping tasks, covering how GitHub Actions works and several usage limitations.

12 Using Breakpoints to Debug Python Code mostlypython.com

The article introduces how to use breakpoints to debug and observe code execution, mainly covering the use of the pdb module's breakpoint() method.

13 Python's "Real" Anonymous Functions lwn.net

Python supports creating anonymous functions using lambda expressions, but only supports single expressions. The community always has people proposing support for more flexible anonymous functions, and there's another one this year. The article introduces the proposer's viewpoints and opposing views. (Also: Why Does Python's Creator Dislike Lambda Anonymous Functions?)

🎁Python Trending Weekly🎁 Every 30 issues makes a season, and the highlights from the first season have been compiled for easy reference. Online access: Python Trending Weekly Season 1 Highlights Collection (Issues 1~30)

🐿️

Projects & Resources

× 11
01 OpenDevin: Open Source Implementation of Devin github.com

An open-source AI software engineer that leverages tools like shell, code editor, and web browser to fully unleash LLMs' potential in software development. (18.4K stars)

02 SWE-agent: AI Software Engineer That Can Fix GitHub Issues github.com

An AI engineer from Princeton University that fixed 12.29% of issues in SWE-bench testing, with performance close to Devin. (6.6K stars)

SWE-agent: AI Software Engineer That Can Fix GitHub Issues
03 openui: Describe the UI You Want, It Generates It in Real Time github.com

An LLM-based framework for generating frontend UI interfaces that can convert HTML to React, Svelte, Web Components, etc. (4K stars)

04 ragflow: Open Source RAG Engine Based on Deep Document Understanding github.com

Extracts deep knowledge based on document understanding from complex format unstructured data, with visual text chunking and automated, easy RAG workflows. (2.4K stars)

05 zibai: High-Performance Pure Python WSGI Server github.com

Its Chinese name is "Zibai", after a creature from the Classic of Mountains and Seas. Compared to gunicorn, it has better performance and can be used on Windows. Compared to waitress, Zibai has comparable single-process performance when not using gevent and is more stable under heavy load than waitress.

06 podgenai: GPT-4 Audiobook/Podcast MP3 Generator github.com

Can use GPT-4 to generate approximately one-hour single-speaker audiobook/podcast MP3 files on given topics.

07 qiling: Truly Detectable Binary Emulation Framework github.com

A pure Python implementation of an advanced binary emulation framework supporting many operating systems and hardware architectures, multiple file formats, cross-architecture and platform debugging, with reverse debugging capabilities. (4.8K stars)

08 maxtext: Google's Simple, High-Performance and Scalable JaxLLM github.com

Written in pure Python/Jax, designed for Google Cloud TPU, achieving 55% to 60% model FLOP utilization.

09 nava: Play Sound in Python github.com

A dependency-free, cross-platform library for playing sounds. Supports async mode, loop mode, mainly supporting .wav format.

10 MuseV: Infinite-Length and High-Fidelity Virtual Human Video Generation github.com

Infinite-length and high-fidelity virtual human video generation based on visual conditional parallel denoising, open-sourced inspired by Sora. Can be combined with real-time high-quality lip-sync model MuseTalk to build complete virtual human generation solutions.

11 restai: An AIaaS (AI as a Service) Open Source Platform github.com

Built on LlamaIndex, Ollama, and HF Pipelines, creates AI agents and provides simple REST APIs for invocation.

🐢

Podcasts & Videos

× 2
01 Clone a Full-Stack Airbnb with Nextjs, Tailwind and Django youtube.com

A YouTube video series showing how to clone an Airbnb website using popular frontend and backend tech stacks, suitable as a practice project for learning.

02 Django Brew: A New Python Podcast djangobrew.com

A podcast focused on the Django framework. The first episode shares some conference presentations from DjangoCon 2023 and other interesting content.

🐢

Book Giveaway

Irregular giveaway events! This week we're giving away 5 copies of "Python Programming and Its Applications (2nd Edition)". Drawing date: April 12th. Send the number "8045" to the Python Cat WeChat public account to get the lottery mini-program code.

The book is divided into two parts: the first part introduces Python basics from shallow to deep, and the second part covers Python applications in areas including web applications, databases, networking, and machine learning. The book is easy to understand and enjoyable to read, very suitable for newcomers who want to quickly gain Python application experience.

ESC
↑↓ select · ↵ open175 issues