Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

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

Project Description

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.

Release History

This version
History Node


History Node


History Node


Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers DreamHost DreamHost Log Hosting