python-dependency-injector icon indicating copy to clipboard operation
python-dependency-injector copied to clipboard

Dependency injection framework for Python

Results 239 python-dependency-injector issues
Sort by recently updated
recently updated
newest added

As a Java guy I'd like to use the dependency injection in Python too. I found this library. It didn't work for me at first on Windows & VS Code....

When I try to create a container, it seems there are no checks in place which prevent me from passing in an instance of an incorrect type. I declared a...

bug

I'm trying to use Dependency provider according to the [documentation](https://python-dependency-injector.ets-labs.org/providers/dependency.html), and the code works well, but mypy returns an error `Only concrete class can be given where "Type[Animal]" is expected`....

bug

Given [email protected] ```python # my_module.py from typing import Any from dependency_injector import resources class MyDep: ... class MyDepAsyncResource(resources.AsyncResource[MyDep]): async def init(self, *args: Any, **kwargs: Any) -> MyDep: return MyDep() async...

bug

It would be nice if we could do the following: ```python class MyDep: def __init__(self, param: str) -> None: ... class MyDepResource(resources.AsyncResource[MyDep]): def __init__(self, argument1: str) -> None: self._argument1 =...

enhancement

Semi-related to #452. When using `@inject`, any arbitrary provider `T` may be provided as an argument to Provide[T] when injecting a provider without a type error. For example, in the...

This project requires an out-of-proportion amount of storage space on PyPI. This is problematic since the storage space is donated and the general assumption is that projects will not over-use...

Currently, I see only two ways to specify value types when loading configuration provider from file: 1) To declare additional provider with value conversion 2) To convert value each time...

feature

Hi!, I am considering the use of your library and I want to be able to define Container's providers in runtime. For this I want to use a DynamicContair. AFAIK...

question

Thanks, @rmk135. I managed to get it work with some refactoring. The issue was not related to spawn but Gunicorn. I found out that the performance of a CLI tool...

optimization