Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

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?

like image 375
Hamish Downer Avatar asked Jun 18 '10 14:06

Hamish Downer


People also ask

What is Sinatra in Python?

Sinatra is a DSL for quickly creating web applications in Ruby with minimal effort: require 'sinatra' get '/frank-says' do 'Put this in your pipe & smoke it!' end.

Is Flask similar to Sinatra?

Just like Flask, Sinatra is great for simple applications. The basic Sinatra application is only 4 LOC in a single Ruby source file. Sinatra is used instead of libraries such as Ruby on Rails for the same reason as Flask - you can start small and expand the application as needed.


1 Answers

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.

like image 183
Armin Ronacher Avatar answered Sep 20 '22 14:09

Armin Ronacher