Skip to main content

Cloud Functions for Firebase Python SDK

The firebase-functions package provides an SDK for defining Cloud Functions for Firebase in Python.

Cloud Functions provides hosted, private, and scalable environment where you can run server code. The Firebase SDK for Cloud Functions integrates the Firebase platform by letting you write code that responds to events and invokes functionality exposed by other Firebase features.

Learn more

Learn more about the Firebase SDK for Cloud Functions in the Firebase documentation or check out our samples.

Here are some resources to get help:

If the official documentation doesn't help, try asking through our official support channels: https://firebase.google.com/support/

Usage

# functions/main.py
from firebase_functions import db_fn
from notify_users import api

@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')}")
    return notifyUsers(event.data)

Contributing

To contribute a change, check out the contributing guide.

License

© Google, 2025. Licensed under Apache License.

Metadata

Release files for firebase-functions 0.6.0

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

Source distribution (sdist)

Source distribution for firebase-functions 0.6.0
File Size Uploaded Provenance Actions
firebase_functions-0.6.0.tar.gz 74.8 kB With provenance Details for firebase_functions-0.6.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for firebase-functions 0.6.0
File Interpreter ABI Platform Actions
firebase_functions-0.6.0-py3-none-any.whl Python 3 none any Details for firebase_functions-0.6.0-py3-none-any.whl

Total release size: 160.9 kB

Release files / firebase_functions-0.6.0.tar.gz

Download URL firebase_functions-0.6.0.tar.gz
Size 74.8 kB
Tags Source
SHA-256 checksum
How to use checksums
8b571410d92fc69984f011ac15108e20dea072ce1ddf44fd4553c53a06142214
BLAKE2b-256 checksum
How to use checksums
4139fcc8545adf624edfb5b3b8001a732d847f6425e9b132f5aaef2a3edb7012
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 4, 2026.

Transparency log

Release files / firebase_functions-0.6.0-py3-none-any.whl

Download URL firebase_functions-0.6.0-py3-none-any.whl
Size 86.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7c004bc81cd1d9d1187e2032036b1ffc231f2b21981a3c34c46c29195b3de2ea
BLAKE2b-256 checksum
How to use checksums
a4d2e3d57452d59ca7b48fccbe6529a4f017c1ebe67c307067d3b13fc021fdcb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 4, 2026.

Transparency log

Security for firebase-functions 0.6.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for firebase_functions-0.6.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 4, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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