What about a PHP-like Python Application?
Actually there are so many people that want to have a PHP like Python, so why not give it a try? Using Mako and Werkzeug it’s easy to create such an application.
Basically all what I did is processing *.mako as Mako template that knows about the current request and response, and serving everything else as static file. Inside the templates you have access to GET, POST, FILES, COOKIES, REQUEST and RESPONSE and can use all of mako’s power.
Example template:
<%
data = GET.get('data', 'World')
%>
<title>Hello ${data|h}</title>
<link rel="stylesheet" href="style.css" type="text/css">
<h1>Hello ${data|h}</h1>
<p>
Welcome on the PHP like Python application.
</p>
<p>
Say hello <a href="?data=Daddy">daddy</a> or show
<a href="missing">a missing page</a>. There is also
<a href="special.mako">a special page</a>.
</p>
The full sourcecode is available here: phplikepy
It needs the SVN version of Werkzeug, Mako and Python2.4 or Python 2.3 with wsgiref.