I walked through six different examples showing what WSGI is and some parts of the WSGI web development ecosystem. The six examples were:
def application(environ, start_response): '''The simplest WSGI app.''' start_response('200 OK', [('content-type', 'text/html')]) yield '<h1>Hello world</h1>'
- request and response wrappers, introduction to middleware
- a slightly more full example of middleware
- a fleshed out app with templates, URL routing, and some more middleware
You can find the code and instructions for running the examples on Bitbucket.blog comments powered by Disqus