Real Python (@realpython) header
Real Python (@realpython) profile picture

Helping Python developers build with AI: apps, agents, models, and AI-assisted coding. Expert-reviewed tutorials and courses, read by 1M+ developers a month.

Joined August 2012
Photo by Real Python (@realpython)Photo by Real Python (@realpython)Photo by Real Python (@realpython)Photo by Real Python (@realpython)Photo by Real Python (@realpython)Photo by Real Python (@realpython)Photo by Real Python (@realpython)Photo by Real Python (@realpython)Photo by Real Python (@realpython)Photo by Real Python (@realpython)
Lost for a second in a Real Python video course? Ask Mentor AI, the AI study companion, what the instructor just said. Follow up on side questions. Quiz yourself before the next lesson. realpython.com/mentor/?utm_s…
2
9
2,934
Want to call an LLM from Python without an API bill or sending data anywhere? Install Ollama → pull a model → chat with it from your own code, offline. The How to Get Started With Ollama video course shows each step. realpython.com/courses/get-s…
6
12
1,493
You tweak the system prompt, try a few examples, and ship. Then a different kind of request gets worse. This tutorial builds an eval harness from scratch: code checks for what code can verify, an LLM judge for tone, and a gate in CI. realpython.com/llm-evaluatio…
2
2
7
800
"My CLAUDE.md should explain the whole project." Research says big, repetitive context files often make agents worse. Keep the commands and rules Claude Code can't guess from your repo. The tutorial shows what to cut. realpython.com/python-claude…
5
3
14
1,774
Cursor and Windsurf both reached passing tests. Only one fixed the bug. Both ran Kimi K2.5 on the same prompts, with a blocking time.sleep() planted in async code. Also here: 1. Who fixed it 2. An httpx check 3. Two project layouts 4. Auto-run risks 5. Windsurf's Memories 🧵
3
5
3,234
5. Windsurf's Memories learn your conventions from chats with Cascade, its AI agent. They're stored in ~/.codeium/windsurf/memories/ and tied to one workspace. To keep a convention and share it in Git, write a rule in .windsurf/rules/*.md, or .cursor/rules/*.mdc in Cursor.
1
1
448
Learning Python for class and not sure what to study first? This free study plan puts the basics in order: variables, loops, functions and more. Then a quiz shows how far you've come. realpython.com/kits/python-s…
2
8
1,997
Checking if an item is in a list can mean Python scans every element. In a set, the same check takes about the same time however many items there are. That's the first fix in our performance guide. Two more standard library ones in this episode: realpython.com/podcasts/rpp/…
1
7
1,503
Never written a line of code? Start here. This free kit gives you a cheat sheet to keep by your keyboard, a free book chapter, a full video course and a quiz to check yourself 📘 realpython.com/kits/python-b…
3
2,412
Most of a Python face recognition tool is code you already know. Five details turn it into a working project: 1. Face boxes come in an odd order 2. A Counter picks the name 3. Folder names are the labels 4. An old setuptools pin 5. HOG or CNN face detection 🧵
2
1
8
1,964
5. face_locations() takes model="hog" or model="cnn". HOG works best on a CPU, CNN on a GPU. Without a GPU, encoding the training faces is slow. The tutorial's tool does it once and pickles the results to output/encodings.pkl for every later run.
1
1
362