Python Trending Weekly
ISSUE 73

Python Weekly #73: Let's Go Easy on PyPI, OK?

2024-10-19 Season 3

TL;DR

A plea to go easy on PyPI, debate over uv's managed Python in production, PEP-762's plan to replace the default REPL, and OpenAI's swarm for multi-agent orchestration.

Articles 12 Projects 12
🦄

Articles & Tutorials

× 12
01 Let's go easy on PyPI, OK? mkennedy.codes

Many automated systems frequently download packages from PyPI, creating a massive traffic burden. Issue #71 of this newsletter mentioned it costs about $12 million annually! This article discusses how to optimize Dockerfiles to both speed up builds and reduce traffic pressure on PyPI.

02 Should you use uv's managed Python in production? pythonspeed.com

uv is an alternative to pip that can also install Python. Is it appropriate to use uv to install Python in production environments? The article compares it with other versions in terms of Python source, portability and compatibility, performance and security, maintaining a cautiously optimistic stance overall.

03 What I Learned from Making the Python Backend for YouTube Transcript Optimizer youtubetranscriptoptimizer.com

The author developed a video subtitle optimizer using Python + NextJS, with the backend using FastAPI and SQLmodel. The article shares experiences in technology selection, asynchronous programming, database selection and optimization, using LLM for quality control, using LLM for diagnosis and error fixing, and production deployment.

04 Concurrency For Starlette Apps (e.g FastAPI / FastHTML) hamel.dev

Explores how to implement background task processing without blocking services when calling large models in Starlette-based applications (like FastHTML and FastAPI). Solutions include using SQL databases as queues, using threads for background tasks, asynchronous processing, and more.

05 Perks of Being a Python Core Developer mariatta.ca

The author has been a Python core developer since 2017 and shares some of the privileges, benefits, and responsibilities they enjoy, including commit access to CPython and over 20 Python repositories, a python.org email address, participation in Python Language Summits, and more.

06 How to migrate your Eventlet projects to Asyncio? developers.redhat.com

Eventlet is a Python async library that's been around for nearly 20 years and is now officially retiring! The article explains how to migrate Eventlet projects to Python's official Asyncio library using the Awaitlet tool open-sourced by the SQLAlchemy team.

07 An OpenTelemetry Python Example — Building a Tesla Monitor greptime.com

How do you monitor Tesla Model 3 charging and driving data? The article covers using Python and OpenTelemetry to interface with the Tesla Owner API, implementing data collection and storage processes for vehicle data monitoring and analysis.

08 Build a Blog Using Django, GraphQL, and Vue realpython.com

A comprehensive long-form tutorial that teaches you step-by-step how to develop a blog using the Django + Vue tech stack, with GraphQL for API communication.

09 PEP-762 – REPL-acing the default REPL peps.python.org

Python 3.13 brings a brand new REPL (Python console). This PEP is the design specification for this feature, including why Python rather than C was used to implement the REPL, what features it includes, backward compatibility, rejected design ideas, and more.

10 How Slack Solved a Tricky Database Connection TCP Error slack.engineering

Slack engineers discovered massive EOFErrors in SQL queries while integrating Quip, which they traced to asyncio.IncompleteReadError. The article covers the investigation process to dig into the root cause, solutions, and the impact of this issue.

11 Local Variables as Accidental Breadcrumbs for Faster Debugging bugsink.com

How do exceptions typically occur, and what factors help fix them quickly? The Bugsink author emphasizes the importance of local variables in debugging - they're traceable breadcrumbs that help developers quickly track down and locate errors.

12 Thinking about architecture mostlypython.com

The author developed a django-simple-deploy project for configuring and automatically deploying projects to different platforms. The article discusses problems encountered when developing the plugin system and how good project architecture can solve them.

🐿️

Projects & Resources

× 12
01 austin: Python frame stack sampler for CPython github.com

A cross-platform Python profiler that collects samples by reading CPython interpreter virtual memory space with minimal impact on target programs. Zero-intrusion, time and memory-based profiling, built-in support for multi-process applications. (1.8K stars)

austin: Python frame stack sampler for CPython
02 srgn: A grep-like tool which understands source code syntax and allows for manipulation in addition to search github.com

Similar to grep, can be seen as a hybrid of tr, sed, ripgrep, and tree-sitter. Understands source code syntax and can perform searches and other operations.

03 swarm: Educational framework exploring ergonomic, lightweight multi-agent orchestration github.com

An educational framework for exploring ergonomic, lightweight multi-agent orchestration. (13.1K stars)

04 makedown: Organise your shell scripts within executable markdown files github.com

Manage commands and documentation using Markdown files, supports script execution for zsh, bash, javascript, python, and more, with syntax highlighting support.

05 pyloid: Pyloid is the Python backend version of Electron and Tauri github.com

Built on QtWebEngine and PySide6, designed to simplify desktop application development as an alternative to Electron and Tauri.

06 Orbidium: Visualize the Orbital Paths of Asteroids github.com

2D rendering of NASA MPC asteroid data, displaying asteroid orbital trajectories.

07 Web Browser Engineering browser.engineering

A free open-source ebook that develops a basic but complete web browser using a few thousand lines of Python code, covering everything from networking to JavaScript.

08 ArchiveBox: Open source self-hosted web archiving github.com

A powerful self-hosted website archiving solution for offline collection, preservation, and viewing of websites. Saves HTML, JS, PDF, media, and more through URLs/browser history/bookmarks/Pocket/Pinboard/etc. (21.5K stars)

09 OmniSenseVoice: High-Speed Speech Recognition with words timestamps github.com

A smarter, faster audio transcription tool based on the SenseVoice model, with lightning speed and precise timestamps.

10 pipreqs: Generate pip requirements.txt file based on imports of any project github.com

Generates requirements.txt files based on import statements in projects, more useful than pip freeze. (6.4K stars)

11 openfreemap: Free and open-source map hosting solution github.com

Based on OpenStreetMap public data, provides free custom maps for your websites and apps. No limits on maps and requests, no registration or API keys required. (2.2K stars)

12 Starmoon: An open source voice-enabled, compact, empathic AI hardware + software framework github.com

An affordable, empathetic conversational AI companion for companionship, entertainment, education, childcare, IoT robots, AI-enhanced robots, and DIY robot kit development.

🥂

Discussion & Questions

× 2
ESC
↑↓ select · ↵ open175 issues