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)
File details
Details for the file wsgi-pratchett-2.1.0.tar.gz
.
File metadata
- Download URL: wsgi-pratchett-2.1.0.tar.gz
- Upload date:
- Size: 1.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 174e85f36f92b17bf6c201e46968084b03385cf376244ef77f841a6b55d836ba |
|
MD5 | 638275d8a29bc07910ed40d9d078c78d |
|
BLAKE2b-256 | 1fc764d0247234d7e968b3a65893a79464b9d4adf45e5dd14d17ce36c3d7b7d3 |