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 though route_table. Documentation on the route table can be found below: RouteTable

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 object which should be used to create a new Request item from. Should inherit from BaseRequest

alias of BaseRequest

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)
class seshat.route_table.RouteTable[source]
add_route(r_container)[source]

Adds the given route container to the route table.

Parameters:r_container (RouteContainer) – The route container which contains the url and controller for a route.