-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
88 lines (67 loc) · 2.05 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
"""
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>`_
"""
from setuptools import setup
setup(
name='FlaskPusher',
version='1.0',
url='https://github.com/Bekt/flask-pusher',
license='BSD',
author='Kanat Bekt',
author_email='[email protected]',
description='Adds Pusher support for your Flask application.',
long_description=__doc__,
py_modules=['flask_pusher'],
zip_safe=False,
include_package_data=True,
platforms='any',
install_requires=[
'Flask>=0.10',
'pusher>=1.1',
],
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules',
],
tests_require=['nose'],
test_suite='flask_pusher_tests'
)