pyfcm
Python client for FCM - Firebase Cloud Messaging (Android, iOS and Web)
Decision gist · record as of 2026-08-14
Yes, if you are building a Python application that needs to send Firebase Cloud Messaging notifications to mobile or web clients and can provide a service account or OAuth2 credentials. The package is stable (Production/Stable classifier), has no known vulnerabilities, and handles the FCM HTTP V1 API migration. However, be aware that maintenance is aging (382 days since last release); verify compatibility with your target Python version, as the classifiers list only up to Python 3.5.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires a Firebase service account JSON file or valid Google OAuth2 credentials with firebase.messaging scope; project_id must be specified.
- Low install friction with a pure-Python wheel distribution.
- Maintenance status is aging—last release was 382 days ago—but the repository remains active with a recent commit on 2026-01-16 and no archived status.
License · maintenance · safety
MIT License (permissive) — MIT License (permissive) places no restrictions on use, modification, or distribution in commercial or private projects.
last release 2025-07-28 (382 days) · last repo commit 2026-01-16 · 814 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 250,414 downloads/mo, #8,630 on PyPI
Alternatives
Verify before relying
pip install pyfcm
from pyfcm import FCMNotification
fcm = FCMNotification(service_account_file="path/to/service-account.json", project_id="your-project-id")
result = fcm.notify(fcm_token="device-token", notification_body="Hello")- Whether the package supports modern Python versions beyond those listed in classifiers (3.5 is the highest listed).
- Current compatibility with the latest Firebase FCM HTTP V1 API after the June 2024 migration mentioned in the description.
What it is and what it does
PyFCM wraps the Firebase Cloud Messaging REST API to let Python applications send push notifications and data payloads to mobile and web clients. It handles authentication via service account files or Google OAuth2 credentials, supports sending to individual devices, topics, and conditional topic subscriptions, and allows platform-specific configuration for Android (android_config), iOS (apns_config), and Web (webpush_config). The package abstracts away HTTP details and credential management, letting developers focus on message construction and delivery.
The library supports both notification messages (which FCM displays on the client's behalf) and data-only messages (which the client app processes), as well as combined payloads. It includes support for Tornado and can route requests through HTTP proxies. Initialization requires either a Firebase service account JSON file or pre-configured Google credentials and a project ID; messages are sent via the notify() method with optional dry-run testing.
Use it for
- Send push notifications to mobile app users when new data is available or to drive user re-engagement.
- Deliver time-sensitive alerts to Android, iOS, or Web clients subscribed to specific FCM topics.
- Send custom data payloads (up to 4KB) to client applications for in-app processing without displaying a system notification.
- Implement conditional topic messaging to reach users matching specific subscription criteria.
- Test notification delivery in a staging environment using the dry_run parameter before sending to production.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are building a Python application that needs to send Firebase Cloud Messaging notifications to mobile or web clients and can provide a service account or OAuth2 credentials.
The package is stable (Production/Stable classifier), has no known vulnerabilities, and handles the FCM HTTP V1 API migration. However, be aware that maintenance is aging (382 days since last release); verify compatibility with your target Python version, as the classifiers list only up to Python 3.5.
Install
pyfcm on PyPI
Before you install
Low install friction with a pure-Python wheel distribution. Maintenance status is aging—last release was 382 days ago—but the repository remains active with a recent commit on 2026-01-16 and no archived status.
Requires a Firebase service account JSON file or valid Google OAuth2 credentials with firebase.messaging scope; project_id must be specified.
License in practice
MIT License (permissive) places no restrictions on use, modification, or distribution in commercial or private projects.
Quickstart
pip install pyfcm
from pyfcm import FCMNotification
fcm = FCMNotification(service_account_file="path/to/service-account.json", project_id="your-project-id")
result = fcm.notify(fcm_token="device-token", notification_body="Hello")
Verify before relying
- Whether the package supports modern Python versions beyond those listed in classifiers (3.5 is the highest listed).
- Current compatibility with the latest Firebase FCM HTTP V1 API after the June 2024 migration mentioned in the description.
Package facts
| License | MIT License permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 4 packagesrequestsurllib3google-authaiohttp |
| Maintenance | Aging 382 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 250,414 / month, #8,630 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 2Programming Language :: Python :: 2.6Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.2Programming Language :: Python :: 3.3Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Topic :: CommunicationsTopic :: InternetTopic :: Software Development :: Libraries :: Python ModulesTopic :: Utilities |
Evidence: pyfcm-2.1.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “android ios web push”
- pyfcmPyFCM is a Python client for Firebase Cloud Messaging (FCM) that…
- django-push-notificationsA Django app that manages device registrations and sends push…
- Appium-Python-ClientExtends Selenium Python bindings with Appium-specific commands and…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also fcm-django · firebase-messaging · pushbullet.py · django-push-notifications · firebase-admin · firebase-functions · urbanairship · pywebpush · onesignal-python-api · secops