Skip to main content

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. This package is based on gcm-client, which was created by Sardar Yumatov.

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

Please report any bugs or requests through Bitbucket

Todo

  • Own documentation for gcm-clerk

  • Attributions for previous work etc.

Metadata

Release files for gcm-clerk 0.1.6

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

Source distribution (sdist)

Source distribution for gcm-clerk 0.1.6
File Size Uploaded
gcm-clerk-0.1.6.tar.gz 12.2 kB Details

Release files / gcm-clerk-0.1.6.tar.gz

Download URL gcm-clerk-0.1.6.tar.gz
Size 12.2 kB
Tags Source
SHA-256 checksum
How to use checksums
23d04f4e7f104aa29e873b57a649ab08992f74b21fbe8689d7e9aa1d12b0fe4d
BLAKE2b-256 checksum
How to use checksums
afd3cf114d1960232f825ee9efaf4e50f4904a95f2fb282b9f9099bdc246723c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.6 This release

1 release file

0.1.5

1 release file

0.1.4

1 release file

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