Flask-GCM is a simple wrapper for the gcm-client
library to be used with Flask applications.
Flask-GCM can be installed with pip:
or directly from the source code:
$ git clone https://github.com/MichiganLabs/flask-gcm.git
$ cd flask-gcm
$ python setup.py install
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
Create a virtualenv:
Run the tests:
Build the documentation:
Run static analysis:
$ make flake8
$ make pep257
$ make check # includes all checks
Contributions are always welcome! Please keep the following in mind when creating a pull request:
flake8
checkspep257
guidelinesRetroSearch 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