python-dependency-injector
python-dependency-injector copied to clipboard
Dependency injection framework for Python
Hi, thanks for providing this library, I really like it! Could you tell me if there is a way to create `List[Provider[X]]` from `Provider[List[X]]`? I call this operation `InsideOut`. `def...
I am trying to implement a behavior that is really close to [ThreadLocalSingleton scopes](https://python-dependency-injector.ets-labs.org/providers/singleton.html#implementing-scopes). I have a container that is created when app starts. It holds data about the current...
Updating `dependency-injector` from `dependency-injector==4.45.0` to `dependency-injector==4.46.0` makes the application crash with multiple values for argument. ## Expected Behavior Same behavior as in **v4.45.0**. ## Current Behavior ## Steps to Reproduce...
### Description of Issue I am trying to implement the dependency injector for Python Azure functions. i tried to implement it using a Python library called Dependency Injector. pip install...
Sorry for the second post today, i am kinda at the end of my ropes here I would be so happy if someone manages to get me unstuck. I have...
Hi folks I created a small POC of an LSP that parses container.py files and is able to serve "Go to implementation" requests. Let me know your thoughts as this...
Hey @rmk135 Thank you for a great project! [Your example](https://github.com/ets-labs/python-dependency-injector/issues/357#issuecomment-760913819) works perfect for DeclarativeContainers. However, I'm using a DynamicContainer at the lowest level. This seems to cause confusion. ``` from...
Hello folks! I'm just started to learn dependency-injector. I was following this public template [https://github.com/teamhide/fastapi-boilerplate](https://github.com/teamhide/fastapi-boilerplate) and found that WiringConfiguration can be affect subpackages of designated top level package only if...
If we have pytest.fixture based on generator (yield statement and some cleanup after it), we can't get our objects through dependency injection. ```python import pytest from dependency_injector import containers, providers...