Helping Python developers build with AI: apps, agents, models, and AI-assisted coding. Expert-reviewed tutorials and courses, read by 1M+ developers a month.
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.
Stack two decorators on one function, then swap their order.
Same code, different output. Each one wraps the next.
Worth knowing before you add timing and caching to the same function.
AI slop has a definition now: work that took less effort to make than it takes your reviewer to understand.
By that test, how much of last week's PR queue counts?
Five FastAPI CRUD routes for a SQLAlchemy model, from a class with just a prefix and a model.
fastapi-restly makes the Pydantic schemas and adds filtering, sorting and pagination.
By Rutger Prins. Beta, but it ran in production at two companies first.
Codex CLI wired up the Delete and Clear All buttons in a Python contact book app, and both worked.
Two of the five methods it added only called another method.
This thread covers the /diff review that caught them and four more habits for keeping Codex CLI in check 🧵