What python equivalent of Sinatra would you recommend? [closed]

时光怂恿深爱的人放手 提交于 2019-12-03 10:48:14

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/3070469/what-python-equivalent-of-sinatra-would-you-recommend

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!