Paste
Tools for using a Web Server Gateway Interface stack
What it is and what it does
Paste is a collection of WSGI middleware and utilities for building, testing, and debugging web applications. It provides components for request/response manipulation, URL dispatching, authentication (HTTP Basic and Digest, signed cookies, CAS), session management, static file serving, and error handling. The package also includes testing fixtures for WSGI applications and command-line tools, plus debugging filters for exception tracking and HTML validation.
The package is in maintenance mode and no longer actively developed—the maintainers explicitly state that patches are accepted only for security issues or major problems, and recommend that new projects consider more modern alternatives. It requires Python 3 and has a single runtime dependency on setuptools.
Use it for:
- Testing WSGI applications in-process using the testing fixture in paste.fixture.
- Dispatching requests to multiple WSGI applications based on URL prefixes using paste.urlmap.
- Implementing HTTP authentication via paste.auth.
- Catching and formatting HTTP exceptions into proper responses with paste.httpexceptions.
- Debugging web applications by capturing print output with paste.debug modules.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Paste provides WSGI middleware components for building web applications, including request/response utilities, authentication, sessions, error handling, and debugging tools.
No, unless you are maintaining an existing Paste-based application. The maintainers explicitly recommend using other options for new projects. The package is in dormant maintenance mode with infrequent releases and patches accepted only for security issues. For new WSGI development, consider alternatives.
Install
paste on PyPI
pip
pip install pasteuv
uv add pastepoetry
poetry add pasteInstalling Paste
Before you install
Low install friction with only setuptools as a runtime dependency. However, the package is in dormant maintenance mode—the last release was 835 days ago, and the maintainers explicitly recommend considering other options for new projects.
License in practice
MIT license is permissive and imposes no significant restrictions on use or redistribution.
Quickstart
pip install Paste
from paste.fixture import TestApp
from paste.httpexceptions import HTTPNotFound
app = TestApp(your_wsgi_app)
response = app.get('/')
Requires Python 3 or later; Python 2 is no longer supported as of release 3.7.0.
Verify before relying
- Whether existing WSGI applications using Paste will continue to work with future Python versions given the dormant maintenance status.
- Whether the debugging and profiling features remain compatible with modern web frameworks.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — setuptools |
| Maintenance | dormant — 835 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,288,119/month — #4,107 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: Paste-3.10.1-py3-none-any.whl
Keywords: web, application, server, wsgi
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
PasteDeployPasteDeploy loads and configures WSGI…
permissive · top 5,000 on PyPI
PasteScriptPasteScript is a command-line tool for creating…
permissive · top 15,000 on PyPI
WebObWebOb provides request and response objects…
permissive · top 5,000 on PyPI
wsgirefProvides WSGI 1.0.1 (PEP 3333) validation…
permissive · top 15,000 on PyPI
WSGIProxy2WSGIProxy2 wraps a remote HTTP application as a…
permissive · top 15,000 on PyPI
WerkzeugWerkzeug is a WSGI utility library providing…
permissive · top 1,000 on PyPI
dj-staticWraps a WSGI application to serve static files…
permissive · top 15,000 on PyPI
BeakerBeaker provides session management and caching…
permissive · top 15,000 on PyPI
static3Serves static and templated content over WSGI,…
copyleft · top 15,000 on PyPI
toolA compact modular framework for building WSGI…
copyleft · top 15,000 on PyPI