Skip to main content
Help us improve Python packaging – 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

Release history Release notifications

This version
History Node

2.1.0

History Node

2.0.0

History Node

1.0.2

History Node

1.0.1

History Node

1.0.0

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
wsgi-pratchett-2.1.0.tar.gz (1.4 kB) Copy SHA256 hash SHA256 Source None Mar 27, 2015

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page