Skip to main content
Warning: You are using the test version of PyPI. This is a pre-production deployment of Warehouse. Changes made here affect the production instance of TestPyPI (
Help us improve Python packaging - Donate today!

A high-speed, production ready, thread pooled, generic WSGI server

Project Description

WSGIserver is a high-speed, production ready, thread pooled, generic WSGI server with SSL support.

WSGIserver suppport both Python 2 and Python 3.

WSGIserver is developed by Florent Gallaire


Download and Install

To install the last stable version from PyPI:

$ sudo pip install wsgiserver

To install the development version from GitHub:

$ git clone
$ cd wsgi
$ sudo python install

Documentation and Caveats

  • WSGIserver support Python 2.6 and above and Python 3.1 and above
  • WSGIserver require six


Simplest example on how to use WSGIserver:

import wsgiserver

def my_app(environ, start_response):
    status = '200 OK'
    response_headers = [('Content-type','text/plain')]
    start_response(status, response_headers)
    return ['WSGIserver is running!']

server = wsgiserver.WSGIServer(('', 8070), my_app)

WSGIserver can serve as many WSGI applications as you want in one instance by using a WSGIPathInfoDispatcher:

d = wsgiserver.WSGIPathInfoDispatcher({'/': my_app, '/blog': my_blog_app})
server = wsgiserver.WSGIServer(('', 80), d)

To add SSL support, just set server.ssl_adapter to an SSLAdapter instance:

server.ssl_adapter = wsgiserver.SSLAdapter('certificate.pem', 'privatekey.pem')


  • WSGIserver is the project name
  • wsgiserver is the Python module name
  • WSGIServer is the main class name


WSGIserver files are released under the GNU AGPLv3 or above license.

WSGIserver codebase from CherryPy by CherryPy Team ( under the 3-clause BSD license.

Release History

This version
History Node


History Node


History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Hash SHA256 Hash Help Version File Type Upload Date
(26.0 kB) Copy SHA256 Hash SHA256
2.7 Wheel Aug 10, 2016
(40.1 kB) Copy SHA256 Hash SHA256
Source Aug 10, 2016

Supported By

WebFaction WebFaction Technical Writing 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 Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting