Skip to main content

Python client for Firebase Cloud Messaging (FCM). Check documentation to learn how to use it.

The library was originally written by FCM client by Sardar Yumatov. It seems to have been abandoned around 2015 or 2016. When google announced the move to Firebase, there was a need for a updated version of this software.

Requirements

  • requests - HTTP request, handles proxies etc.

  • six for python 3 compatibility.

Alternatives

Th only alternative library known at the time of writing was pyfcm. 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 an async back-end like Celery, 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 pyfcm 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 FCM fail. This decision makes library a little bit more future proof.

Support

FCM client was created by John Loehrer, contact me if you find any bugs or need help. You can view outstanding issues on the FCM Github page.

Release files for fcm-client 0.2.2

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

Source distribution (sdist)

Source distribution for fcm-client 0.2.2
File Size Uploaded
fcm-client-0.2.2.tar.gz 12.4 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for fcm-client 0.2.2
File Interpreter ABI Platform
fcm_client-0.2.2-py3-none-any.whl Python 3 none any Details
fcm_client-0.2.2-py2-none-any.whl Python 2 none any Details

Total release size: 31.8 kB

Release files / fcm-client-0.2.2.tar.gz

Download URL fcm-client-0.2.2.tar.gz
Size 12.4 kB
Tags Source
SHA-256 checksum
How to use checksums
9d2212878dd9d861717c9eb48d40b0656aa7260cc865b182c87e068d6ae226c7
BLAKE2b-256 checksum
How to use checksums
101e9b11a259656ba72c40099fbc0cda356f5b585841e6552340a6b14169a33c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / fcm_client-0.2.2-py3-none-any.whl

Download URL fcm_client-0.2.2-py3-none-any.whl
Size 10.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
18a23545953d81bbba66b7d275547074bc3bd55c59036458d84515c55ab760bd
BLAKE2b-256 checksum
How to use checksums
687204ffe840a950839792c1284542c889910302990730e80cb88781c1b1c0c0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / fcm_client-0.2.2-py2-none-any.whl

Download URL fcm_client-0.2.2-py2-none-any.whl
Size 8.7 kB
Tags Python 2
SHA-256 checksum
How to use checksums
8729cccd389b60d97ea885eae67fac7640e2b658cb295e350a011632a2471227
BLAKE2b-256 checksum
How to use checksums
a4692038cc8f56ef6b91d138703e8bff0cb75cd360af41932f22b2a32fb11577
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.2.2 This release

3 release files

0.2.1

3 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