uv just dropped another major update! Not only as a pip replacement, but now it's expanded into an end-to-end solution for Python project management, command-line tools, single-file scripts, and Python itself. (Also: UV Updates and PEP 723: Simplifying Python Packaging and Scripting)
TL;DR
uv's major release aims to unify Python packaging, PortaOne shows how PyPy connects over a billion calls a month, and one 'farewell pandas' post stirs the pot.
Articles & Tutorials
× 12PyJWT and python-jose are Python libraries for handling JWT, but they have some important differences in functionality scope and design philosophy. The article introduces their differences and some examples of using FastAPI + python-jose to handle JWT in projects.
How to install Python on a Kindle? The article introduces a hardware jailbreaking method that successfully uses KUAL to install Python on a Kindle Paperwhite 3, runs scripts on it, and successfully creates an e-ink dashboard.
Ibis is an open-source data analysis and visualization library that will remove pandas and dask backends starting from version 10.0, switching to recommend the DuckDB backend instead. The article explains why they initially chose pandas and the pain points pandas brought. (Note: ibis means a type of wading bird)
The author joined the Google Summer of Code program. This post reviews what he did while hardening the CPython compiler, including enabling compiler options, developing tools to track warnings, plans to resolve existing warnings, and lessons learned.
Dynamic code generation, or codegen for short, is a technique for generating new code at runtime. The article covers when you should use it, a real example that doubled the speed of a production system, and wrong vs. right ways to use it.
PortaOne is a company serving telecom operators, using Python to develop their core middleware. The article briefly introduces its functionality implementation, using PyPy to improve performance, and major bugs discovered during usage.
Introduces 10 methods for optimizing Python code to write more efficient and high-performance code, such as variable packing, using more memory to reduce disk I/O, fixed-length vs. variable-length variables, internal vs. public functions, etc.
NTLMv2 hash theft is a common credential harvesting technique. The article discloses SSRF vulnerabilities in 3 popular Python libraries (Gradio, Jupyter Notebook, and Streamlit) that could lead to credential leakage, with detailed analysis of the code causing these vulnerabilities.
A Flask source code analysis series published in 2017, analyzing version 0.12. Topics covered include application startup flow, routing, context, requests, responses, and sessions, helpful for deep understanding of Flask. (Shared by @un4gt) (Also: the sharer's Flask project scaffolding tool flasky-cli)
A pip core team member introduces notable changes in version 24.2, including deprecating editable installs, defaulting to system HTTPS certificates, multiple performance optimizations, stricter pip check rules, and configuring pip to only work in activated virtual environments.
HTMX is appearing more and more frequently in the Python community - we've shared quite a bit in previous issues. This author played a key role in HTMX's popularity. The author reviews their experience with and promotion of HTMX, the impact it had, and answers some questions people raised.
Projects & Resources
× 12A high-performance cache library inspired by Caffeine, with a Rust core, using W-TinyLFU and Clock-Pro eviction policies for high hit rates, and hierarchical timers for automatic expiration of expired data.
A library implemented with Cython, designed for building asyncio WebSocket clients and servers, with performance nearly 2x faster than aiohttp.
A lightweight RabbitMQ handling framework that simplifies building microservices and distributed systems, with features including simple message routing, plugin support, and intuitive client configuration.
Build beautiful, low-latency, real-time, browser-based apps and dashboards in pure Python or R, without HTML, Javascript, or CSS. (3.9K stars)
A simple and easy-to-use library, similar to GitHub Copilot, that lets you chat with any public or private code repository.
Conveniently manage references to the current request user, supporting both thread and database storage methods.
Automatically trade cryptocurrencies using state-of-the-art machine learning algorithms and feature engineering, analyzing historical data and training models in batch offline mode.
Record multimodal data like images, tensors, point clouds, and text, with real-time visualization, useful for robotics, simulation, computer vision, and other scenarios involving lots of sensors or time-varying signals. (6.2K stars)
Provides user-friendly and high-performance infrastructure for video generation, supporting the entire pipeline of training, inference, serving, and compression. (1.6K stars)
This repository collects papers/blog materials on topics like foundational knowledge, construction theory, and practical implementation for building knowledge graphs, from theory to implementation. (1K stars)
A terminal visual effects engine that can be installed as a system program to generate effects in the terminal, or as a Python library to enable effects in Python scripts/applications. (2.7K stars)
A minimalist, customizable RAG UI (based on Gradio) for chatting with documents, with support for viewing how the RAG pipeline runs. (5.8K stars)