Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
WSGI middleware that injects fedmsg notifications.
branch: master

This branch is even with fedora-infra:master

Failed to load latest commit information.
examples/tg2 Updated config for the tg2 example.
fedmsg_middleware Simplify the double-injection protection.
.gitignore Example of using middleware with a TG2 app.
LICENSE Proof of concept. Proof of concept.
README.rst search replace in readme.


Fedmsg WSGI Middleware (Notifications)


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 file of your project.

Usage in TurboGears 2

Simply edit myapp/config/ 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/ 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 =

use = egg:fedmsg_middleware
topic =*


Get the source

The code and bug tracker live over at Please fork and improve!

Something went wrong with that request. Please try again.