您会推荐什么等同于Sinatra的python? [英] What python equivalent of Sinatra would you recommend?

查看:62
本文介绍了您会推荐什么等同于Sinatra的python?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我喜欢 sinatra 框架,但可能必须在python中工作.快速的网络搜索发现了一些python等效项,包括 itty 烧瓶朱诺.

I like the sinatra framework, but might have to work in python. A quick web search has uncovered a few python equivalents including itty, flask and juno.

我想了解人们对这些或其他sinatra等效技术的经验.您会推荐哪个?

I'd like to know people's experience of these, or other sinatra equivalents. Which would you recommend?

推荐答案

好的.所以我有偏见,因为我是Flask的作者,但是这里有一些可以帮助您选择的东西:

Okay. So I'm biased because I'm the author of Flask, but here something to help you make the pick:

  • itty-非常小的框架,如果您要安装单个文件,Bottle可能是一个更稳定的选择.
  • 烧瓶-新型且活跃的,外形类似于Sinatra,但也有一些不同. SQLAlchemy,CouchDB等的大量扩展.
  • Juno-一年未更新.通常不是最好的迹象.

除了您提到的那些瓶,还有一个类似于Flask但更简约的Bottle.与Flask不同,它还重新实现了所有功能,而不是像Werkzeug这样的独立基础上进行构建.

Besides the ones you mentioned there is also Bottle which is similar to Flask but more minimalistic. Unlike Flask it also re-implements everything from ground up instead of building on an independent foundation like Werkzeug.

其他替代方法是web.py,这是有史以来最早的微框架之一.与瓶子相同的规则:从头开始重新实现所有功能.

Other alternatives is web.py, one of the first microframeworks ever. Same rule as bottle: re-implements everything from the ground up.

这篇关于您会推荐什么等同于Sinatra的python?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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