#674 – MARCH 25, 2025
LangGraph: Build Stateful AI Agents in Python
LangGraph is a versatile Python library designed for stateful, cyclic, and multi-actor Large Language Model (LLM) applications. This tutorial will give you an overview of LangGraph fundamentals through hands-on examples, and the tools needed to build your own LLM workflows and agents in LangGraph.
REAL PYTHON
Quiz: LangGraph: Build Stateful AI Agents in Python
REAL PYTHON
Reinventing Notebooks as Reusable Python Programs
Marimo is a Jupyter replacement that uses Python as its source instead of JSON, solving a lot of issues with notebooks. This article shows you why you might switch to marimo.
AKSHAY, MYLES, & MADISETTI
How to Build AI Agents With Python & Temporal
Join us on April 3 at 9am PST/12pm EST to learn how Temporal’s Python SDK powers an agentic AI workflow creation. We’ll start by covering how Temporal lets you orchestrate agentic AI, then transition to a live demo →
TEMPORAL sponsor
Django Template Components Are Slowly Coming
Django 5.2 brings the Simple Block tag which is very similar to React children, allowing templated components. This post shows several examples from Andy’s own code.
ANDREW MILLER
PEP 758: Allow Except and Except* Expressions Without Parentheses (Accepted)
PYTHON.ORG
IPython 9 Released
IPYTHON.READTHEDOCS.IO
Python Release Python 3.14.0a6
PYTHON.ORG
Django 5.2 Release Candidate 1 Released
DJANGO SOFTWARE FOUNDATION
Quiz: Build an LLM RAG Chatbot With LangChain
REAL PYTHON
Articles & Tutorials
A Decade of Automating the Boring Stuff With Python
What goes into updating one of the most popular books about working with Python? After a decade of changes in the Python landscape, what projects, libraries, and skills are relevant to an office worker? This week on the show, we speak with previous guest Al Sweigart about the third edition of “Automate the Boring Stuff With Python.”
REAL PYTHON podcast
PyCon US: Travel Grants & Refund Policy
PyCon US offers travel grants to visitors. This post explains how they are decided. Also, with changing border requirements in the US, you may also be interested in the Refund Policy for International Attendees
PYCON.BLOGSPOT.COM
Using Structural Pattern Matching in Python
In this video course, you’ll learn how to harness the power of structural pattern matching in Python. You’ll explore the new syntax, delve into various pattern types, and find appropriate applications for pattern matching, all while identifying common pitfalls.
REAL PYTHON course
Smoke Test Your Django Admin Site
When writing code that uses the Django Admin, sometimes you forget to match things up. Since it is the Admin, who tests that? That doesn’t mean it won’t fail. This post shows you a general pytest function for checking that empty Admin pages work correctly.
JUSTIN DUKE
Python’s Instance, Class, and Static Methods Demystified
In this tutorial, you’ll compare Python’s instance methods, class methods, and static methods. You’ll gain an understanding of when and how to use each method type to write clear and maintainable object-oriented code.
REAL PYTHON
I Fear for the Unauthenticated Web
A short opinion post by Seth commenting on how companies scraping the web to build LLMs are causing real costs to users, and suggests you implement billing limits on your services.
SETH M LARSON
Django Query Optimization: Defer, Only, and Exclude
Database queries are usually the bottlenecks of most web apps. To minimize the amount of data fetched, you can leverage Django’s defer()
, only()
, and exclude()
methods.
TESTDRIVEN.IO • Shared by Michael Herman
How to Use Async Agnostic Decorators in Python
Using decorators in a codebase that has both synchronous and asynchronous functions poses many challenges. One solution is to use generators. This post shows you how.
PATREON • Shared by Patreon Engineering
PEP 779: Criteria for Supported Status for Free-Threaded Python
PEP 703 (Making the Global Interpreter Lock Optional in CPython), described three phases of development. This PEP outlines the criteria to move between phases.
PYTHON.ORG
uv overtakes Poetry
Wagtail, the Django-based CMS, tracks download statistics including by which installation tool. Recently, uv overtook Poetry. This post shows the stats.
THIBAUD COLAS
Using Pyinstrument to Profile FastHTML Apps
A quick post with instructions on how to add profiling to your FastHTML app with pyinstrument
.
DANIEL ROY GREENFIELD
Projects & Code
compress_json: Read and Write Compressed JSON
GITHUB.COM/LUCACAPPELLETTI94
pysqlscribe: A SQL Query Builder in Python
GITHUB.COM/DANIELENRICOCAHALL
shorts_maker: YouTube Shorts Automation
GITHUB.COM/RAJATHJN
pydoll: Automate Chromium Browsers Without a WebDriver
GITHUB.COM/THALISSONVS
faststream: Event Streams Library
GITHUB.COM/AIRTAI
Events
Weekly Real Python Office Hours Q&A (Virtual)
March 26, 2025
REALPYTHON.COM
SPb Python Drinkup
March 27, 2025
MEETUP.COM
Python Leiden User Group
March 27, 2025
PYTHONLEIDEN.NL
PyLadies Amsterdam: Introduction to BDD in Python
March 31, 2025
MEETUP.COM
Happy Pythoning!
This was PyCoder’s Weekly Issue #674.
View in Browser »
[ Subscribe to 🐍 PyCoder’s Weekly 💌 – Get the best Python news, articles, and tutorials delivered to your inbox once a week >> Click here to learn more ]
Source:: PyCoder’s