Is there a framework equivalent to Guice (http://code.google.com/p/google-guice) for Python?
If you prefer a really tiny solution there's a little function, it is just a dependency setter.
https://github.com/liuggio/Ultra-Lightweight-Dependency-Injector-Python