skillfed

firebase-functions

Firebase Functions Python SDK

firebase-functions v0.6.0 449.8K downloads/30d#6,594 on PyPI167
Permissive license Apache-2.0 Active released

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 on this page — 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

firebase-functions on PyPI

pip

pip install firebase-functions

uv

uv add firebase-functions

poetry

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 the current Python release (>=3.10)
Install friction low — pure-Python wheel
Runtime dependencies 10 — flask, functions-framework, firebase-admin, pyyaml, typing-extensions, cloudevents, flask-cors, pyjwt, google-events, google-cloud-firestore
Maintenance actively maintained — 71 days since the last release
Last repo commit
First released
Downloads 449,809/month — #6,594 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: firebase_functions-0.6.0-py3-none-any.whl

Keywords: firebase, functions, google, cloud

Development Status :: 4 - BetaIntended Audience :: DevelopersProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Topic :: Software Development :: Build Tools

Tags

firebase cloud functions pythonserverless event handlers firebasefirebase realtime database triggersgoogle cloud functions python sdkfirebase event-driven backend codepython firebase backend deploymentfirebase database event listeners
serverlessevent-drivenfirebase

More Build Tools packages