Skip to main content

Firebase Functions Python SDK

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

firebase_functions-0.6.0.tar.gz (74.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

firebase_functions-0.6.0-py3-none-any.whl (86.1 kB view details)

Uploaded Python 3

File details

Details for the file firebase_functions-0.6.0.tar.gz.

File metadata

  • Download URL: firebase_functions-0.6.0.tar.gz
  • Upload date:
  • Size: 74.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for firebase_functions-0.6.0.tar.gz
Algorithm Hash digest
SHA256 8b571410d92fc69984f011ac15108e20dea072ce1ddf44fd4553c53a06142214
MD5 785747cf4360048fd0327d4ef717ea27
BLAKE2b-256 4139fcc8545adf624edfb5b3b8001a732d847f6425e9b132f5aaef2a3edb7012

See more details on using hashes here.

Provenance

The following attestation bundles were made for firebase_functions-0.6.0.tar.gz:

Publisher: release.yaml on firebase/firebase-functions-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file firebase_functions-0.6.0-py3-none-any.whl.

File metadata

File hashes

Hashes for firebase_functions-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7c004bc81cd1d9d1187e2032036b1ffc231f2b21981a3c34c46c29195b3de2ea
MD5 44ec64882d348a6a545bc85f3d2a93dd
BLAKE2b-256 a4d2e3d57452d59ca7b48fccbe6529a4f017c1ebe67c307067d3b13fc021fdcb

See more details on using hashes here.

Provenance

The following attestation bundles were made for firebase_functions-0.6.0-py3-none-any.whl:

Publisher: release.yaml on firebase/firebase-functions-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page