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.
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 & Tutorials
× 12Another 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)
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.
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.
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.
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.
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.
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.
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.
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.
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.
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
× 12Automatically 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)
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)
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)
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.
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)
Python web framework requiring no HTML, CSS, or JavaScript. Provides rich React-style components, declarative UI framework, complete type safety.
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)
Simple, low-cost personal resume generation tool producing PDF files.
Standard library itertools provides many functions; this project supplements it with numerous additional functions. Check the documentation for details. (3.5K stars)
Python project management tool developed in Rust, enforcing modular design, defining and standardizing package dependencies for easier development and maintenance.
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.
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)