1. Lynn Rees
  2. wsgize


wsgize / README.txt

The default branch has multiple heads

Middleware for WSGI-enabling Python callables

* Middleware that makes non-WSGI Python functions, callable classes, or
methods into WSGI applications
* Middleware that automatically handles generating WSGI-compliant HTTP
response codes, headers, and compliant iterators
* An HTTP response generator
* A secondary WSGI dispatcher


# Automatically handle HTTP response, header, and iterator generation

def app(environ, start_response):
    return 'Hello World'

# Make a normal Python function into a WSGI application

def app(name):
    return 'Hello ' % name