FlaskPusher-1.0.1
توضیحات
Adds Pusher support for your Flask application.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | FlaskPusher-1.0.1 |
| نام | FlaskPusher |
| نسخه کتابخانه | 1.0.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Kanat Bekt |
| ایمیل نویسنده | bekt17+gh@gmail.com |
| آدرس صفحه اصلی | https://github.com/Bekt/flask-pusher |
| آدرس اینترنتی | https://pypi.org/project/FlaskPusher/ |
| مجوز | BSD |
Flask-Pusher
------------
Flask-Pusher is a wrapper around `pusher-http-python` and
adds Pusher support for your Flask application.
Easy Setup
``````````
Quickstart:
.. code:: python
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:
.. code:: python
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
`````````````````
.. code:: bash
$ pip install FlaskPusher
$ # NOT Flask-Pusher
Links
`````
* `Source code and issues <https://github.com/Bekt/flask-pusher>`_
* `Documentation <http://flask-pusher.readthedocs.org/>`_
* `Official Pusher Python library <https://github.com/pusher/pusher-http-python>`_
نحوه نصب
نصب پکیج whl FlaskPusher-1.0.1:
pip install FlaskPusher-1.0.1.whl
نصب پکیج tar.gz FlaskPusher-1.0.1:
pip install FlaskPusher-1.0.1.tar.gz