Skip to main content

Python client for Google Cloud Messaging (GCM)

Project description

Python client for Google Cloud Messaging (GCM). Check documentation to learn how to use it.

Check the client with similar interface for Apple Push Notification service.

Requirements

  • requests - HTTP request, handles proxies etc.

  • omnijson if you use Python 2.5 or older.

Alternatives

Th only alternative library known at the time of writing was python-gcm. This library differs in the following design decisions:

  • Predictable execution time. Do not automatically retry request on failure. According to Google’s recommendations, each retry has to wait exponential back-off delay. We use Celery back-end, where the best way to retry after some delay will be scheduling the task with countdown=delay. Sleeping while in Celery worker hurts your concurrency.

  • Do not forget results if you need to retry. This sounds obvious, but python-gcm drops important results, such as canonical ID mapping if request needs to be (partially) retried.

  • Clean pythonic API. No need to borrow all Java like exceptions etc.

  • Do not hard-code validation, let GCM fail. This decision makes library a little bit more future proof.

Support

GCM client was created by Sardar Yumatov, contact me if you find any bugs or need help. Contact Getlogic if you need a full-featured push notification service for all popular platforms. You can view outstanding issues on the GCM Bitbucket page.

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

gcm-client-0.1.4.tar.gz (13.1 kB view details)

Uploaded Source

File details

Details for the file gcm-client-0.1.4.tar.gz.

File metadata

  • Download URL: gcm-client-0.1.4.tar.gz
  • Upload date:
  • Size: 13.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for gcm-client-0.1.4.tar.gz
Algorithm Hash digest
SHA256 e7d494065e7c5e39d7851367629972fd29aa43c4c5bf171ef8a9a9d7fe33a882
MD5 ef3df5097ac3128f45b7fef3057b9f4b
BLAKE2b-256 e9824ed706229e27d4b136c4b61bbb04beb24862bfe9a61c979436b40e5f0629

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page