Skip to content

ekalosak/firebase-functions-python

This branch is 3 commits ahead of, 43 commits behind firebase/firebase-functions-python:main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

7ff2386 · Sep 26, 2023
May 9, 2023
Jun 20, 2023
Jul 17, 2023
Jun 20, 2023
Jun 20, 2023
Sep 26, 2023
Aug 4, 2023
Jun 20, 2023
Apr 19, 2023
Sep 12, 2022
May 5, 2023
Jan 26, 2023
Mar 14, 2023
Sep 14, 2022
Apr 26, 2023

Repository files navigation

Cloud Functions for Firebase Python SDK (Public Preview)

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, 2023. Licensed under Apache License.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.4%
  • HTML 0.6%