Planet Python RSS
218 subscribers
16.7K links
Unofficial Planet Python RSS feed from planetpython.org. Maintained by @cfinnberg
Download Telegram
Ari Lamstein: Course Review: Build AI Agents with Python

Link: https://arilamstein.com/blog/2025/05/20/course-review-build-ai-agents-with-python/

I was slow to jump on the LLM bandwagon.
In some ways this is surprising. Although it was a while ago, I did take several AI courses in grad school. So I am probably in a good position to dive into ne
PyCoder’s Weekly: Issue #682: pylock.toml, NumPy, t-strings, and More (May 20, 2025)

Link: https://pycoders.com/issues/682

#682 – MAY 20, 2025 View in Browser » Going Beyond requirements.txt With pylock.toml What is the best way to record the Python dependencies for the reproducibility of your projects? What advanta
Stéphane Wirtel: From script to version 1.0.0 — 12 years later

Link: https://wirtel.be/post/2025/05/20/2025-dsmtpd-version-1/

🧵 From script to version 1.0.0 — 12 years later
In 2013, I wrote a tiny Python script to help with local SMTP debugging during development.
It used smtpd, docopt, and had no ambition other than making
Real Python: Quiz: Nested Loops in Python

Link: https://realpython.com/quizzes/nested-loops-python/

In this quiz, you’ll test your understanding of
Nested Loops in Python.
Nested loops in Python involve placing one loop inside another, enabling iteration over multiple sequences or repeated actions.
Real Python: Nested Loops in Python

Link: https://realpython.com/nested-loops-python/

Nested loops in Python allow you to place one loop inside another, enabling you to perform repeated actions over multiple sequences. Understanding nested loops helps you write more efficient code, man
Django Weblog: Why, in 2025, do we still need a 3rd party app to write a REST API with Django?

Link: https://www.djangoproject.com/weblog/2025/may/22/why-need-3rd-party-app-rest-api-with-django/


The question was asked to the president of the DSF this year at FOSDEM, after his talk. And it is clearly a legitimate one!
But… is it True? Do we actually need a 3rd party app to write an API with D
Python⇒Speed: Loading Pydantic models from JSON without running out of memory

Link: https://pythonspeed.com/articles/pydantic-json-memory/

You have a large JSON file, and you want to load the data into Pydantic.
Unfortunately, this uses a lot of memory, to the point where large JSON files are very difficult to read.
What to do?
Assuming
Real Python: The Real Python Podcast – Episode #250: DjangoCon Europe 2025: Live Recording From Dublin

Link: https://realpython.com/podcasts/rpp/250/

What goes into making video courses at Real Python? How should you build an installable Django application? Christopher Trudeau is back on the show this week, bringing another batch of PyCoder's Weekl
Real Python: Quiz: Marimo: A Reactive, Reproducible Notebook

Link: https://realpython.com/quizzes/marimo-notebook/

Why not challenge yourself and see how much you know about marimo notebooks?
Working your way through this quiz is a great way to reinforce and build on what you learned in the Marimo: A Reactive, Rep
Brian Okken: Unravelling t-strings with pytest

Link: https://pythontest.com/unravelling-t-strings-pytest/

Brett Cannon recently released a great article explaining how Python 3.14’s new t-strings work.
Here’s the article: Unravelling t-strings.
He built up the functionality of how t-strings work in a way
Real Python: Marimo: A Reactive, Reproducible Notebook

Link: https://realpython.com/marimo-notebook/

Marimo notebooks redefine the notebook experience by offering a reactive environment that addresses the limitations of traditional linear notebooks. With marimo, you can seamlessly reproduce and share
Python Insider: Python 3.14.0 beta 2 is here!

Link: https://pythoninsider.blogspot.com/2025/05/python-3140-beta-2-is-here.html

Here’s the second 3.14 beta.
https://www.python.org/downloads/release/python-3140b2/
This is a beta preview of Python 3.14
Python 3.14 is still in development. This release, 3.14.0b2, is the
second of
Python Morsels: Looping in reverse

Link: https://www.pythonmorsels.com/looping-in-reverse/

Any reversible iterable can be reversed using the built-in reversed function whereas Python's slicing syntax only works on sequences.



Table of contents

Reversing sequences with slicing
The list re
Real Python: The LEGB Rule & Understanding Python Scope

Link: https://realpython.com/courses/legb-rule-python-scope/

The concept of scope rules how variables and names are looked up in your code. It determines the visibility of a variable within the code. The scope of a name or variable depends on the place in your
PyCoder’s Weekly: Issue #683: Narwhals, ty, LangChain, and More (May 27, 2025)

Link: https://pycoders.com/issues/683

#683 – MAY 27, 2025 View in Browser » Narwhals: Unified DataFrame Functions Narwhals is a lightweight compatibility layer between DataFrame libraries. You can use it as a common interface to wri