Skip to main content

Adds Pusher support for your Flask application.

Project description

Flask-Pusher is a wrapper around pusher-http-python and adds Pusher support for your Flask application.

Easy Setup

Quickstart:

from flask_pusher import Pusher

app = Flask(__name__)
pusher = Pusher(app)

# Use any `pusher.Pusher` method.
pusher.trigger('channel', 'my-event', {'data': 'It works!'})

Or using the factory pattern:

from flask_pusher import Pusher

pusher = Pusher()

def create_app():
    app = Flask(__name__):
    pusher.init_app(app)

    # Use any `pusher.Pusher` method.
    pusher.trigger('channel', 'my-event', {'data': 'It works!'})

Easy Installation

$ pip install FlaskPusher
$ # NOT Flask-Pusher

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

FlaskPusher-1.0.1.tar.gz (2.1 kB view hashes)

Uploaded Source

Built Distributions

FlaskPusher-1.0.1-py3-none-any.whl (3.7 kB view hashes)

Uploaded Python 3

FlaskPusher-1.0.1-py2.py3-none-any.whl (3.7 kB view hashes)

Uploaded Python 2 Python 3

FlaskPusher-1.0.1-py2-none-any.whl (3.7 kB view hashes)

Uploaded Python 2

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