I have a PHP site setup on my server that also has mod_wsgi + Python 2.5 on it.
Occasionally I’m going to be asked to provide a zip of the entire site, and I’d like to use Python instead of PHP to do this.
What’s the most minimal configuration I could make so that my python script is web accessible in order such that it can wget and grab static files of my site, add my media ( css, js ) directories to a zip and provide that zip to download?
The mod_wsgi site has very good documenation, including a “QuickStart” guide. It comes complete with a very minimal python script to get you going.
If you want to use Python and go even simpler (and performace/load is not an issue), there’s always the cgi module.