Flask-GCM is a simple wrapper for the `gcm-client <https://pypi.python.org/pypi/gcm-client/>`__ library to be used with Flask applications.
Getting Started RequirementsPython 2.6+ or Python 3.3+
Flask-GCM can be installed with pip:
$ pip install flask-gcm
or directly from the source code:
$ git clone https://github.com/MichiganLabs/flask-gcm.git $ cd flask-gcm $ python setup.py installBasic Usage
from flask import Flask
from flask.ext.gcm import GCM
app = Flask(__name__)
gcm = GCM(app)
Flask-GCM also supports the Flask “app factory” paradigm using init_app:
from flask import Flask
from flask.ext.gcm import GCM
gcm = GCM()
def create_app():
app = Flask(__name__)
gcm.init_app(app)
return app
The gcm object can then be used as described in the `gcm-client docs <http://gcm-client.readthedocs.org/en/latest/index.html>`__
For Contributors RequirementsGNU Make:
Windows: http://cygwin.com/install.html
Linux: http://www.gnu.org/software/make (likely already installed)
virtualenv: https://pypi.python.org/pypi/virtualenv#installation
Create a virtualenv:
$ make env
Run the tests:
$ make test
Build the documentation:
$ make doc
Run static analysis:
$ make flake8 $ make pep257 $ make check # includes all checksPull Request Guidelines
Contributions are always welcome! Please keep the following in mind when creating a pull request:
Include (passing) tests for all new features and bugfixes
Contributed code should pass flake8 checks
Include documentation which passes pep257 guidelines
0.2.1 (2019/08/16)
Initial release
Switch to Firebase URL which theoretically supports GCM
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution Built Distribution File detailsDetails for the file Flask-GCM-0.2.1.tar.gz
.
8b5792d90d3ebdff5e4d570158d2bdf9746f3f6cca17d3f8dfddc74ffa70289d
MD5 60e4ef5bac859c1603b02c90805ea9f0
BLAKE2b-256 915b8c763bd5245cb5030bf0d10cf11a52744c69c200ecb34ce8621dd178193c
See more details on using hashes here.
File detailsDetails for the file Flask_GCM-0.2.1-py3-none-any.whl
.
e281d8e7f0f94953ac7267134c20bb2b644325963b2c048b0b623a9a9b0f6ed6
MD5 a02ba4ba6c60215e437f8ca1ca071ddc
BLAKE2b-256 e34183bf2de7863f1d63fd31db7db12a49673a509131b0c348be0784f9668133
See more details on using hashes here.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4