Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python equivalent of Sinatra

I know that many people use Sinatra when programming webapps in Ruby because they don't want their framework to get in the way by forcing them to use MVC.

Is there something similar in Python? I'm looking for a framework which provides the glue between Python and the web, and not much more. I've looked at Web.py, but it doesn't seem to be quite what I'm looking for.

EDIT: Instead of just linking to random frameworks, please also say how they compare to the others, and what special features they have.

like image 757
Kudu Avatar asked Jan 09 '11 00:01

Kudu


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.


2 Answers

Take a look at the Flask microframework

like image 154
Tomasz Elendt Avatar answered Oct 01 '22 05:10

Tomasz Elendt


There are several micro web frameworks. I personally like Bottle

A good overview list of options exist here.

like image 23
Allanrbo Avatar answered Oct 01 '22 05:10

Allanrbo