Apache2的:或的mod_wsgi mod_python的,哪一个更好? [英] Apache2: mod_wsgi or mod_python, which one is better?

查看:375
本文介绍了Apache2的:或的mod_wsgi mod_python的,哪一个更好?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我打算用Python编写Web服务。但是,我发现WSGI也做了类似的事情。哪一个可能是preferred?

I am planning to write web service in python. But, I found wsgi also does the similar thing. Which one can be preferred?

感谢您结果
巴拉

Thank you
Bala

更新

我仍然感到困惑。请帮助。

I am still confused. Please help.

在我的感觉更好的手段:结果
1.错误将定期固定。结果
2.大多数开发人员选出。结果
3.喜欢像AWS认证令牌附加功能,可以支持开箱即用。结果
4.版本没有很强的依赖性。(我看到WSGI需要Python 2.6)结果
5.所有Python库将工作开箱即用。结果
6.在未来可伸缩。结果
7.今后的升级不会造成任何问题。

Better in my sense means:
1. Bug will be fixed periodically.
2. Chosen by most developers.
3. Additional features like authentication tokens like AWS, can be supported out of the box.
4. No strong dependency on version.( I see that wsgi requires python 2.6)
5. All python libraries will work out of the box.
6. Scalable in the future.
7. Future upgrade don't cause any issues.

通过我有限的经验,我想这些功能。可能有一些我可能会丢失。

With my limited experience, I want these features. There might be some I might be missing.

由于结果
巴拉

Thanks
Bala

更新

对不起所有的混乱造成的。我只是想在Python语言暴露RESTful Web服务。是否有一个良好的框架?

I am sorry for all the confusion caused. I just want to expose a restful web services in python language. Is there a good framework?

推荐答案

的mod_wsgi 正在更加积极地维护和(我听到 - !没有他们的基准自己)更好表现比的mod_python 。所以,除非你需要的的mod_python ,只使用一个Web应用程序框架(或非框架,像的 WERKZEUG ;-),你可能与的mod_wsgi ! (几乎所有的Python Web框架,和许多非框架,其中WERKZEUG是我的最爱,支持WSGI作为他们的标准接口,Web服务器,这些天)。

mod_wsgi is more actively maintained and (I hear -- haven't benchmarked them myself!) better performing than mod_python. So unless you need exclusive features of mod_python, just to use a web app framework (or non-framework, like werkzeug;-), you're probably better off with mod_wsgi! (Just about every Python web framework, and many non-frameworks of which werkzeug is my favorite, support WSGI as their standard interface to the web server, these days).

这篇关于Apache2的:或的mod_wsgi mod_python的,哪一个更好?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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