VSVlad Shulczinvshulcz.hashnode.dev·Jun 18 · 8 min readHow I made dependency injection in Python 130× faster: from reflection to compiling the graphThere's a stock argument against DI containers in Python: a container is just overhead, pass the dependency into the constructor yourself and stop overengineering. It sounds reasonable, and I believed10
VSVlad Shulczinvshulcz.hashnode.dev·Jun 9 · 5 min readWhere should dependency wiring live in a Python app?Python does not need a dependency injection container by default. For small applications, direct constructor calls are usually the best option: repo = UserRepository(settings.database_url) email = Ema01V
VSVlad Shulczinvshulcz.hashnode.dev·May 26 · 6 min readWhen Python manual wiring turns into copy-paste architectureI usually avoid dependency injection containers in Python. Not because dependency injection is bad. Most of us already do it when we pass objects into constructors. I avoid containers because small Py00