Metadata-Version: 2.4
Name: firebase_functions
Version: 0.6.0
Summary: Firebase Functions Python SDK
Author: Firebase Team
License-Expression: Apache-2.0
Project-URL: Homepage, https://github.com/firebase/firebase-functions-python
Project-URL: Documentation, https://firebase.google.com/docs/functions
Project-URL: Repository, https://github.com/firebase/firebase-functions-python
Project-URL: Bug Tracker, https://github.com/firebase/firebase-functions-python/issues
Keywords: firebase,functions,google,cloud
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Build Tools
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: flask>=2.1.2
Requires-Dist: functions-framework>=3.0.0
Requires-Dist: firebase-admin>=6.0.0
Requires-Dist: pyyaml>=6.0
Requires-Dist: typing-extensions>=4.4.0
Requires-Dist: cloudevents<2.0.0,>=1.2.0
Requires-Dist: flask-cors>=3.0.10
Requires-Dist: pyjwt[crypto]>=2.5.0
Requires-Dist: google-events==0.5.0
Requires-Dist: google-cloud-firestore>=2.11.0
Dynamic: license-file

# Cloud Functions for Firebase Python SDK

The [`firebase-functions`](https://pypi.org/project/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](https://firebase.google.com/docs/functions/) or [check out our samples](https://github.com/firebase/functions-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

```python
# 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](.github/CONTRIBUTING.md).

## License

© Google, 2025. Licensed under [Apache License](LICENSE).

