python-dependency-injector
python-dependency-injector copied to clipboard
Dependency injection framework for Python
Hello, I cannot install dependency injector having versions 13 and 14 of gcc on my system. Could you provide any information which versions of gcc are supported?
Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 3 to 4.1.7. Release notes Sourced from actions/download-artifact's releases. v4.1.7 What's Changed Update @actions/artifact dependency by @bethanyj28 in actions/download-artifact#325 Full Changelog: https://github.com/actions/download-artifact/compare/v4.1.6...v4.1.7 v4.1.6 What's Changed updating @actions/artifact...
## Description ### Problem Our FastAPI application with python-dependency-injector is experiencing high CPU usage (100%+) and poor performance under load. ### Example Implementation ```python class Container(containers.DeclarativeContainer): config = providers.Configuration() db...
I have a dependency injection container that holds a coroutine. This coroutine takes some object as a parameter. Also that object is managed by the container - it is created...
In our project we have plenty of micro services(that are standalone git repositories). Some of them use dependency injector library to manage dependencies. For some time ago we started using...
Hi! It my first try in dependency injection. I have container of Database with `asyncpg.Pool` as resource: ``` async def create_pool() -> asyncpg.Pool: pool = await asyncpg.create_pool( user="postgres", password="SomePassword", database="postgres"...
Is there any way to pass config dict as **kwargs to my class? There is 2 problem I try to solve: 1) Too many args will lead to an additional...
Anyone else trying to di with django ninja? Would love some examples on y'alls implementations. Atm I have been adding it under the main project next to asgi and added...
Package versions: ```toml dependencies = [ "dependency-injector>=4.45.0", "pydantic>=2.10.6", "pydantic-settings>=2.7.1", ] ``` Example code: ```py from dependency_injector import containers, providers from pydantic_settings import BaseSettings class Container(containers.DeclarativeContainer): config = providers.Configuration() # This...
Reproducible project: https://github.com/YogiLiu/pdi_issue When I run `python -m pdi_issue.main`, an error was raised: ``` Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in...