which is a minimalistic python wsgi development server with support for code reload?

python, wsgi

Solution

One you might want to look at is Werkzeug - it is a WSGI utility toolkit. It includes a runserver function that takes the wsgiref server and adds automatic code reloading (you can also configure it to reload when configuration files change) and an awesome debugger.

On a side note, your disdain for frameworks makes it sound like you're planning to handle all the WSGI stuff from scratch, in which case I would recommend you use Werkzeug's utility functions to handle parsing requests and generating responses. It's a lot more fun than doing it yourself. (And for the love of Guido, PLEASE don't use `cgi.FieldStorage`!)

Problem

From what I can tell - wsgiref - no code reload - CherryPy - more than just the server - mod_wsgi - all the apache overhead - paste.httpserver - paste is a huge package with other stuff in it - flup - same as paste, too much stuff. - Spawning - never used it but seems lightweight enough. - Tornado - not really wsgi + full "framework" - Werkzeug - runcommand any others out there? which one you prefer?

Original source