Real Python
Real Python
@realpython.com
Online #Python Training & Expert Community: Tutorials, Video Courses, Books, Quizzes...and More! Join 1M+ Pythonistas at http://realpython.com
2.2K followers16 following4.5K posts
βπ Quiz: Python Circular Imports: Why They Happen and How to Fix Them Quiz
βπ Quiz: Pyrefly: A Fast Static Type Checker for Python Projects Quiz
βπ Quiz: MCP vs API Calls: Which Should You Use for Python LLM Apps? Quiz
Check your Python environments and Docker images for LiteLLM 1.107.0. It carried a stealer that ran every time Python started and sent AI and cloud keys to an attacker. If it ran on a machine, replace those keys. realpython.com/ai-news-week...
Attackers can register the package names your AI coding agent makes up. In one 2024 study, 21.7% of the packages that open-source models suggested didn't exist. Make your agent ask before it installs: realpython.com/python-suppl...
π Python Term of the Day: reentrant (Computer Science Glossary) A property of code that can be safely interrupted partway through and entered again before an earlier call finishes, because each call keeps its own state.
Swap "cuda" for "tpu" and your PyTorch model runs on Google's TPUs. TorchTPU is open source and supports eager mode and torch.compile. Expect extra tuning for full speed. realpython.com/ai-news-week...
ππ° Python REST APIs With Flask, Connexion, and SQLAlchemy β Part 2
ππ° Python REST APIs With Flask, Connexion, and SQLAlchemy β Part 3
ππ° Python REST APIs With Flask, Connexion, and SQLAlchemy β Part 1
Installed LiteLLM 1.107.0? Treat every AI and cloud key that machine could reach as stolen. The release hid a password stealer and an hourly backdoor. Version 1.106.2 is clean. What happened and what to do: realpython.com/ai-news-week...
π Python Term of the Day: doctest (Python Standard Library) Provides tools for testing your code by running tests embedded in docstrings.
Does it matter whether you give an AI agent a quick prompt or a careful one? We'll run both side by side, live and free on Zoom. Wed Oct 28, 20:00 UTC: realpython.com/live/real-py...
Installed LiteLLM recently? Here's how to check for the 1.107.0 backdoor safely, so its startup hook never fires: realpython.com/python-suppl...
Fair warning, these three Claude Code skills will slow you down. In return, you understand the code your agent writes, before, during, and after you build. You decide when that's worth it: youtu.be/T8WP_PP8Kp0
Last chance to join Claude Code for Python Developers: the live course starts tomorrow, October 24, and runs two days on Zoom. realpython.com/workshops/cl...
ππ° AI News (Oct 17β23): A Poisoned AI Tool and PHP's Security Fix
ππ° Python's property(): Add Managed Attributes to Your Classes