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.

Source Distribution

wsgi-pratchett-2.1.0.tar.gz (1.4 kB view details)

Uploaded Source

File details

Details for the file wsgi-pratchett-2.1.0.tar.gz.

File metadata

File hashes

Hashes for wsgi-pratchett-2.1.0.tar.gz
Algorithm Hash digest
SHA256 174e85f36f92b17bf6c201e46968084b03385cf376244ef77f841a6b55d836ba
MD5 638275d8a29bc07910ed40d9d078c78d
BLAKE2b-256 1fc764d0247234d7e968b3a65893a79464b9d4adf45e5dd14d17ce36c3d7b7d3

See more details on using hashes here.

Supported by

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