A Piece of CherryPy for CGI Programmers 193
An anonymous reader writes "IBM developerWorks is running an article outlining the strengths and offering some helpful advice on the Python framework 'CherryPy'. CherryPy uses the same concepts as CGI to bind a web server to a web application, but it improves performance and gains persistence across requests by handling all its requests within a single process."
You mean... (Score:5, Insightful)
This is nothing special. Just another framework that doesn't really do anything unique at all...
Re:Obligatory (Score:2, Insightful)
face.smile.width.units = "Miles"
face.smile.width = 10
So, we now have (Score:3, Insightful)
Regular CGI, mod_perl, mod_python, the newcomer Ruby on Rails, and now CherryPy. Granted, some webhosts [dreamhost.com] handle the first four (even Rails) without any problems, but how many do we really need?
I suppose the answer is "as many as it takes" — whatever's easiest for some users will be utterly impenetrable to others, and it's good to have choice. But at what point does it start to become a burden to keep up with all these — either for programmers looking to keep their CVs up to date, or hosts wanting to stay current?
Re:You mean... (Score:3, Insightful)
Re:You mean... (Score:3, Insightful)
Re:You mean... (Score:3, Insightful)
Re:People are looking at this the wrong way (Score:2, Insightful)
That's wrong on so many levels. For starters, ASP (assuming you mean ASP.NET) is lightyears ahead of anything python simply because it gets compiled into machine code before it's executed and runs "closer to the iron" (and therefore blows the doors off anything interpreted). I could name five dozen other reasons why ASP.NET and similar Java based frameworks are better, but I don't want to waste time. There's google, you can find it yourself.
Second, what this particular Python framework is really catching up with is Ruby on Rails. And quite frankly, anyone who likes the sort of thing that RoR implements should just use RoR, not imitations.
People are looking at security the wrong way (Score:1, Insightful)
And the security issue?
Seems only useful if you already do Python CGI. (Score:3, Insightful)
This is kind of a problem though because I actually need a templating system, database mapper, and some other tools. I have some such tools in Perl, but I obviously can't take these with me into Python.
So I am wondering. Were one to use CherryPy, what would be logical tools to build on top of it with? If I need to be able to take objects and convert them into lines in a database or HTML for display or HTML forms for editing or whatnot, what would be the logical things to plug in on top of CherryPy to provide this?
Wow, dude. Chill. (Score:4, Insightful)
Get a grip.
Re:People are looking at this the wrong way (Score:4, Insightful)
Re:People are looking at this the wrong way (Score:3, Insightful)
But I'd certainly agree the single process thing is a red herring; it's not what makes CherryPy interesting.
Re:Wow, dude. Chill. (Score:2, Insightful)
Well, duh.
Anyway it's all here: CherryPy behind Apache [cherrypy.org]
Re:Obligatory (Score:4, Insightful)
[GCC 3.4.3 20041212 (Red Hat 3.4.3-9.EL4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> a=1;b=2
>>> a
1
>>> b
2
>>>