injector icon indicating copy to clipboard operation
injector copied to clipboard

Python dependency injection framework, inspired by Guice

Results 54 injector issues
Sort by recently updated
recently updated
newest added

First of all, thanks for the library. It's a very good to see python moving towards this practices. I have been playing with this library in conjunction with flask-injector (https://pypi.org/project/Flask-Injector...

Originally stemming from interest in #133 , I too thought to replicate Guice's `@Named` convention. In doing so, I originally used the `typing.NewType` (prior to having even seen the aforementioned...

Hi @jstasiak and the team, Last week I went on a research spree to get myself updated on what's the latest DI/IoC hotness nowadays, after having made an initial decision...

I know it's generally better to use static annotations (eg https://github.com/alecthomas/injector/issues/69), but I found `@Named` annotations very useful in guice for configuration injection. I'm able to reproduce this feature using...

I have an issue with circular imports that I am having trouble resolving. Here is a simple repro case which is similar to what I am doing: ``` $ tree...

The interaction between `@dataclass`, `@noninjectable`, and `auto_bind=True` seems to be broken. I would not expect the following to work, because `foo` shouldn't be injected due to the decorator, ```py from...

Hello **@alecthomas**, first of all let me to say _Thank you!_ for this outstanding package. I try to utilize the feature of `PEP 593` which actually works fine, but _let...

I would like to expose a `FooCredentials` dataclass to users as part of a library. Ignoring the fact that this could probably be done nicely by asking them to pass...

There is a method getAllBindings in Guice. And in my project, I really need this method from Python injector. I could have done it in a pull request, if you...

I've used Guice in the past for registering and instantiating plug-ins using the multibind extension. I found that straight-forward to do based on the [Guice documentation](https://github.com/google/guice/wiki/Multibindings). However, I'm struggling to...