Planet Python RSS
217 subscribers
16.6K links
Unofficial Planet Python RSS feed from planetpython.org. Maintained by @cfinnberg
Download Telegram
Daniel Roy Greenfeld: TIL: HTML 404 errors for FastAPI

Link: https://daniel.feldroy.com/posts/til-2025-06-html-404-errors-for-fastapi

I had a TIL about custom responses in FastAPI but there's enough nuance that it deserves a full blog post. In the meantime, here's a TIL about custom HTTP responses.
from fastapi import FastAPI
from
Real Python: Python enumerate(): Simplify Loops That Need Counters

Link: https://realpython.com/python-enumerate/

Python’s enumerate() function helps you with loops that require a counter by adding an index to each item in an iterable. This is particularly useful when you need both the index and value while itera
Real Python: Starting With DuckDB and Python

Link: https://realpython.com/courses/starting-duckdb-python/

The DuckDB database provides a seamless way to handle large datasets in Python with Online Analytical Processing (OLAP) optimization. You can create databases, verify data imports, and perform efficie
PyCoder’s Weekly: Issue #687: Scaling With Kubernetes, Substrings, Big-O, and More (June 24, 2025)

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

#687 – JUNE 24, 2025 View in Browser » Scaling Web Applications With Kubernetes and Karpenter What goes into scaling a Python web application today? What are resources for learning and practicin
Mike Driscoll: An Intro to ty – The Extremely Fast Python type checker

Link: https://www.blog.pythonlibrary.org/2025/06/25/an-intro-to-ty-the-extremely-fast-python-type-checker/

Ty is a brand new, extremely fast Python type checker written in Rust from the fine folks at Astral, the makers of Ruff. Ty is in preview and is not ready for production use, but you can still try it
PyPodcats: Trailer: Episode 9 With Tamara Atanasoska

Link: https://pypodcats.live/episodes/ep-9-trailer/

A preview of our chat with Tamara Atanasoska. Watch the full episode on June 27, 2025A preview of our chat with Tamara Atanasoska. Watch the full episode on June 27, 2025Sneak Peek of our chat with Ta
Real Python: Your Guide to the Python print() Function

Link: https://realpython.com/python-print/

If you’re like most Python users, then you probably started your Python journey by learning about print(). It helped you write your very own “Hello, World!” one-liner and brought your code to life on
Peter Bengtsson: Native connection pooling in Django 5 with PostgreSQL

Link: http://www.peterbe.com/plog/native-connection-pooling-django-5-pg

Enabling native connection pooling in Django 5 gives me a 5.4x speedup.
Real Python: Quiz: The Python print() Function

Link: https://realpython.com/quizzes/python-print-guide/

In this quiz, you’ll test your understanding of Your Guide to the Python print() Function.
The print() function outputs objects to the console or a specified file-like stream. You’ll practice:

Printi
Django Weblog: Watch the DjangoCon Europe 2025 talks

Link: https://www.djangoproject.com/weblog/2025/jun/27/watch-the-djangocon-europe-2025-talks/

They’re now all available to watch on YouTube, with a dedicated playlist ⭐️ DjangoCon Europe 2025 Dublin. For more quality Django talks in 2025, check out our next upcoming events!


DjangoCon Africa
PyPodcats: Episode 9: With Tamara Atanasoska

Link: https://pypodcats.live/episodes/ep-9/

Learn about Tamara's journey. Tamara has been contributing to open source projects since 2012. She participated in Google Summer of Code to contribute to projects like Gnome and e-cidadania.Learn abou
Luke Plant: Statically checking Python dicts for completeness

Link: https://lukeplant.me.uk/blog/posts/statically-checking-python-dicts-for-completeness/

In Python, I often have the situation where I create a dictionary, and want to ensure that it is complete – it has an entry for every valid key.
Let’s say for my (currently hypothetical) automatic squ
Real Python: The Real Python Podcast – Episode #255: Structuring Python Scripts & Exciting Non-LLM Software Trends

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

What goes into crafting an effective Python script? How do you organize your code, manage dependencies with PEP 723, and handle command-line arguments for the best results? Christopher Trudeau is back
Hugo van Kemenade: Run coverage on tests

Link: https://hugovk.dev/blog/2025/run-coverage-on-tests/

I recommend
running
coverage
on your tests.
Here’s a couple of reasons why, from the past couple of months.
Example one #When writing tests, it’s common to copy and paste test functions, but sometimes
Armin Ronacher: My First Open Source AI Generated Library

Link: http://lucumr.pocoo.org/2025/06/21/my-first-ai-library/

I'm currently evaluating how different models perform when generating XML
versus JSON. Not entirely unexpectedly, XML is doing quite well — except
for one issue: the models frequently return invalid
Zero to Mastery: [June 2025] Python Monthly Newsletter 🐍

Link: https://zerotomastery.io/blog/python-monthly-newsletter-june-2025/?utm_source=python-rss-feed

67th issue of Andrei Neagoie's must-read monthly Python Newsletter: Free-Threaded Python, Pyrefly vs ty, Big Tech News, and much more. Read the full newsletter to get up-to-date with everything you ne
Armin Ronacher: My First Open Source AI Generated Library

Link: https://lucumr.pocoo.org/2025/6/21/my-first-ai-library/

I'm currently evaluating how different models perform when generating XML
versus JSON. Not entirely unexpectedly, XML is doing quite well — except
for one issue: the models frequently return invalid