5 ms·
For smaller projects, I'd wholly recommend Flask over Pylons or web.py: http://flask.pocoo.org/ http://flask.pocoo.org/ I'd even say consider Flask for larger
by richardhenry 16y ago
For smaller projects, I'd wholly recommend Flask over Pylons or web.py: http://flask.pocoo.org/ 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/ http://gunicorn.org/
(Here's the instructions in the Flask docs: http://flask.pocoo.org/docs/deploying/others/#gunicorn 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.
- gte910h 16y agoHow well does it integrate into Apache?
- ashleyw 16y agoFlask looks similar to Ruby's Sinatra: http://www.sinatrarb.com/ 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: Python: from flask import Flask app = Flask(__name__) @app.route("/hi") def hello(): return "Hello World!" if __name__ == "__main__": app.run() Ruby: require 'sinatra' get '/hi' do "Hello World!" end 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.