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.tar.gz
(2.1 kB
view hashes)
Built Distributions
Close
Hashes for FlaskPusher-1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c35fa337328f7d8b2d4e5c10c20120a4367ceb502998f39ae4c9c4018da7792a |
|
MD5 | 2767f33e09d53cb7104934f403427703 |
|
BLAKE2b-256 | 43dd558dc2232a7ac74360319036c870c50fc3db334cd3eb5322ad50eeddfea7 |
Close
Hashes for FlaskPusher-1.0-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a3e05ba5715553e716cee5dd14b8cda4ea14bc43e08a209c2f4a323d0049672 |
|
MD5 | 2605e6154dd72877ed7f6fad5ce235f5 |
|
BLAKE2b-256 | a91db85ac983128df2145a2eb8d679717a0a0aea4c29464a3bd8d970105c3148 |