GNU Terry Pratchett for WSGI
项目描述
一个简单的WSGI中间件,用于根据在Reddit上发生的讨论,将Terry Pratchett的头部添加到您的请求中。
用法
WSGI中间件非常简单。将您的WSGI应用程序包裹在GNUTerryPratchett的实例中即可。
from pratchett import GNUTerryPratchett
# ... your code here, create your WSGI application
app = GNUTerryPratchett(your_app)
当使用PasteDeploy配置文件时,您也可以在那里添加中间件。
# Your main application
[app:main]
filter-with = pratchett
[filter:pratchett]
use = egg:wsgi-pratchett
项目详情
关闭
wsgi-pratchett-2.1.0.tar.gz的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 174e85f36f92b17bf6c201e46968084b03385cf376244ef77f841a6b55d836ba |
|
MD5 | 638275d8a29bc07910ed40d9d078c78d |
|
BLAKE2b-256 | 1fc764d0247234d7e968b3a65893a79464b9d4adf45e5dd14d17ce36c3d7b7d3 |