Hacker News new | comments | ask | show | jobs | submit login

For smaller projects, I'd wholly recommend Flask over Pylons or web.py: http://flask.pocoo.org/

I'd even say consider Flask for larger projects if you have patience, a good head for package/module layouts, and are after a really "no fluff" framework.

Tie it up to Nginx using Gunicorn: http://gunicorn.org/

(Here's the instructions in the Flask docs: http://flask.pocoo.org/docs/deploying/others/#gunicorn)

You will get some killer, low memory performance (many times smaller memory footprint than Django) out of that setup.

Flask looks similar to Ruby's Sinatra: http://www.sinatrarb.com/

@OP: Personally I think Python has a lot of syntax fluff, whereas Ruby couldn't get simpler in that regard; even forgetting about the LOC and focusing on the respective DSLs:


  from flask import Flask
  app = Flask(__name__)

  def hello():
      return "Hello World!"

  if __name__ == "__main__":

  require 'sinatra'
  get '/hi' do
    "Hello World!"
Don't get me wrong, I sometimes use Python, it's a great language, especially for non-web things, but I always jump at the chance to use Ruby. It's not the fastest language (though compared to Python nowadays, it doesn't lag behind that bad), but it's the nicest by far I've ever had the chance to work with.

How well does it integrate into Apache?

Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact