Skip to content

docs(python callable functions): write the README - #1342

Merged
jhuleatt merged 2 commits into
mainfrom
docs/python-callable-functions-readme
Oct 7, 2026
Merged

jhuleatt merged 2 commits into
mainfrom
docs/python-callable-functions-readme

Conversation

@jhuleatt

@jhuleatt jhuleatt commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

Python/quickstarts/callable-functions/README.md was empty, unlike its Node.js counterpart. #1122 also asks how to test a Python callable function, because the Testing tab in the Google Cloud console doesn't work for it.

The README now describes the two functions, how to deploy them, and how to call them from a web app and with curl against the emulator. It explains that callable functions expect the request body under a data key, which is why the console's test tab can't call them.

Fixes #1122

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the README for the Python Firebase HTTPS Callable functions Quickstart, providing comprehensive instructions on deployment, testing, and functions code. The review feedback suggests two useful documentation improvements: explicitly mentioning the Blaze billing plan requirement to prevent deployment failures, and adding Windows-specific commands for virtual environment setup to improve cross-platform usability.


## Deploy

1. Create a Firebase project in the [Firebase console](https://console.firebase.google.com) and enable the **Realtime Database**.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Cloud Functions for Firebase (2nd gen) requires the project to be on the Blaze (pay-as-you-go) billing plan. It is highly recommended to mention this requirement here so users don't encounter deployment failures due to being on the Spark plan.

Suggested change
1. Create a Firebase project in the [Firebase console](https://console.firebase.google.com) and enable the **Realtime Database**.
1. Create a Firebase project in the [Firebase console](https://console.firebase.google.com), switch it to the **Blaze (pay-as-you-go) plan**, and enable the **Realtime Database**.

Comment on lines +24 to +25
python3 -m venv venv
source venv/bin/activate

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

On Windows, the commands to create and activate a virtual environment are different (using python instead of python3 and venv\Scripts\activate instead of source venv/bin/activate). Adding inline comments for Windows users improves the cross-platform usability of this quickstart.

Suggested change
python3 -m venv venv
source venv/bin/activate
python3 -m venv venv # On Windows: python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate

The curl section is a plain HTTP request too, so the old sentence
contradicted it. The Testing tab fails because it doesn't follow the
callable request format.
@jhuleatt
jhuleatt merged commit a6396d2 into main Oct 7, 2026
17 checks passed
@jhuleatt
jhuleatt deleted the docs/python-callable-functions-readme branch October 7, 2026 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[DOCS] for sample: python callable functions

1 participant