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)
Win three years of Real Python, plus all four of our Python books. That's our Black Friday giveaway. Entering is free, you just need a free Real Python account. Entries close Friday, November 27. realpython.com/blackfriday?u…
1
1
1
9
1,978
AI agents get closer to production: Claude Ship reviews and approves pull requests, and Codex writes Shirudo shields for unpatched Linux servers. Plus cheaper ways to run models, on one CPU core or from an SSD 🧵
2
2
932
💾 vLLM KV cache on NVMe matches DRAM AMD and Embedded LLM report that an NVMe KV cache using open-source MoRI UMBP matched a same-size DRAM pool within 1% on Kimi-K3, tested on AMD MI355X GPUs. A 1.8 TB DRAM pool costs about $76,000.
1
272
Ever read "Model-View-Controller" and nodded without really getting it? Exploring the MVC Pattern in Python follows one user request through an app, then you build a small Flask app with it. realpython.com/courses/explo…
1
1
7
1,204
New to Git and not sure which commands you need? This beginner cheat sheet is one to keep open while you learn. Grab the PDF 👇 realpython.com/bonus/how-to-…
1
5
1,576
If your Python app calls one hard-coded AI model, that provider's outage is your outage. OpenRouter puts many providers behind one API key: 1. Fallbacks in one field 2. Cheapest provider per model 3. Let it pick the model 4. Errors that don't raise 5. No new SDK 🧵
1
14
3,156
5. You don't need a new SDK. The tutorial uses plain requests with an Authorization: Bearer header. Already on the OpenAI SDK? Point base_url at OpenRouter's /api/v1 endpoint, pass your OpenRouter API key, and use model IDs like openai/gpt-3.5-turbo.
1
1
447