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.5.0.tar.gz (74.7 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.5.0-py3-none-any.whl (86.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for firebase_functions-0.5.0.tar.gz
Algorithm Hash digest
SHA256 8df82a15b91c2ba3dd1160d4cc6ce5adce24f3d62fba5fb931a7a3a0f56bb41e
MD5 18e31052decfb1b9c6ea6281401cb744
BLAKE2b-256 56f4687b40801615b3c4836f0f737cc6a926d1435d4e7bb16fbf9d57c62a61ea

See more details on using hashes here.

Provenance

The following attestation bundles were made for firebase_functions-0.5.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.5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for firebase_functions-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 56124960d76209f95b071198fd4ec37f2d4c40950009e8af5138a0bd3bde1a3d
MD5 ae2cfa1ffcda7f5098d8fc29c3b5b7d5
BLAKE2b-256 c3459818f321e9c7354aba8532e8938b3c399d9e375ea8fc8b551915d2ce63a8

See more details on using hashes here.

Provenance

The following attestation bundles were made for firebase_functions-0.5.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