Skip to main content

Flask-GCM

Build Status Coverage Status PyPI Version PyPI Downloads

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

Requirements

  • Python 2.6+ or Python 3.3+

Installation

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 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__)
    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

Requirements

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 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

Changelog

0.0.1 (2014/10/13)

  • Initial release

0.2.1 (2019/08/16)

  • Switch to Firebase URL which theoretically supports GCM

Release files for Flask-GCM 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Flask-GCM 0.2.1
File Size Uploaded
Flask-GCM-0.2.1.tar.gz 4.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for Flask-GCM 0.2.1
File Interpreter ABI Platform
Flask_GCM-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 10.3 kB

Release files / Flask-GCM-0.2.1.tar.gz

Download URL Flask-GCM-0.2.1.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
8b5792d90d3ebdff5e4d570158d2bdf9746f3f6cca17d3f8dfddc74ffa70289d
BLAKE2b-256 checksum
How to use checksums
915b8c763bd5245cb5030bf0d10cf11a52744c69c200ecb34ce8621dd178193c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/3.4

Release files / Flask_GCM-0.2.1-py3-none-any.whl

Download URL Flask_GCM-0.2.1-py3-none-any.whl
Size 5.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e281d8e7f0f94953ac7267134c20bb2b644325963b2c048b0b623a9a9b0f6ed6
BLAKE2b-256 checksum
How to use checksums
e34183bf2de7863f1d63fd31db7db12a49673a509131b0c348be0784f9668133
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/3.4

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files

0.2.0

3 release files

0.1.0

3 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page