Skip to main content

Tools for using a Web Server Gateway Interface stack

Project description

Paste provides several pieces of “middleware” (or filters) that can be nested to build web applications. Each piece of middleware uses the WSGI (PEP 333) interface, and should be compatible with other middleware based on those interfaces.

See also:

Includes these features…

Testing

  • A fixture for testing WSGI applications conveniently and in-process, in paste.fixture

  • A fixture for testing command-line applications, also in paste.fixture

  • Check components for WSGI-compliance in paste.lint

Dispatching

  • Chain and cascade WSGI applications (returning the first non-error response) in paste.cascade

  • Dispatch to several WSGI applications based on URL prefixes, in paste.urlmap

  • Allow applications to make subrequests and forward requests internally, in paste.recursive

Web Application

  • Run CGI programs as WSGI applications in paste.cgiapp

  • Traverse files and load WSGI applications from .py files (or static files), in paste.urlparser

  • Serve static directories of files, also in paste.urlparser; also in that module serving from Egg resources using pkg_resources.

Tools

  • Catch HTTP-related exceptions (e.g., HTTPNotFound) and turn them into proper responses in paste.httpexceptions

  • Several authentication techniques, including HTTP (Basic and Digest), signed cookies, and CAS single-signon, in the paste.auth package.

  • Create sessions in paste.session and paste.flup_session

  • Gzip responses in paste.gzip

  • A wide variety of routines for manipulating WSGI requests and producing responses, in paste.request, paste.response and paste.wsgilib

Debugging Filters

  • Catch (optionally email) errors with extended tracebacks (using Zope/ZPT conventions) in paste.exceptions

  • Catch errors presenting a cgitb-based output, in paste.cgitb_catcher.

  • Profile each request and append profiling information to the HTML, in paste.debug.profile

  • Capture print output and present it in the browser for debugging, in paste.debug.prints

  • Validate all HTML output from applications using the WDG Validator, appending any errors or warnings to the page, in paste.debug.wdg_validator

Other Tools

  • A file monitor to allow restarting the server when files have been updated (for automatic restarting when editing code) in paste.reloader

  • A class for generating and traversing URLs, and creating associated HTML code, in paste.url

The official development repo is at https://bitbucket.org/ianb/paste.

For the latest changes see the news file.

Project details


Download files

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

Source Distribution

Paste-2.0.1.tar.gz (629.6 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

Paste-2.0.1-py3-none-any.whl (594.7 kB view details)

Uploaded Python 3

Paste-2.0.1-py2-none-any.whl (594.7 kB view details)

Uploaded Python 2

File details

Details for the file Paste-2.0.1.tar.gz.

File metadata

  • Download URL: Paste-2.0.1.tar.gz
  • Upload date:
  • Size: 629.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for Paste-2.0.1.tar.gz
Algorithm Hash digest
SHA256 28383e843cb46a9375a90da6e2ec5fcd7704ed9f3f3b5e954928beb52b0e5b41
MD5 5aa1890d20e6f93b46e855aa1e17ba27
BLAKE2b-256 459302b5762d167426cb5351e0c7309c4cddd9fe83ae3bfa70360400fe6486a5

See more details on using hashes here.

File details

Details for the file Paste-2.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for Paste-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 70de3daac92bb89e894e2954d0aa5d82571bfcbbfd854d949373a69376608b8a
MD5 ff425402351e40c878cc947587228666
BLAKE2b-256 1c806cbadedacf52c345ed6bdac5c250c5fe62b3d53aad9d373396ef57b77473

See more details on using hashes here.

File details

Details for the file Paste-2.0.1-py2-none-any.whl.

File metadata

File hashes

Hashes for Paste-2.0.1-py2-none-any.whl
Algorithm Hash digest
SHA256 a35168a478413095fe57bcea4a279b5d08d2027a2ade06ff6b7d9a6d6762fee5
MD5 ee2a23d4edb6df7334f784aa75c7e09b
BLAKE2b-256 dcd7751b24050f3c89fc0d9413810bc949b5fe46c1d354f1f9fc02cd9a054b5a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page