I want to write a simple python web application to provide a gui to a command line program (think of hg serve
, for example). It would run locally only. I don't want it to have any external dependencies for an easier deployment, so python web programming in general wouldn't apply here
How can it be done with a minimal hassle? Any pointer how to do it easily with cgi
or wsgi
, string.Template
or string.Formatter
? I'd prefer a Python 2.6 solution, but even a Python 3.x one is OK. I'd also prefer using a few html templates to manually assembling html together.
UPDATE: The ideal solution would include ways
- to process a form
- to upload/download a file
- to output html
- to start a webserver