Python Weekly (Issue 700 May 22 2025)

In partnership with

Create How-to Videos in Seconds with AI

Stop wasting time on repetitive explanations. Guidde’s AI creates stunning video guides in seconds—11x faster.

  • Turn boring docs into visual masterpieces

  • Save hours with AI-powered automation

  • Share or embed your guide anywhere

How it works: Click capture on the browser extension, and Guidde auto-generates step-by-step video guides with visuals, voiceover, and a call to action.


Articles, Tutorials and Talks

AlphaEvolve is an autonomous coding agent that uses evolutionary strategies to improve algorithms by iteratively modifying code and learning from evaluator feedback. It has achieved breakthroughs in data center scheduling, hardware design, and mathematical discovery—including surpassing Strassen’s 4×4 matrix multiplication algorithm for the first time in 56 years.

This video is a hands-on tutorial showing how to use Ruff, a super-fast Python linter and formatter written in Rust that consolidates tools like Flake8, Black, and isort into a single, efficient solution. The guide covers installing Ruff, running it from the command line, configuring it for projects, and integrating it with VS Code to improve code quality and developer workflow.

PEP 750 introduced t-strings for Python 3.14. In fact, they are so new that as of Python 3.14.0b1 there still isn't any documentation yet for t-strings. As such, this blog post will hopefully help explain what exactly t-strings are and what you might use them for by unravelling the syntax and briefly talking about potential uses for t-strings.

The article explores how to check if a year is a leap year using just three CPU instructions, leveraging clever bit manipulation and "magic numbers" to optimize the standard algorithm. By reverse-engineering and brute-forcing constants, the author demonstrates a branchless, highly efficient leap year check for years up to 102,499, illustrating both the mathematical tricks and practical limits of such optimizations.

Vibe Coding, Learn to build Micro SAAS from the ground up using Cursor (Includes v0, shadcn UI, Vercel Deployment) SPONSOR

This video discusses 10 common Python anti-patterns that can lead to broken or hard-to-maintain code. It emphasizes practices like avoiding wildcard imports and leveraging Python's built-in tools and libraries instead of reinventing the wheel.

The author, once a fan of NumPy, now criticizes its complexity and opacity when working with high-dimensional arrays, arguing that common operations often become unreadable and error-prone due to confusing broadcasting, indexing, and function conventions. While NumPy excels at simple cases, the post contends that its design choices—especially around implicit broadcasting and lack of explicit indexing—make advanced array manipulation frustrating and difficult to reason about, suggesting that more transparent, index-based approaches would improve clarity and usability.

Python 3.14 introduces template strings (t""), which return structured Template objects instead of plain strings, enabling full inspection and control of interpolated expressions. This allows safer, customizable rendering for use cases like shell commands, HTML output, logging, and config generation—offering a powerful alternative to f-strings when you need pre-render control.

LlamaIndex overhauled its Python monorepo tooling, replacing Poetry and Pants with a custom tool called LlamaDev and the fast package manager uv to better manage over 650 interdependent packages. This shift significantly improved build speeds, developer experience, and CI reliability, making it easier for contributors to work at scale.

This video is a practical introduction to using Dagster for Python-based data orchestration, covering core concepts like assets, definitions, scheduling, and the Dagster UI. Through hands-on examples—including building a pipeline with Polars and DuckDB—the tutorial demonstrates how to define, manage, and automate complex data workflows in modern data engineering.

The author describes building a simple search engine for their blog using word embeddings (word2vec), where each post and query is represented as a vector and ranked by cosine similarity. They detail the technical process, from embedding words and posts to creating a lightweight, browser-friendly search front-end, and discuss evaluating its effectiveness compared to keyword-based search.

This video course introduces LangGraph, a Python library for building advanced conversational AI workflows using a graph-based approach. It guides viewers through designing, implementing, and managing scalable dialogue systems, covering both theoretical concepts and hands-on coding exercises.

Lyft engineers detail how they improved the scalability and reliability of their Aurora Postgres databases by implementing connection pooling with SQLAlchemy and Amazon RDS Proxy. The article explains the challenges of managing database connections in high-traffic environments and describes how these solutions reduced connection limits, improved application stability, and optimized resource usage.

The post explores modeling dependent type theory (DTT) concepts using Python’s frozenset data structure, treating types as finite sets to clarify complex type-theoretic ideas. By implementing type constructors like dependent sums (Σ), dependent products (Π), and identity types in Python, the author demonstrates how key DTT judgments and structures can be represented and reasoned about in a computational, hands-on way.

The article demonstrates how to build a flexible, modern data lakehouse architecture using open-source tools like MinIO, Apache Iceberg, Airflow, dbt, Spark, Pandera, and Superset. By integrating these technologies with Docker for easy deployment, it shows how to orchestrate robust data pipelines, ensure data quality, and enable scalable analytics from raw ingestion to interactive dashboards.

In this post, we prototype a machine learning workflow using DuckDB for data handling and scikit-learn for modeling.

Exploring the unique advantages of transformWithStateInPandas.


Interesting Projects, Tools, and Libraries

A cache for AI agents to learn and replay complex behaviors.

UV kernel for Jupyter.

AutoGenLib is a Python library that automatically generates code on-the-fly using OpenAI's API. When you try to import a module or function that doesn't exist, AutoGenLib creates it for you based on a high-level description of what you need.

A new open-source framework to build and deploy intelligent agents.

A Google Agent Development Kit (ADK) powered assistant designed to help Site Reliability Engineers (SREs) with operational tasks and monitoring, particularly focused on Kubernetes interactions.

Building conversational interfaces for websites is hard. NLWeb seeks to make it easy for websites to do this. And since NLWeb natively speaks MCP, the same natural language APIs can be used both by humans and agents.

Create and run workflows (RPA 2.0).

Perform transformations on your data with natural language using LLMs

OpenThinkIMG is an end-to-end open-source framework that empowers LVLMs to think with images.

Live Gaussian Splatting for RGBD Camera Streams.

Extract voice segments of a target speaker from podcasts - Useful for creating speech datasets.

A community-driven wiki for learning Flask.

Flowfile is a visual ETL tool combining drag-and-drop workflows with the speed of Polars dataframes. Build and analyze data pipelines without code. Perfect for analysts and engineers needing fast, intuitive data processing. Designed to run locally or deploy to production environments.

pyfuze makes your Python project run anywhere.


New Releases

JupyterLab 4.4 and Notebook 7.4 introduce key improvements, including enhanced accessibility, better performance, and new extension features. These updates aim to make the Jupyter ecosystem more user-friendly and powerful for data science and research workflows.


Upcoming Events and Webinars

There will be following talks

  • Shipping a Python Library Written in Rust

  • Documentation is Code (with Agentic AI)

There will be a talk, Using The Librosa Python Library For Deep Audio Analysis.

There will be following talks

  • Staying Ahead with Azure AI: Tools and Opportunities for Emerging Tech Professionals

  • How to build your own RAG system in seconds


Our Other Newsletters

Programmer Weekly - A free weekly newsletter for programmers.

Founder Weekly - A free weekly newsletter for entrepreneurs featuring best curated content, must read articles, how to guides, tips and tricks, resources, events and more.