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

Hi! Please, if possible, help me using DI with Class Based Views FastAPI. https://fastapi-utils.davidmontague.xyz/user-guide/class-based-views/ Спасибо!

This is just a question, since i'm unable to figure this out on my own by just reading the docs. I'm currently trying to rewrite one of my apps to...

I noticed that using `provider.Resource()` with `container.init_resources()` and `container.shutdown_resources()` does not call the `__enter__` and/or `__exit__` methods for a class or the `@contextlib.contextmanager`. For initializing and shutting down resources I...

feature

Hi there, I am slowly learning on all the intricacies of your package. It's sometimes to too easy to graps the concepts but it's fabulous how it all fits together....

Hello. As the title suggests, what should I do with the definition of providers.Singleton that instantiates at the same time as fastapi starts! I want to generate the following "manager"...

question

When using [Pyright](https://github.com/microsoft/pyright) for typechecking, injected provider arguments raise type errors. For example, in the flask miniapp (`examples/miniapps/flask/`), the full output from running `pyright githubnavigator/views.py` from the root of the...

Hello Roman, I am playing a little bit with dependency_injector and I don't know, how could I configure in yaml and write into Container ListProvider next example: Is it possible...

question
feature

Hello everyone, my name is Max and my profession is DevOps. Our company are working with some software that requires python-dependency-injector as a dependency. We need to build this dependency...

This feature is to support type checks for provider arguments. The technical possibility to implement it comes with Python 3.10 `ParamSpec` feature. Details: [PEP 612: Parameter Specification Variables](https://www.python.org/dev/peps/pep-0612/). User suggestions:...

feature

Howdy, another somewhat similar issue like #379, this time with `providers.Resource`. Consider this example: ```python from dependency_injector import providers, containers import asyncio class TestObject(): def __init__(self, foo, bar): self.foo =...

bug