Skip to main content

PasteDeploy entry points for WebOb WSGI apps and filters.

Project description

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

PasteDeploy entry points for WebOb WSGI apps

Features

WebOb includes several WSGI apps that you can use as a part of your application. However, it does not include ready to use entry points for usage in PasteDeploy ini files, for usage with for example [Gearbox](https://pypi-hypernode.com/pypi/gearbox)

This module provides these entry points and the small wrappers needed.

The entry points provided are:

egg:webobentrypoints#staticdir

Example usage

Here is an example of a ini file configuration using the staticdir and the proxy apps:

[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

History

0.1.0 (2014-09-25)

  • First release on PyPI.

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

webobentrypoints-0.1.0.zip (19.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page