Skip to main content

GNU Terry Pratchett for WSGI

Project description

Simple WSGI middleware for adding Terry Pratchett’s header to your requests per the conversation that’s happening on reddit

Usage

WSGI middleware is pretty simple. Wrap your WSGI application in an instance of GNUTerryPratchett and you’re set.

from pratchett import GNUTerryPratchett

# ... your code here, create your WSGI application
app = GNUTerryPratchett(your_app)

When using PasteDeploy configuration files you can also add the middleware there.

# Your main application
[app:main]
filter-with = pratchett

[filter:pratchett]
use = egg:wsgi-pratchett

Project details


Download files

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

Files for wsgi-pratchett, version 2.1.0
Filename, size File type Python version Upload date Hashes
Filename, size wsgi-pratchett-2.1.0.tar.gz (1.4 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page