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:
- Start with the quickstart: https://firebase.google.com/docs/functions/get-started
- Go through the guide: https://firebase.google.com/docs/functions/
- Read the full API reference: https://firebase.google.com/docs/reference/functions/2nd-gen/python
- Browse some examples: https://github.com/firebase/functions-samples
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8df82a15b91c2ba3dd1160d4cc6ce5adce24f3d62fba5fb931a7a3a0f56bb41e
|
|
| MD5 |
18e31052decfb1b9c6ea6281401cb744
|
|
| BLAKE2b-256 |
56f4687b40801615b3c4836f0f737cc6a926d1435d4e7bb16fbf9d57c62a61ea
|
Provenance
The following attestation bundles were made for firebase_functions-0.5.0.tar.gz:
Publisher:
release.yaml on firebase/firebase-functions-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
firebase_functions-0.5.0.tar.gz -
Subject digest:
8df82a15b91c2ba3dd1160d4cc6ce5adce24f3d62fba5fb931a7a3a0f56bb41e - Sigstore transparency entry: 668002106
- Sigstore integration time:
-
Permalink:
firebase/firebase-functions-python@a5f82a76059483c679cf72ccca5e8e1c10a855e7 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/firebase
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@a5f82a76059483c679cf72ccca5e8e1c10a855e7 -
Trigger Event:
pull_request
-
Statement type:
File details
Details for the file firebase_functions-0.5.0-py3-none-any.whl.
File metadata
- Download URL: firebase_functions-0.5.0-py3-none-any.whl
- Upload date:
- Size: 86.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
56124960d76209f95b071198fd4ec37f2d4c40950009e8af5138a0bd3bde1a3d
|
|
| MD5 |
ae2cfa1ffcda7f5098d8fc29c3b5b7d5
|
|
| BLAKE2b-256 |
c3459818f321e9c7354aba8532e8938b3c399d9e375ea8fc8b551915d2ce63a8
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
firebase_functions-0.5.0-py3-none-any.whl -
Subject digest:
56124960d76209f95b071198fd4ec37f2d4c40950009e8af5138a0bd3bde1a3d - Sigstore transparency entry: 668002111
- Sigstore integration time:
-
Permalink:
firebase/firebase-functions-python@a5f82a76059483c679cf72ccca5e8e1c10a855e7 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/firebase
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@a5f82a76059483c679cf72ccca5e8e1c10a855e7 -
Trigger Event:
pull_request
-
Statement type: