dispatch

Dispatch is the actual WSGI app which is served. This module also contains several configuration properties, along with easy access to the apps route table (RouteTable) though route_table.

Note

If you would like to see the logs that seshat produces, using the standard library logging module, create a handler for seshat

seshat.dispatch.request_obj

The class which should be used to create a new Request object from. Should inherit from Request

alias of Request

seshat.dispatch.session_obj

The class which should be used to instantiate a new session object which will be handed to the controller. Should at least inherit from Session

alias of Session

seshat.dispatch.dispatch(env, start_response)[source]

WSGI dispatcher

This represents the main WSGI app for Seshat. To use with waitress, for example:

from waitress import serve
serve(dispatch)