You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I know the main goal is actually to provide a stand-alone alternative but I'm curious if there's a way (or plans) to support interoperability with the FastAPI dependency system.
The main use case I can think of is the following:
In a larger code base, I want to be able to create some libraries that can be re-used in different contexts. E.g. a db package with connection pool setup dependencies. Sometimes that might be included in a fastapi app, other times a fast-stream app, other times a cli tool. I would like to be able to share the dependency configuration.
This is similar in spirit to how the guice or dagger dependency frameworks on the jvm allow you to create DI modules that can be composed and included (e.g. in a Spring boot or Jetty server).
The text was updated successfully, but these errors were encountered:
Thanks for your feedback and ideas! I really appreciate that!
For now FastDepends provides you with just a regular FastAPIDepends and serialization feauture, so I didn't plan a FastAPI compatibility due it already has it's own functional.
Also, FastDepends is not a really Dependency Injection library, it just a DI-like tool. But I had a lot of feedback and ideas about making FastDepends truly Dependency Injection system, so I have a big plan on it!
For now, I want to finish with FastStream reworking and improvements, then I am planning to refactor FastDepends as well to make it compatible-with-everнthing tool. But, it is not nearest future plans, sorry.
Thanks for this awesome project!
I know the main goal is actually to provide a stand-alone alternative but I'm curious if there's a way (or plans) to support interoperability with the FastAPI dependency system.
The main use case I can think of is the following:
The text was updated successfully, but these errors were encountered: