Python Weekly (Issue 729 January 21 2026)

In partnership with

Welcome to issue 729 of Python Weekly. Let's get straight to the links this week.

Free email without sacrificing your privacy

Gmail is free, but you pay with your data. Proton Mail is different.

We don’t scan your messages. We don’t sell your behavior. We don’t follow you across the internet.

Proton Mail gives you full-featured, private email without surveillance or creepy profiling. It’s email that respects your time, your attention, and your boundaries.

Email doesn’t have to cost your privacy.


Articles, Tutorials and Talks

The video walks through seven lesser-known features of Python’s dataclasses that make code safer, clearer, and easier to maintain, beyond basic use. Each tip shows how dataclasses can reduce boilerplate and improve common patterns in everyday Python code.

The post walks through building an APL/K-like programming language implementation in Python, starting from the history of array languages like APL and Lisp and moving into a real Python interpreter in under 100 lines. The piece highlights how expressive, concise languages influence modern tools like NumPy and shows how much of that power can be captured in Python.

Th post explores how large language models can translate natural language and Polars DataFrame expressions into equivalent SQL queries, bridging Python-centric data manipulation and SQL for analytics. It demonstrates how combining Polars’ in-memory performance with LLMs can help users leverage familiar SQL patterns without writing raw SQL themselves.

Charles Leifer introduces an asyncio compatibility layer for the Peewee ORM that uses greenlet to bridge synchronous database logic with asynchronous event loops without requiring a full codebase rewrite. This implementation allows developers to run standard Peewee queries and transactions within async contexts by using a task-local state management system and specific execution helpers like db.run or db.list.

Adam Johnson's blog post introduces tprof, a new "targeting profiler" for Python 3.12+ that utilizes the sys.monitoring API to measure the performance of specific functions rather than entire programs. This tool allows developers to isolate and profile designated code blocks with minimal overhead, providing instant command-line timing reports to identify bottlenecks without the noise of traditional global profiling.

The story of how a failed upgrade attempt by Renovate led to a Django contribution.

The article shows how certain Django time-based field lookups can bypass database indexes and turn a simple filter into a full table scan, dramatically slowing queries. It then demonstrates a much faster pattern by computing time boundaries in Python so the database can use the existing index and drop execution time from tens of seconds to under a second.

The video introduces the core concepts of NumPy and shows how its array operations form the foundation of numerical computing in Python. It emphasizes why NumPy is a must-learn tool for data science, AI, machine learning, and scientific workflows.

The video explains Django model inheritance and polymorphic models, showing how django-polymorphic returns the correct subclass types when querying a base model through the ORM. It also covers Django Admin support and integrations with other Django ecosystem packages to make polymorphic models easier to manage.


Interesting Projects, Tools, and Libraries

Violit is a next-generation Python web framework that perfectly solves Streamlit's critical Full Script Rerun issue with O(1) State Architecture.

A robust job orchestration framework for Python, backed by modern PostgreSQL.

Optimized collections (opticol) for Python. This package provides memory-efficient, slot-based implementations of Python's standard collection types.

AutoMem is a graph-vector memory service that gives AI assistants durable, relational memory.

Browser automation for AI agents and humans, built on the command line.

Your Celery task inspector inside the Django admin.

Open-source, state-of-the-art vehicle routing problem solver in an easy-to-use Python package.

Convert documentation websites, GitHub repositories, and PDFs into Claude AI skills with automatic conflict detection.

Turn paper/text/topic into editable research figures, technical route diagrams, and presentation slides.

Transform your favorite cities into beautiful, minimalist designs. MapToPoster lets you create and export visually striking map posters with code.

A lightweight suite of motion imitation methods for training controllers.

A TTS that fits in your CPU (and pocket)


New Releases

Pandas 3.0.0 is a major release that mandates Python 3.11+ and establishes Copy-on-Write (CoW) as the default behavior to ensure consistent copy/view semantics across the library. Key enhancements include the transition to a dedicated string data type by default, new datetime resolution inference, and initial support for a new pd.col syntax.


Upcoming Events and Webinars

A live session that pits top AI coding agents, including Claude Code, Cursor, Goose, OpenAI Codex, and antigravity, against each other in real world development scenarios. Engineering leaders Calvin Hendryx-Parker and Travis Frisinger test these tools on their ability to refactor applications, navigate complex repositories, and manage Git workflows in production like environments.

There will be following talks

  • Have a Conversation with Your Videos: Video Analysis Agents in Python

  • Performance Engineering in Python

  • Building Trust in an AI-First World: A Founder’s Journey to Impact

There will be following talks

  • Simulating a Famous Quantum Measurement Experiment on a Quantum Computer Using Python

  • Lerobot-edge: A slightly different take on Lerobot

There will be following talks

  • Heart Rate from Video: Techniques and Challenges

  • Surviving the Agentic Hype with Small Language Models

There will be following talks

  • Learn Python with Jupyter

  • From Correlation to Causation

There will be following talks

  • Context engineering: Knowledge Graphs vs Embedding RAG

  • Traditional AI + LLMs to Automate Complex and Critical Docs in Healthcare

There will be a talk, T-strings and other developments in working with strings in Python.

There will be a talk, Python in Production.


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.