您会推荐哪种与 Sinatra 相当的 Python 版本?

发布于 2024-09-06 19:33:06 字数 404 浏览 1 评论 0原文

我喜欢 sinatra 框架,但可能必须在 python 中工作。快速的网络搜索发现了一些 Python 等效项,包括 itty、< a href="http://flask.pocoo.org/" rel="noreferrer">flask 和 朱诺

我想知道人们对这些或其他 sinatra 同等产品的体验。您会推荐哪一个?

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.

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

一紙繁鸢 2024-09-13 19:33:06

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

  • itty - 非常小的框架,如果你想要单个文件安装,Bottle 可能是一个更稳定的选择。
  • Flask - 新的、积极开发的,形状与 Sinatra 相似,但也有几点不同。 SQLAlchemy、CouchDB 等的大量扩展。
  • 朱诺 - 一年没有更新。通常不是最好的标志。

除了你提到的那些之外,还有 Bottle,它与 Flask 类似,但更简约。与 Flask 不同的是,它还从头开始重新实现所有内容,而不是像 Werkzeug 那样建立在独立的基础上。

其他替代方案是 web.py,它是有史以来第一个微框架之一。与 Bottle 相同的规则:从头开始重新实现一切。

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

  • itty - very minimal framework, Bottle is probably a more stable alternative if you want a single file installation.
  • Flask - new and actively developed, shaped similar to Sinatra but also differs in a few points. Large number of extensions for SQLAlchemy, CouchDB and more.
  • Juno - not updated for a year. Usually not the best sign.

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.

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文