python-dependency-injector
python-dependency-injector copied to clipboard
Dependency injection framework for Python
Are there any arguments against using this library inside of another library (aside of additional dependency you may not want)? I'm considering using it inside authorization library for company I...
According this documentation I need a container to use `@inject` decorator, my application does not use containers, can I use this feature without this? https://python-dependency-injector.ets-labs.org/wiring.html PS: Stack overflow related question...
I'm in the process of adding DI to one of my existing projects and everything is working well except I do seem to be getting a few PyLint errors, as...
Hi, Thank you for this package! I am using a container that loads configuration from a Pydantic setting: ``` config = providers.Configuration(pydantic_settings=[Settings()]) ``` The problem I am running into is...
Note: This error originates from the build backend, and is likely not a problem with poetry but with dependency-injector (4.41.0) not supporting PEP 517 builds. You can verify this by...
- remove legacy python support - pin cython, pydantic, flask, aiohttp versions - disable debug mode in coveralls - fix mypy typing test
The major version of `Pydantic` was recently released and lost backward compatibility. In particular, the `.from_pydantic` method stopped working for `providers.Configuration` due to the fact that the `BaseSettings` class now...
I am using D.I. over all my python project for centralized instance provider. So, I prefer set wiring over project root dir. So far now no problem at all. As...
Hello, I would like to implement a mechanism that ensures only one database session is created and tied to the FastAPI request lifecycle. The goal is to have a single...