跳转到主要内容

WebOb WSGI应用和过滤器使用的PasteDeploy入口点。

项目描述

https://badge.fury.io/py/webobentrypoints.png https://travis-ci.org/regebro/webobentrypoints.png?branch=master https://pypip.in/d/webobentrypoints/badge.png

PasteDeploy入口点,用于WebOb WSGI应用

功能

WebOb包含几个可以作为应用程序一部分使用的WSGI应用。但是,它不包括在PasteDeploy ini文件中使用、与例如[Gearbox](https://pypi.python.org/pypi/gearbox)一起使用的现成入口点。

此模块提供了这些入口点和所需的小包装。

提供的入口点包括

egg:webobentrypoints#staticdir

示例用法

以下是一个使用staticdir和代理应用的ini文件配置示例

[server:main]
use = egg:gearbox#wsgiref
host = 0.0.0.0
port = 5000

[composite:main]
use = egg:rutter#urlmap
/static = static
/ = content

# Serve the /static directory from local disk
[app:static]
use = egg:webobentrypoints#staticdir
path = %(here)s/theme

# Otherwise display http://webob.org/ as the content
[app:content]
use = egg:webobentrypoints#proxy
address = http://webob.org/
suppress_http_headers = accept-encoding connection

历史

0.1.0 (2014-09-25)

  • PyPI上的首次发布。

项目详情


下载文件

下载适合您平台文件的文件。如果您不确定选择哪个,请了解更多关于安装软件包的信息。

源分布

webobentrypoints-0.1.0.zip (19.6 kB 查看哈希值)

上传时间

由以下支持