--- id: firebase-functions version: "0.6.0" license: Apache-2.0 license_treatment: permissive maintenance: active --- # firebase-functions — Firebase Functions Python SDK License: permissive · Maintenance: active · Downloads: 449.8K/mo ## What it is and what it does Firebase Functions is Google's official Python SDK for writing Cloud Functions that respond to Firebase events. It lets you define functions that trigger on database writes, authentication events, HTTP requests, and other Firebase platform signals, then deploy them to a managed serverless environment. The SDK abstracts away infrastructure management—you write decorated Python functions and the platform handles scaling, networking, and execution. The package integrates deeply with Firebase services through dependencies on firebase-admin, google-cloud-firestore, and google-events, plus web framework support via flask and functions-framework. It's designed for developers building backends that react to Firebase data changes or user actions without managing servers. The SDK is actively maintained and supports modern Python versions, though it remains in Beta status. Use it for: - Trigger backend logic when data is written to Realtime Database or Firestore (e.g., send notifications on new posts). - Respond to Firebase Authentication events (e.g., log new user signups or clean up data on account deletion). - Build HTTP-triggered microservices that integrate with Firebase and other Google Cloud services. - Schedule periodic tasks (e.g., daily cleanup, report generation) using Cloud Scheduler integration. - Process events from external systems via Cloud Pub/Sub and route them to Firebase services. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Firebase Functions Python SDK lets you write and deploy server code that responds to Firebase events and integrates with Firebase services in a hosted, scalable environment. Yes, if you are building a Firebase backend in Python. The SDK is actively maintained, has low install friction, carries no known vulnerabilities, and integrates directly with Firebase services. The Beta status and 10 runtime dependencies are minor considerations; the permissive Apache-2.0 license poses no barrier. Install it when you need event-driven server code on Firebase. ## Install pip install firebase-functions uv add firebase-functions poetry add firebase-functions ## Installing firebase-functions Before you install: Low install friction with a pure-Python wheel distribution. Active maintenance with a recent release 71 days ago and ongoing commits. Supports current Python versions (3.10–3.13). License in practice: Licensed under Apache-2.0 (permissive), allowing use in commercial and private projects with minimal restrictions. Quickstart: pip install firebase-functions from firebase_functions import db_fn @db_fn.on_value_created(reference="/posts/{post_id}") def new_post(event): print(f"Received new post with ID: {event.params.get('post_id')}") Requires Python 3.10 or later; Firebase project credentials and deployment infrastructure (Cloud Functions for Firebase) are needed to run functions in production. Verify before relying: - Whether all 10 runtime dependencies (flask, functions-framework, firebase-admin, etc.) are required for basic usage or only for specific function types. - Performance characteristics and cold-start latency typical for Python Cloud Functions. - Maturity and stability guarantees given Beta status (Development Status :: 4). ## Package facts - License: Apache-2.0 (permissive) - Python support: supports_current - Install friction: low - Maintenance: active - Downloads: 449.8K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags firebase cloud functions python, serverless event handlers firebase, firebase realtime database triggers, google cloud functions python sdk, firebase event-driven backend code, python firebase backend deployment, firebase database event listeners, serverless, event-driven, firebase [View on SkillFed](https://skillfed.io/packages/firebase-functions) · [View on PyPI](https://pypi.org/project/firebase-functions/)