Skip to content

Tag: dependency-injection

Trouble with injecting Callable

I’m using python-dependency-injector. I tried this code and it worked perfectly: https://python-dependency-injector.ets-labs.org/providers/callable.html that page also mentioned next: Callable provider handles an injection of the dependencies the same way like a Factory provider. So I went and wrote thi…

Python Dependency Injection Framework

Is there a framework equivalent to Guice (http://code.google.com/p/google-guice) for Python? Answer I haven’t used it, but the Spring Python framework is based on Spring and implements Inversion of Control. There also appears to be a Guice in Python project: snake-guice