Python Trending Weekly
ISSUE 53

Role Models - One Meets Nobel Laureate, Another Becomes Core Developer

2024-06-01 Season 2

TL;DR

One author meets a Nobel laureate, another becomes a Python core developer in 450 days; Beautiful Soup turns 20, and a Django task queue on Postgres — no Celery — is a clever trick.

Articles 12 Projects 12
🦄

Articles & Tutorials

× 12
01 I "Met" a Nobel Prize Winner frostming.com

What a role model! Our weekly regular @frostming was invited to meet with 2018 Nobel Prize co-winner Paul Romer because of developing PDM. The article shares this exciting experience, mentioning that Paul is working on a GUI application to help Python beginners set up development environments. I didn't expect him to care about such things - instantly gained my respect.

02 Becoming a Python Core Developer in 450 Days bilibili.com

Another role model! @Gaotian spent just over a year contributing to CPython and has now officially become a Python core developer. There are currently fewer than 100 active core developers globally, making this achievement truly remarkable. (Related: This nomination post for Gaotian details his contributions to Python)

03 How Python Compares Floats and Ints? blog.codingconfessions.com

Starting with a very strange problem (see screenshot below), the article introduces IEEE-754 double precision format representation and dives deep into CPython interpreter source code to explain Python's algorithm for comparing floats and integers. Unlike C and Java which implicitly convert integers to double precision, Python has infinite precision integers, so it designed a specialized algorithm for comparison.

Strange results when comparing huge integers with floats
04 JIT and GIL Removal Aren't Even My Most Anticipated Python 3.13 Features blog.vslira.net

Python 3.13 is a rather unique version, and our weekly has shared quite a bit of content about it. However, the author's most valued feature is the new dbm.sqlite3, which solves their problem with dbm+shelve incompatibility across different operating systems.

05 The Untold Story of 6 Years Working on Python Packaging harihareswara.net

The author gave a closing keynote at PyCon US 2024, sharing stories about Python packaging over 6 years. This article lists many links and references related to the speech topics.

06 Celebrating Beautiful Soup's 20th Anniversary harihareswara.net

Discovered from the previous blog that Beautiful Soup has been released for 20 years! It's commonly used for web scraping and parsing. This anniversary article reviews some stories while mainly wanting to collect more user stories for a planned anthology. Such a long-lasting, healthy project with a developer who has humanistic feelings deserves praise.

07 I Used to Love Ruby, Now Maybe I Like Python sgt.hootr.club

The author used to love Ruby but dislike Python, then discovered the power of type programming through TypeScript and Rust. Now they're won over by Python's type hints and match-case support, discovering other great features and switching to the Python camp.

08 Django Async Task Queue with Postgres (Not Kafka, RabbitMQ, Celery, or Redis) simplecto.com

The article introduces a simple alternative to Celery and other complex solutions for async task queues in Django: "Django commands". It demonstrates usage and considers potential issues like deadlocks.

09 Supporting Async MongoDB Operations in Streamlit handmadesoftware.medium.com

Streamlit is excellent for building dashboards, but async data source operations are troublesome. The article introduces how to better integrate the two, analyzing 4 implementation approaches. Uses the Beanie library for async MongoDB operations.

10 LangChain in Action: Document Analysis and Interaction Using LangChain SQL Agent and GPT juejin.cn

How to digitize large amounts of files with AI and answer users' complex data-related questions? The article introduces using Python and LangChain to read and analyze PDF documents, SQLite for data management, and LangChain SQL Agent for Q&A.

11 pyo3_asyncio: Rust Bindings for Python Asyncio Event Loop awestlake87.github.io

pyo3_asyncio provides convenient interfaces to manage Python and Rust async/await operations, supports future conversion between the two, and manages event loops for both languages. The article introduces implementation principles and usage methods.

12 PyPy Has Been Quietly Working for Me for Years utcc.utoronto.ca

The author has been using pipx to install Python dependencies with PyPy interpreter instead of official CPython. It's been running well for years without noticeable differences, showing PyPy is indeed a successful CPython alternative.

🐿️

Projects & Resources

× 12
01 llama-fs: Self-Organizing File System Based on Llama 3 github.com

Automatically renames files and manages directories based on file content and time conditions, supporting various file types including images and audio. Features an Electron frontend and FastAPI backend. (3K stars)

02 orjson: Fast, Correct JSON Library Supporting Dataclasses, Datetime, and Numpy github.com

Claimed to be the fastest Python JSON library, more accurate than standard library and other third-party libraries. Natively serializes dataclass, datetime, numpy, and UUID instances. (5.7K stars)

03 asyncssh: Async SSHv2 Client and Server on asyncio github.com

Async SSHv2 client and server implementation supporting SFTP and TCP, compatible with OpenSSH. Multiple sessions on single SSH connection, multiple SSH connections in single event loop. (1.5K stars)

04 ipyblender-experimental: Bringing Blender to Jupyter github.com

Blender is powerful open-source 3D graphics and animation software for 3D modeling, rendering, animation, and video post-processing. This project integrates it into Jupyter notebooks.

05 searxng: Free Internet Metasearch Engine Aggregating Results from Various Search Services github.com

Privacy-respecting internet metasearch engine aggregating results from 70+ search services. Supports self-hosting, no user tracking/analytics, secure encrypted connections, 100+ well-maintained instances. (9.7K stars)

06 rio: Pure Python Web Framework Without JavaScript, HTML, or CSS github.com

Python web framework requiring no HTML, CSS, or JavaScript. Provides rich React-style components, declarative UI framework, complete type safety.

07 buku: Personal Textual Mini-Web github.com

Powerful bookmark manager and personal textual mini-web, also provides GUI. Can import bookmarks from browsers or fetch URL titles, tags, and descriptions from web. Add, write, and update bookmarks using your favorite editor. (6.3K stars)

08 resume-builder: Pure Python Resume Generation Tool github.com

Simple, low-cost personal resume generation tool producing PDF files.

09 more-itertools: Richer Iterable Operations Than itertools github.com

Standard library itertools provides many functions; this project supplements it with numerous additional functions. Check the documentation for details. (3.5K stars)

10 tach: Enforce Modular, Decoupled Package Architecture github.com

Python project management tool developed in Rust, enforcing modular design, defining and standardizing package dependencies for easier development and maintenance.

11 Zango: Python Web Framework for Building Enterprise Applications/Microservices github.com

Web framework built on Django, supporting hosting multiple applications or microservices on monolithic services. Built-in security and compliance components, providing enterprise-required application components.

12 pdm: Python Package and Dependency Manager Supporting Latest PEP Standards github.com

Modern Python package manager with simple, relatively fast dependency resolver, compatible with PEP-517 and PEP-621, flexible and powerful plugin system, supports Python installation, pnpm-like centralized installation cache saving disk space. (7K stars)

ESC
↑↓ select · ↵ open175 issues