- Notifications
You must be signed in to change notification settings - Fork30
License
firebase/firebase-functions-python
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Thefirebase-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 about the Firebase SDK for Cloud Functions in theFirebase documentation orcheck 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/
# functions/main.pyfromfirebase_functionsimportdb_fnfromnotify_usersimportapi@db_fn.on_value_created(reference="/posts/{post_id}")defnew_post(event):print(f"Received new post with ID:{event.params.get('post_id')}")returnnotifyUsers(event.data)
To contribute a change,check out the contributing guide.
© Google, 2025. Licensed underApache License.
About
Resources
License
Code of conduct
Contributing
Security policy
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.