Python 依赖注入框架 [英] Python Dependency Injection Framework
本文介绍了Python 依赖注入框架的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否有与 Guice 等效的框架(http://code.google.com/p/google-guice) 用于 Python?
Is there a framework equivalent to Guice (http://code.google.com/p/google-guice) for Python?
推荐答案
我没用过,但是Spring Python 框架基于 Spring,实现了 反转控制.
I haven't used it, but the Spring Python framework is based on Spring and implements Inversion of Control.
Python 项目中似乎也有一个 Guice:snake-guice
There also appears to be a Guice in Python project: snake-guice
这篇关于Python 依赖注入框架的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文