Where 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 = Ema
vshulcz.hashnode.dev5 min read
Vlad Shulcz
I’m interested in how other Python teams draw this boundary.
Do you keep service wiring as plain factories, use framework dependencies, or prefer an external container once the graph grows?