Python Trending Weekly
ISSUE 49

Google Lays Off Python Team, Microsoft Open Sources MS-DOS 4.0

2024-05-04 Season 2

TL;DR

Google lays off its Python team ahead of I/O while Microsoft open-sources MS-DOS 4.0; PEP 686 proposes UTF-8 by default, and the CPython JIT saga continues.

Articles 12 Projects 12 Media 2
🦄

Articles & Tutorials

× 12
01 Google Lays Off Python, Flutter, and Dart Teams Before Developer Conference techcrunch.com

This week's big news: Google laid off the Python language team. Although fewer than 10 people, it included several Python core developers and steering committee members, sparking intense discussion. Python was one of Google's most-used languages in the early days, but sadly its proportion has been decreasing.

02 FastAPI Tips from a FastAPI Expert github.com

This is a GitHub document collecting usage tips from a FastAPI Expert. Current content includes: installing uvloop and httptools, using async for instead of while True on WebSockets, ignoring WebSocketDisconnect exceptions, using HTTPX AsyncClient instead of TestClient, and more.

03 PEP 686: Make UTF-8 Mode Default peps.python.org

This PEP has been accepted and will be included in Python 3.15 (yes, you read that right - about two and a half years from now). It proposes enabling UTF-8 mode by default. When enabled, text encoding for files, standard IO, and pipes will use UTF-8, making Python operations with them more convenient.

04 Pydantic: Simplifying Data Validation in Python realpython.com

A comprehensive tutorial detailing the use of the Pydantic library. This library uses type hints to help you validate and serialize Python objects, making code more reliable, readable, concise, and easier to debug. It has rewritten core validation logic in Rust for exceptional performance.

05 Best Practices for Configuration and Data I/O in Small to Medium Python Projects yanh.tech

What are the best practices for configuration file management and data I/O in Python projects? The article's main approach: use YAML files to record configuration and data class content, abstract dedicated configuration/data classes responsible for read/write operations. (Shared by @AlterNao1)

06 Patching Requests for Fun and (Concurrent) Profit blog.borrego.dev

The author discovered that when making concurrent HTTPS requests with the requests library, enabling CA certificate verification takes 1-5 times longer than disabling it, mainly due to calling load_verify_locations(). The author submitted a PR to improve concurrent performance by avoiding reloading root certificates, and the article analyzes this issue.

07 CPython JIT Internals: What Happens When Python Starts? codeconfessions.substack.com

Python 3.13 preview already includes a JIT compiler, but there's still limited information about it. The author plans to write a series of articles deeply analyzing Python JIT internals. This piece explains what happens in the CPython runtime before the JIT compiler starts.

08 Sleepsort: Sorting While Threads Sleep animeshchouhan.com

Sleep sort is an interesting but impractical sorting algorithm, usually used for educational purposes. The article introduces what it is, the OS task scheduling process, and how to implement sleepsort using Python asyncio.

09 Calculating π Using Leibniz Formula in Python, JavaScript, and Ruby peterbe.com

The Leibniz formula is historically significant as one of the earliest infinite series expressions for π. The article implements this formula's calculation in 3 languages, comparing performance between languages and across Python versions 3.8-3.12.

10 10 Years of Python Conferences treyhunner.com

Trey Hunner is a prolific Python blogger, former PSF director, and regular at various Python events. The article shares his years of attending and organizing Python conferences, people he's met, and things he's learned. (PS. PyCon US 2024 will be held mid-month)

11 Some Notes on For Loops buttondown.email

For loops are fundamental code structures in programming languages, but their current state and evolution across different languages is quite diverse. The author reflects on basic for loop formats, foreach/forstep syntax, expressiveness compared to while loops, and for loop extensions (map, reduce).

12 7 Simple Habits of the Top 1% of Engineers read.engineerscodex.com

"10x engineers" represent an aspirational level - those whose productivity and impact far exceed their peers. The author believes these people have 7 important habits, including "code is written for humans, not computers," "use consistent standards," "write simple code," and more.

🐿️

Projects & Resources

× 12
01 logfire: Observability Tool for Python github.com

An observability platform from the Pydantic team, featuring simple yet powerful dashboards, rich Python object display support, event loop telemetry, Python code profiling, and database query analysis.

logfire: Observability Tool for Python
02 pyinfra: Infrastructure Automation with Python github.com

An infrastructure automation tool that's fast and scales from one server to thousands. Perfect for ad-hoc command execution, service deployment, configuration management, etc. (3.2K stars)

03 pipxu: Install and Run Python Applications in Isolated Environments Using UV github.com

Install and use Python in multiple isolated virtual environments, implementing most pipx functionality. Faster performance by using uv instead of venv and pip.

04 tkforge: Create Python GUIs with Drag-and-Drop in Figma github.com

Interacts with Figma API to get file details and convert them to code. Supports placeholder text, multiple frames, and setting foreground colors based on background. (Note: Similar but more successful Tkinter-Designer with 8.3K stars)

05 TagStudio: File and Photo Management System github.com

A Python-implemented tag-based file/photo management system supporting cross-platform, multi-user, and managing several TBs of data. (1.5K stars)

TagStudio: File and Photo Management System
06 coredumpy: Save Crashed Sites for Post-Mortem Debugging github.com

Portable secure dumps using pdb interface, supporting unittest, pytest, and runtime exceptions.

07 plane: Open Source Alternative to JIRA, Linear, and Asana github.com

An open-source software development tool competing with JIRA, Linear, and Asana for managing issues, sprints, and product roadmaps. Frontend uses TypeScript Next.js, backend uses Python Django - excellent full-stack learning project. (24.1K stars)

plane: Open Source Alternative to JIRA, Linear, and Asana
08 Scrapegraph-ai: AI-Based Python Scraping Tool github.com

Combines LLM with Playwright to create scraping pipelines for websites, documents, and XML files. Just describe what you want to scrape, and it handles the rest automatically. (1.2K stars)

09 tv: Automatically Collect IPv4 Hotel TV Live Sources github.com

Automatically tests playback speed with daily updates. Includes CCTV central and satellite channels plus some local channels with smooth playback. Can also run on OpenWrt or Synology Docker.

10 netprobe_lite: Network Performance Testing Tool Developed in Python github.com

A simple, effective tool for measuring ISP performance at home, testing multiple metrics like packet loss, latency, jitter, and DNS performance.

11 dangerzone: Convert Dangerous PDFs, Office Documents, or Images to Safe PDFs github.com

Converts untrusted files (like email attachments) to safe PDFs. Processes in sandbox by first converting files to PDF, then to raw pixel data, finally back to PDF. (3.2K stars)

12 MS-DOS: Source Code for MS-DOS 1.25, 2.0, and 4.0 github.com

Microsoft has open-sourced the MS-DOS 4.0 operating system. This version was actually released in 1988 and was the first DOS version to introduce a graphical user interface, making it historically significant. (28.3K stars)

🐢

Podcasts & Videos

× 2
01 800+ Python Talk Videos from 2023 docs.google.com

This Google document currently contains 864 Python talk videos, all hosted on YouTube, mainly from 2023 PyCon, PyData, EuroPython, and other events.

02 Tutorial: Web Development with Python + HTMX + Tailwind youtube.com

The most-watched video from the above list, using FastAPI + Jinja for backend and the trendy HTMX + Tailwind CSS for frontend. (Note: The video author's blog post introduces the implementation and source code repository)

ESC
↑↓ select · ↵ open175 issues