Skip to main content

Flask-GCM is a simple wrapper for the python-gcm library to be used with Flask applications.

Project description


Build Status Coverage Status PyPI Version PyPI Downloads

Flask-GCM is a simple wrapper for the `gcm-client <>`__ library to be used with Flask applications.

Getting Started


  • Python 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
$ cd flask-gcm
$ python install

Basic 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__)
    return app

The gcm object can then be used as described in the `gcm-client docs <>`__

For Contributors


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 checks

Pull 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.0.1 (2014/10/13)

  • Initial release

0.2.1 (2019/08/16)

  • Switch to Firebase URL which theoretically supports GCM

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

Flask-GCM-0.2.1.tar.gz (4.6 kB view hashes)

Uploaded source

Built Distribution

Flask_GCM-0.2.1-py3-none-any.whl (5.7 kB view hashes)

Uploaded 3 4

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page