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 details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

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

Uploaded Python 2Python 3

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

Uploaded Python 2

File details

Details for the file FlaskPusher-1.0.1.tar.gz.

File metadata

  • Download URL: FlaskPusher-1.0.1.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for FlaskPusher-1.0.1.tar.gz
Algorithm Hash digest
SHA256 31d89f07f8e6ad29f3b8c42a6147d390cb1b6b177006a016e6409304bd486ab3
MD5 bd597b95f8ba5f82476ff7ac85c5d702
BLAKE2b-256 838081ef938b7807d4bb7fa381f7d0c57cf5f7c8b3d1d16f50d1ab6b412f706f

See more details on using hashes here.

File details

Details for the file FlaskPusher-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for FlaskPusher-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3297b6d1d4dc6ee224927a57f147e5edfa4fdea9fb221a5576efbc8986c83caf
MD5 e1ac032526f6e782ec8504ccb21dda77
BLAKE2b-256 207a0c72e481c55cff6f107244d21743b59faef6a0fb468c1bb41828cc759cb1

See more details on using hashes here.

File details

Details for the file FlaskPusher-1.0.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for FlaskPusher-1.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0143834d8a065c4ec59a25199b02b389f83bbb0ab2b4902214b47b0524d54785
MD5 fa1227d895a585af58b72798d2355d8e
BLAKE2b-256 442a1661ed658c6f6867b75b36d74aff5c4bd98f487477c1ac80efd8a00f91a4

See more details on using hashes here.

File details

Details for the file FlaskPusher-1.0.1-py2-none-any.whl.

File metadata

File hashes

Hashes for FlaskPusher-1.0.1-py2-none-any.whl
Algorithm Hash digest
SHA256 2668acc4e7807fd0eab15bc1c502e522d32e70f957ff27e9c383a653c1ce44eb
MD5 7412c6c5e4016b34dc1cbc2125a711d0
BLAKE2b-256 f652ee4547534cb0d49053f3071f2fa82bb54c7b0ce0e99ed2015e3a89da7586

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page