API Reference

Waitress

A production-quality pure-Python WSGI server with a small footprint, suitable for Windows deployments.

Official Documentation ↗
CompatibilityThis documentation covers version v3.0. Check the official docs for the latest API surface.

Installation

pippip install waitress

Methods

Waitress is a pure-Python WSGI server with no external dependencies, often paired with Pyramid and Flask.

Key Features

  • Pure Python, works on Windows
  • Threaded and asyncore-style engines
  • Simple programmatic serve() API

Usage Notes

Pin a version and check the official docs for the API surface you depend on before upgrading.

Errors

The following points are quoted verbatim from the official documentation. 来源:https://docs.pylonsproject.org/projects/waitress/en/stable/ · 取证方式:HTTP GET 官方 README/文档页(HTML 去标签) · 抓取时间:2026-11-07T13:53:23.763Z. Any error type, throw condition or recovery step not stated there is left unspecified; this page does not infer exception classes or return values.

Security notes

Quoted verbatim from the official documentation; this is not a complete threat model. 来源:https://docs.pylonsproject.org/projects/waitress/en/stable/ · 取证方式:HTTP GET 官方 README/文档页(HTML 去标签) · 抓取时间:2026-11-07T13:53:23.763Z.

FAQ

Is Waitress suitable for Windows?
Yes. It is pure Python and avoids fork, which makes it the common choice for WSGI deployments on Windows.
How does it compare to Gunicorn?
Waitress uses threads in one process, while Gunicorn forks multiple processes. Gunicorn is Unix-only and often faster on Linux.
How do I tune concurrency?
Set threads to control concurrent requests and channel_timeout for slow clients, tuning with load tests rather than guessing.