跳转到主要内容

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 (1.4 kB 查看哈希值)

上传时间:

支持者

AWS AWS 云计算和安全赞助商 Datadog Datadog 监控 Fastly Fastly CDN Google Google 下载分析 Microsoft Microsoft PSF赞助商 Pingdom Pingdom 监控 Sentry Sentry 错误日志 StatusPage StatusPage 状态页面