Giter VIP home page Giter VIP logo

fedmsg_middleware's Introduction

Fedmsg WSGI Middleware (Notifications)

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!

fedmsg_middleware's People

Contributors

ralphbean avatar davidjb avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.