skip to navigation
skip to content

wsgifront 0.9.9

Simple adapter to connect your WSGI application to any server (mod_python, CGI, PHP, AppEngine, etc.)

The wsgifront module is a simple layer that lets you connect your WSGI application to any type of server. Your WSGI application always receives a consistent environment, regardless of the specific type of server you are using on the front-end. This behavior helps a developer to ensure their code remains server-independent by not relying on server-specific headers, etc. Numerous recipes are included to give you a quick start for deploying your application.

Adapters are currently included for:

  • mod_python

  • CGI

  • PHP (with Python installed anywhere on the host system)

  • Google AppEngine

  • CherryPy using either:

    • Full application server
    • Standalone WSGI server
  • wsgiref.simple_server

    You’ll notice that some of these servers already provide a WSGI-like environment. In those cases wsgifront simply normalizes the environment and passes through the requests.

These adapters are intentionally kept as minimal as possible. Although wsgifront contains sample middleware for URL dispatching, sessions, and error handling, these are completely optional. wsgifront simply provides the server-side adapters and stays out of your way otherwise.