All Projects → geeknam → Python Gcm

geeknam / Python Gcm

Licence: mit
Python client for Google Cloud Messaging for Android (GCM)

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Python Gcm

Gmscore
Free implementation of Play Services
Stars: ✭ 4,356 (+849.02%)
Mutual labels:  google, push-notifications
Aerogear Unifiedpush Server
🚀 AeroGear UnifiedPush Server
Stars: ✭ 432 (-5.88%)
Mutual labels:  push-notifications
Android Io18
A summary of all the important Android related launches, talks, discussions at the Google I/O 2018
Stars: ✭ 373 (-18.74%)
Mutual labels:  google
Google Material Icons For Sketch
Google Material Icons Library for Sketch App
Stars: ✭ 420 (-8.5%)
Mutual labels:  google
Figma To Google Slides
Convert Figma frames into a Google Slides presentation 🍭
Stars: ✭ 385 (-16.12%)
Mutual labels:  google
Cloud Functions Go
Unofficial Native Go Runtime for Google Cloud Functions
Stars: ✭ 427 (-6.97%)
Mutual labels:  google
Onesignal Ios Sdk
OneSignal is a free push notification service for mobile apps. This plugin makes it easy to integrate your native iOS app with OneSignal. https://onesignal.com
Stars: ✭ 370 (-19.39%)
Mutual labels:  push-notifications
Drive Cli
A command line interface for accessing google drive
Stars: ✭ 449 (-2.18%)
Mutual labels:  google
Goohak
Automatically Launch Google Hacking Queries Against A Target Domain
Stars: ✭ 432 (-5.88%)
Mutual labels:  google
Closure Library
Google's common JavaScript library
Stars: ✭ 4,294 (+835.51%)
Mutual labels:  google
Ntfy
🖥️📱🔔 A utility for sending notifications, on demand and when commands finish.
Stars: ✭ 4,089 (+790.85%)
Mutual labels:  push-notifications
Ruby Push Notifications
iOS, Android and Windows Phone Push Notifications made easy!!
Stars: ✭ 385 (-16.12%)
Mutual labels:  push-notifications
Aws Google Auth
Provides AWS STS credentials based on Google Apps SAML SSO auth (what a jumble!)
Stars: ✭ 428 (-6.75%)
Mutual labels:  google
Socialphish
The most complete Phishing Tool, with 32 templates +1 customizable
Stars: ✭ 378 (-17.65%)
Mutual labels:  google
Google sign in
Sign in (or up) with Google for Rails applications
Stars: ✭ 433 (-5.66%)
Mutual labels:  google
Mymovies
A Flutter app which shows a list of popular movies.
Stars: ✭ 371 (-19.17%)
Mutual labels:  google
Push Notification Ios
React Native Push Notification API for iOS.
Stars: ✭ 399 (-13.07%)
Mutual labels:  push-notifications
Mobly
E2E test framework for tests with complex environment requirements.
Stars: ✭ 424 (-7.63%)
Mutual labels:  google
Flutterfire
🔥 A collection of Firebase plugins for Flutter apps.
Stars: ✭ 5,979 (+1202.61%)
Mutual labels:  google
Node Pushnotifications
Push notifications for GCM, APNS, MPNS, AMZ (automatic detection from device token)
Stars: ✭ 432 (-5.88%)
Mutual labels:  push-notifications

python-gcm

.. image:: https://badges.gitter.im/Join%20Chat.svg :alt: Join the chat at https://gitter.im/geeknam/python-gcm :target: https://gitter.im/geeknam/python-gcm?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge .. image:: https://img.shields.io/pypi/v/python-gcm.svg :target: https://pypi.python.org/pypi/python-gcm .. image:: https://img.shields.io/pypi/dm/python-gcm.svg :target: https://pypi.python.org/pypi/python-gcm .. image:: https://secure.travis-ci.org/geeknam/python-gcm.png?branch=master :alt: Build Status :target: http://travis-ci.org/geeknam/python-gcm .. image:: https://landscape.io/github/geeknam/python-gcm/master/landscape.png :target: https://landscape.io/github/geeknam/python-gcm/master :alt: Code Health .. image:: https://coveralls.io/repos/geeknam/python-gcm/badge.svg?branch=master :target: https://coveralls.io/r/geeknam/python-gcm .. image:: https://img.shields.io/gratipay/geeknam.svg :target: https://gratipay.com/geeknam/

Python client for Google Cloud Messaging for Android (GCM)

Installation

.. code-block:: bash

pip install python-gcm

Features

  • Supports multicast message
  • Resend messages using exponential back-off
  • Proxy support
  • Easily handle errors
  • Uses requests from version > 0.2
  • Topic Messaging <https://developers.google.com/cloud-messaging/topic-messaging>__
  • TCP connection pooling and Keep-Alive when passing an explict requests.Session object to the used GCM request call

Usage

Read about Google Cloud Messaging <https://developers.google.com/cloud-messaging>__

.. code-block:: python

from gcm import GCM

gcm = GCM(API_KEY) data = {'param1': 'value1', 'param2': 'value2'}

Downstream message using JSON request

reg_ids = ['token1', 'token2', 'token3'] response = gcm.json_request(registration_ids=reg_ids, data=data)

Downstream message using JSON request with extra arguments

res = gcm.json_request( registration_ids=reg_ids, data=data, collapse_key='uptoyou', delay_while_idle=True, time_to_live=3600 )

Topic Messaging

topic = 'topic name' gcm.send_topic_message(topic=topic, data=data)

See examples <examples>_ directory for more usage details, including error handling.

Contributing

See CONTRIBUTING.md <CONTRIBUTING.md>_

Licensing

See LICENSE <LICENSE>_

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].