Dependency Injection, Containers and Other SOLID Practices in Python
summary
Shows problems caused by implicit dependencies in Python web apps (Flask, Django, etc.)—hard-to-test, hard-to-configure, and hard-to-read code—and advocates using dependency injection (DI) to fix them. Presents concrete DI examples using FastAPI and Pydantic, describes the team’s experience adopting DI at scale, and explains how they used and extended the punq DI container to simplify application configuration and gain additional features.
AI-written summary · about
