In response to some of the recent activity around Python web
frameworks, and some of the new interest in Paste, I thought it would
be helpful to write a document about how you write a framework using
WSGI. With RhubarbTart coming in at 302 lines (according to
sloccount) I figure it's a
pretty reasonable to consider writing your own. But really my hope is that this will make
people more comfortable with this architectural style. Even if you
don't write your own framework, it's nice to know both that you
could write your own framework, and that you can probably understand
the framework someone else writes, approaching it piece-by-piece.
So, here's the start: A Do-It-Yourself Framework. I still
want to talk about configuration and deployment with Paste Deploy, and
about packaging your application with setuptools and using entry
points, but this is a good start.
Note that I haven't tested the examples. Bad me. Testing tires me
out sometimes.