Python Dependency Injection Framework

后端 未结 18 2202
你的背包
你的背包 2020-12-12 14:10

Is there a framework equivalent to Guice (http://code.google.com/p/google-guice) for Python?

18条回答
  •  青春惊慌失措
    2020-12-12 14:19

    Here is a small example for a dependency injection container that does constructor injection based on the constructor argument names:

    http://code.activestate.com/recipes/576609-non-invasive-dependency-injection/

提交回复
热议问题