Python依赖注入框架 [英] Python Dependency Injection Framework

查看:610
本文介绍了Python依赖注入框架的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有与Guice相同的框架( http://code.google.com/p / google-guice )for 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆