Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replacement for python-dependency-injector #65

Open
theobouwman opened this issue Jan 25, 2024 · 3 comments
Open

Replacement for python-dependency-injector #65

theobouwman opened this issue Jan 25, 2024 · 3 comments

Comments

@theobouwman
Copy link

Hi,

We are using https://github.com/ets-labs/python-dependency-injector with our fastapi api, consisting of a repository/service pattern. Since with that library the async ability of fastapi is not possible and the fact that the library is not maintained anymore, we are looking for an alternatieve.

Would implementing a repisitory/service pattern with FastDepends be possible, and allow for async non blocking Datbase calls?

Thanks. Btw FastStreams looking really nice too!

@Lancetnik
Copy link
Owner

Lancetnik commented Jan 26, 2024

@theobouwman thanks for such glad feedback!
For now FastDepends is not a real DI system, but a serizliation/Depends providing tool to build FastAPI-like tools.
I am targeting to make it really-DI, but not in the nearest future, so you can take a look at some alternatives: like di or dishka (I know the developer and the tool looks promising)

@theobouwman
Copy link
Author

Thanks

@aKardasz
Copy link

What would you say is missing from this being a dependency framework?

Can't you theoretically just create a class with injects and utilize those in a similar manner to other di frameworks?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants