Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

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

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page