Skip to main content

WSGI middleware for display fedmsg messages.

Project description

Installation

You could install it yourself with pip:

$ pip install fedmsg_middleware

Or you could add fedmsg_middleware to the list of required packages in the setup.py file of your project.

Usage in TurboGears 2

Simply edit myapp/config/middleware.py and add the following to make_app(...):

# Wrap your base TurboGears 2 application with custom middleware here
import fedmsg_middleware
app = fedmsg_middleware.make_middleware(app)

Usage in Pyramid

Edit myapp/__init__.py and replace the return config.make_wsgi_app() line with the following:

import fedmsg_middleware
app = config.make_wsgi_app()
app = fedmsg_middleware.make_middleware(app)
return app

Usage in a PasteDeploy pipeline

You can enable it in your PasteDeploy pipeline like so:

[pipeline:main]
pipeline =
    fedmsg_middleware
    my-app

[filter:fedmsg_middleware]
use = egg:fedmsg_middleware
topic = org.fedoraproject.prod.koji.*

[app:myapp]
...

Get the source

The code and bug tracker live over at http://github.com/ralphbean/fedmsg_middleware. Please fork and improve!

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

fedmsg_middleware-0.0.2.tar.gz (13.1 kB view details)

Uploaded Source

File details

Details for the file fedmsg_middleware-0.0.2.tar.gz.

File metadata

File hashes

Hashes for fedmsg_middleware-0.0.2.tar.gz
Algorithm Hash digest
SHA256 d53af8a347ed3963ef40b5fb5def40a2b1fae650275e50a96ab698d1ff7fe183
MD5 98571b30b59891ce24a725a3406a575d
BLAKE2b-256 abbc887458a75d9db1d8d95d39dc807e233512a388682e0ec4f5fe22b836bb02

See more details on using hashes here.

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