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
Links
Project details
Release history Release notifications | RSS feed
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)
Built Distributions
Close
Hashes for FlaskPusher-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3297b6d1d4dc6ee224927a57f147e5edfa4fdea9fb221a5576efbc8986c83caf |
|
MD5 | e1ac032526f6e782ec8504ccb21dda77 |
|
BLAKE2b-256 | 207a0c72e481c55cff6f107244d21743b59faef6a0fb468c1bb41828cc759cb1 |
Close
Hashes for FlaskPusher-1.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0143834d8a065c4ec59a25199b02b389f83bbb0ab2b4902214b47b0524d54785 |
|
MD5 | fa1227d895a585af58b72798d2355d8e |
|
BLAKE2b-256 | 442a1661ed658c6f6867b75b36d74aff5c4bd98f487477c1ac80efd8a00f91a4 |
Close
Hashes for FlaskPusher-1.0.1-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2668acc4e7807fd0eab15bc1c502e522d32e70f957ff27e9c383a653c1ce44eb |
|
MD5 | 7412c6c5e4016b34dc1cbc2125a711d0 |
|
BLAKE2b-256 | f652ee4547534cb0d49053f3071f2fa82bb54c7b0ce0e99ed2015e3a89da7586 |