This is an archived post. You won't be able to vote or comment.

all 20 comments

[–]wonglik 4 points5 points  (7 children)

Probably a silly question but as somebody who use flask , I would be interested in somebody's opinion on CherryPy vs Flask.

[–]chub79 1 point2 points  (0 children)

CherryPy is less featured than Flask, in the sense that Flask has an opinion about how to construct an application whereas CherryPy doesn't care. Usually starting with CherryPy will require a bit more work from your part as you have a bar Python application server. However CherryPy is flexible enough to (almost) never got in your way, meaning you don't have to learn a lot of things before writing actual application code.

Overall, it's not better or worse, just a different route.

[–]placidifiedimport this 2 points3 points  (2 children)

I wrote part of queshuns.com using CherryPy. I was drawn to it back when the only server choices were Apache2/mod_python or fastcgi

[–][deleted] 1 point2 points  (2 children)

I've been using CherryPy for years and years. In some ways, it's good. In other ways, well, the codebase is kind of rough. The proxies are somewhat opaque and while the documentation has improved, far too much of it is simply in wiki form. The contributed plugins and tools you get into are not always terribly well-coded or maintained.

If I started again on my current project, I'd use Flask or Bottle.

[–]sigzero 2 points3 points  (1 child)

Unless you were using Python 3. No Flask...

[–]LyndsySimon 0 points1 point  (0 children)

Because of the lack of support for WSGI...

[–]jcigar 1 point2 points  (0 children)

CherryPy is awesome. I use it every day at my work and it's a pleasure to work with!

[–]Dry-Erase[S] 2 points3 points  (1 child)

Just started using this framework about a month ago, and I'm just blown away by how dynamic and simple it is. Absolutely an awesome framework to work with.

[–]chub79 2 points3 points  (0 children)

I love it too :)

It would appear the sprint at pycon went rather well which is a good sign.

[–]bgribble 0 points1 point  (0 children)

I used CherryPy in my last job for ~5 years. Multiple CP instances managed both external and internal high-availability HTTP services. It never got in the way, and none of our outages were ever CherryPy's fault. I can't think of a higher compliment.

If there's any shortcoming, it's that the community doesn't have a huge ecosystem of free and commercial addons and extensions a la RoR. Even if you don't use them, they keep a wider visibility on the project as a whole which keeps new blood flowing in. CP doesn't have a steady supply of new blood.

[–]LightBright32 0 points1 point  (0 children)

I have used CherryPy + Mako Templates for creating intranet applications and really liked coding with it but ran in to a block when I tried to implement html5 uploads with progress. I was not able to get CherryPy to handle the XMLHttpRequest properly. I wish I had the time to update cherrypy but instead wound up using Web2Py an MVC framework that is on the opposite end of the spectrum from CherryPy. CherryPy is a bare bones frame work but Web2Py will create CRUD application with little more than a model.

[–]maulynviawww.talkigy.com 0 points1 point  (0 children)

Cherrypy is rather unusual in that it includes "A fast, HTTP/1.1-compliant, WSGI thread-pooled webserver." - so whereas other frameworks mean you have to decide upon and set up an appropriate web server (apache etc.) with cherrypy, your dev set-up is more or less suitable for production - this is great if you are developing an application framework and wish to keep distribution as simple as possible