mozilla-services/mozillapulse

Name: mozillapulse

Owner: Mozilla Services

Description: Python package for interacting with the Mozilla Pulse message system at pulse.mozilla.org

Created: 2017-06-13 21:32:23.0

Updated: 2017-08-01 15:30:07.0

Pushed: 2017-06-14 00:49:16.0

Homepage: null

Size: 66

Language: Python

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

MozillaPulse

MozillaPulse is a Python package for interacting with Mozilla Pulse. It contains classes for consumers, publishers, and messages.

In order to use a Mozilla Pulse consumer, you must register with PulseGuardian to create a Pulse user. Here's an example of creating a Buildbot consumer:

from mozillapulse.consumers import BuildConsumer

def callback(body, msg):
    print 'Received message: %s' % body

c = BuildConsumer(user=<PulseGuardian user>,
                  password=<PulseGuardian password>,
                  topic='#',
                  callback=callback)
c.listen()

See the HACKING.md file for instructions on setting up a local Pulse instance for development.

Running tests

If you want to run tests against this package:


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.