taskiq-dependencies
taskiq-dependencies copied to clipboard
FastAPI-like dependency injection implementation
This issue comes from the discussion https://github.com/orgs/taskiq-python/discussions/233. Initial idea is to create a class that can reference arguments of the current function. ```python async def dependency(sleep_time: float) -> float: await...
I have done test for my case and this fix solve the side-effects for #35 . Preventing to trigger `__getattr__ ` help compatibility.
Hi, I am using FastAPI, Taskiq and PyMongo. And i am requesting some hints to help me resolve it. I have an AsyncIOMotorDatabase as dependencies but it's implement __getattr__ magic...