We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 7 days ago.
The community reviewed whether to reopen this question 7 days ago and left it closed:
Original close reason(s) were not resolved
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(6)
在 Pycon Australia,Richard Jones 比较了最流行的轻量级 Web 框架。 Bottle 名列前茅。以下是完整演示。
At Pycon Australia, Richard Jones compared the most popular lightweight web frameworks. Bottle came out on top. Here is the full presentation.
总的来说,我认为您会发现 web2py 是最容易设置、学习和使用的框架之一。 web2py 可以非常轻松地生成 JSON (只需添加 .json 扩展名),它现在包含自动创建 的新功能宁静的用于访问数据库模型的 Web 服务。特别是,请查看 parse_as_rest 和 smart_query 功能。
如果您需要任何帮助,请在邮件列表中提问。
In general, I think you'll find web2py to be one of the easiest frameworks to set up, learn, and use. web2py makes it very easy to generate JSON (just add a .json extension), and it now includes new functionality to automatically create RESTful web services to access database models. In particular, check out the parse_as_rest and smart_query functionality.
If you need any help, ask on the mailing list.
说到轻量级,CherryPy 非常出色。
When it comes to lightweight, CherryPy is pretty up there.
如果我是你,我会使用 web.py ,它对于进行轻量级的快速原型设计非常方便REST 应用程序。
从主页查看此片段:
If I were you I would use web.py that is really convenient to do that kind of rapid prototyping of lightweight REST applications.
Check out this snippet from the home page:
查看 flask 及其扩展 flask-restful
Take a look to flask and its extension flask-restful
您可能还想查看 Parse。它们现在可以免费使用,并且将为您的移动应用程序提供一个很好的 REST API。
然而,正如 @iksnar 指出的那样,您不需要用 Python 编写任何内容,也不需要为后端编写任何内容。如果您需要在自己的服务器上使用 Python 运行后端,如果您已经在使用 Django 和 Django ORM,那么我是 TastyPie 的忠实粉丝。
You might also want to check out Parse. They are free to use right now, and will give you a nice REST API for you mobile apps.
However, as @iksnar points out, you don't write anything in Python, or anything at all for the backend. If you need to have the backend running in Python on your own servers I am a big fan of TastyPie if you are using Django already and the Django ORM already.