Python Dependency Injection Framework

后端 未结 18 2207
你的背包
你的背包 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:20

    If you just want to do dependency injection in Python, you don't need a framework. Have a look at Dependency Injection the Python Way. It's really quick and easy, and only c. 50 lines of code.

提交回复
热议问题