4 ms·
FastAPI also supports dependency injection.
by rybosome 2y ago
FastAPI also supports dependency injection.
- tinthedev 2y agoWas quoting the library's docs. I've actually used FastAPI's DI, which is a nice convenience. It didn't feel as a big selling point, again, due to this being Python. Wrapping up your own DI is near trivial, and barely feels like a pattern. Thanks for pointing that out, I didn't even realize last night how weak of a selling point this is, even.
- rybosome 2y agoYeah, you’re right that it’s not a strong sell. It’s not clear to me why I’d want to use this over any other more mature framework.