Lancetnik / FastDepends

FastDepends - FastAPI Dependency Injection system extracted from FastAPI and cleared of all HTTP logic. Async and sync modes are both supported.
https://lancetnik.github.io/FastDepends/
MIT License
314 stars 14 forks source link

Interop with FastAPI #64

Open strangemonad opened 10 months ago

strangemonad commented 10 months ago

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:

Lancetnik commented 9 months ago

Thanks for your feedback and ideas! I really appreciate that! For now FastDepends provides you with just a regular FastAPI Depends 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.

strangemonad commented 9 months ago

@Lancetnik I think that order or priorities makes sense