Thursday, September 27, 2012

Waitress, a pure Python WSGI web server

By Vasudev Ram


Waitress is a pure-Python WSGI server. (It is part of the Pylons Project.) From the Waitress site:

[ Waitress is meant to be a production-quality pure-Python WSGI server with very acceptable performance. It has no dependencies except ones which live in the Python standard library. It runs on CPython on Unix and Windows under Python 2.6+ and Python 3.2.
...
It supports HTTP/1.0 and HTTP/1.1.
]

Usage example:
from waitress import serve
serve(wsgiapp, host='0.0.0.0', port=8080)
or
from waitress import serve
serve(wsgiapp)
The second example serves the application on all IP addresses, on port 8080.

You can download Waitress from the Python Package Index (PyPI).

- Vasudev Ram - Dancing Bison Enterprises


No comments: