5 ms·
I'd say Flask will literally let you do that. Though CherryPy will as well if you really want to. I usually don't do CherryPy that way unless I'm building somet
by giancarlostoro 9y ago
I'd say Flask will literally let you do that. Though CherryPy will as well if you really want to. I usually don't do CherryPy that way unless I'm building something small and contained enough. If you need templating I used Mako with CherryPy as well. Just look at the "Hello World" for CherryPy you only need that one file to run a web server, supports also running under WSGI and hosting other applications that need WSGI hosting.
CherryPy:
http://cherrypy.org/ http://cherrypy.org/
Mako:
http://www.makotemplates.org/ http://www.makotemplates.org/
- sigzero 9y agoCherryPy is pretty cool. I wish it got more notice. Bottle is another single file Python framework as well.
- giancarlostoro 9y agoGot to use it for production at my job when I was given the freedom to pick any framework. Don't really regret it, though I wouldn't mind trying out Falcon for comparison.
- kakwa_ 9y agoI've used cherrypy + mako in a few projects (https://github.com/kakwa/dnscherry https://github.com/kakwa/dnscherry and https://github.com/kakwa/ldapcherry https://github.com/kakwa/ldapcherry). It's quite easy to pick-up and does the job very well. It supports running directly over http, but you can also run it in wsgi or fastcgi modes without issues. And it's also quite stable in term of APIs, my projects are now 4 years old, and I didn't have any breaking changes in their API. It makes it quite easy to support various distributions and version without kludges in the code to handle different versions or having to bundle cherrypy with the application. Even my monkey patches of the framework (slight change in the configuration parser) are not breaking ^^.
- giancarlostoro 9y agoMy project is 1 year and 6 months old or so and yeah I've had a similar experience. CherryPy is a great framework, and Mako not sure why I chose it was also an equally great choice.