Planet Python RSS
210 subscribers
18.5K links
Unofficial Planet Python RSS feed from planetpython.org. Maintained by @cfinnberg
Download Telegram
Real Python: How to Use Ollama to Run Large Language Models Locally

Link: https://realpython.com/ollama/

Running Ollama in your terminal allows you to start chatting with a local large language model (LLM) quickly. You won’t need API keys, cloud services, or ongoing costs. Ollama is a free, open-source t
"Michael Kennedy's Thoughts on Technology": Raw+DC Database Pattern: A Retrospective

Link: https://mkennedy.codes/posts/raw-dc-a-retrospective/

TL;DR; After migrating three production Python web apps from MongoEngine to the Raw+DC database pattern, I measured nearly 2x the requests per second, 18% less memory, and gained native async support.
PyCon: Support PyLadies: Donate to the PyLadies Auction at PyCon US 2026!

Link: https://pycon.blogspot.com/2026/03/support-pyladies-donate-to-pyladies.html

PyCon US 2026 is quickly approaching and we can’t wait to see all of you there! This year, we are reaching out to our community to help support one of our favorite events: the PyLadies Auction. Our wo
Python Bytes: #475 Haunted warehouses

Link: https://pythonbytes.fm/episodes/show/475/haunted-warehouses

Topics covered in this episode:

Lock the Ghost
Fence for Sandboxing
MALUS: Liberate Open Source
Harden your GitHub Actions Workflows with zizmor, dependency pinning, and dependency cooldowns
Extras
J
Real Python: Quiz: Test-Driven Development With pytest

Link: https://realpython.com/quizzes/test-driven-development-pytest/

In this quiz, you’ll test your understanding of Test-Driven Development With pytest.
By working through this quiz, you’ll revisit creating and executing Python unit tests with pytest, practicing test-
PyCon: Introducing the 8 Companies on Startup Row at PyCon US 2026

Link: https://pycon.blogspot.com/2026/03/introducing-startup-row-pycon-us-2026.html

Each year at PyCon US, Startup Row highlights a select group of early-stage companies building ambitious products with Python at their core. The 2026 cohort reflects a rapidly evolving landscape, wher
Real Python: Adding Python to PATH

Link: https://realpython.com/courses/adding-python-to-path/

You may need to add Python to PATH if you’ve installed Python, but typing python on the command line doesn’t seem to work. You might see a message saying that python isn’t recognized, or you might end
PyCoder’s Weekly: Issue #728: Django With Alpine, Friendly Classes, SQLAlchemy, and More (March 31, 2026)

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

#728 – MARCH 31, 2026 View in Browser » Django Apps With Alpine AJAX, Revisited The author has been modifying his approach to Django projects with Alpine AJAX over the last nine months. This pos
Real Python: Quiz: Exploring Keywords in Python

Link: https://realpython.com/quizzes/exploring-keywords-in-python/

In this quiz, you’ll test your understanding of
Exploring Keywords in Python.
By working through this quiz, you’ll revisit how to identify Python keywords,
understand the difference between regular an
Python⇒Speed: Timesliced reservoir sampling: a new(?) algorithm for profilers

Link: https://pythonspeed.com/articles/reservoir-sampling-profilers/

Imagine you are processing a stream of events, of unknown length. It
could end in 3 seconds, it could run for 3 months; you simply don’t
know. As a result, storing the whole stream in memory or even o
Real Python: Python Classes: The Power of Object-Oriented Programming

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

Python classes are blueprints for creating objects that bundle data and behavior together. Using the class keyword, you define attributes to store state and methods to implement behavior, then create
"Michael Kennedy's Thoughts on Technology": Cutting Python Web App Memory Over 31%

Link: https://mkennedy.codes/posts/cutting-python-web-app-memory-over-31-percent/

tl;dr; I cut 3.2 GB of memory usage from our Python web apps using five techniques: async workers, import isolation, the Raw+DC database pattern, local imports for heavy libraries, and disk-based cach
Peter Bengtsson: pytest "import file mismatch"

Link: http://www.peterbe.com/plog/pytest-import-file-mismatch

Make sure your test files in a pytest tested project sit in directories with a __init__.py
Python Engineering at Microsoft: Python in Visual Studio Code – March 2026 Release

Link: https://devblogs.microsoft.com/python/python-in-visual-studio-code-march-2026-release/

We’re excited to announce that the March 2026 release of the Python extension for Visual Studio Code are now available!
This release includes the following announcements:

Search Python Symbols in Ins
Graham Dumpleton: Free Python decorator workshops

Link: https://grahamdumpleton.me/posts/2026/04/free-python-decorator-workshops/

I've been working on a set of interactive workshops on Python decorators and they are now available for free on the labs page of this site. There are 22 workshops in total, covering everything from th
Real Python: Quiz: Python's Counter: The Pythonic Way to Count Objects

Link: https://realpython.com/quizzes/python-counter/

In this quiz, you’ll test your understanding of Python’s Counter: The Pythonic Way to Count Objects.
By working through this quiz, you’ll revisit how to create Counter objects, update counts, find mos