4 ms·
I agree that a lot of python web frameworks are excessively complex. However, sometimes complexity is warranted. I use web.py, flask and bottlepy depending on
by chewxy 14y ago
I agree that a lot of python web frameworks are excessively complex. However, sometimes complexity is warranted.
I use web.py, flask and bottlepy depending on the required complexity of a project. They intuitively feel less complex. If I need a step up from web.py, I'd be inclined to go with Pyramid (reddit is built on Pylons, which is a precursor to Pyramid and before that, they used web.py)
To me it's a tradeoff between coding speed and project size/speed/performance. For example, if you use Bottlepy to write a typical webapp, you'd have to write your own session handlers (or use Beaker), and you'd have to write your own utils to transform and sanitize data etc.
However, using Bottle.py for a cookie dropping service? 30 lines of code and you have a very robust and scalable cookie dropping service. Ditto to using bottle for adserving and ad decisioning off redis.
Flask however, in my opinion works well for public API endpoints, while web.py works very very well for web frontends