Skip to main content

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

Metadata

Release files for wsgi-pratchett 2.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for wsgi-pratchett 2.1.0
File Size Uploaded
wsgi-pratchett-2.1.0.tar.gz 1.4 kB Details

Release files / wsgi-pratchett-2.1.0.tar.gz

Download URL wsgi-pratchett-2.1.0.tar.gz
Size 1.4 kB
Tags Source
SHA-256 checksum
How to use checksums
174e85f36f92b17bf6c201e46968084b03385cf376244ef77f841a6b55d836ba
BLAKE2b-256 checksum
How to use checksums
1fc764d0247234d7e968b3a65893a79464b9d4adf45e5dd14d17ce36c3d7b7d3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

2.1.0 This release

1 release file

2.0.0

1 release file

1.0.2

1 release file

1.0.1

1 release file

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page