simplest way to create simple standalone wsgi server without import wsgi_lib.server

Gelonida gelonida at gmail.com
Mon Jan 31 17:28:09 EST 2011


Hi,

Normally I use following code snippet to quickly test a wsgi module
without a web server.

import wsgi_lib.server
wsgi_lib.server.run(application, port=port)


However Now I'd like to test a small wsgi module on a rather old host
( Python 2.4.3 ) where I don't have means to update python.

Is there any quick and easy code snippet / module, performing the same
task as my above mentioned lines?

Thanks in advance for any hints







More information about the Python-list mailing list