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)
| 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 |