From c05920d7f58c9d004859423131cc24a6f5a6f4cc Mon Sep 17 00:00:00 2001 From: Grant Timmerman Date: Wed, 9 Jun 2021 08:14:34 -0500 Subject: [PATCH 1/2] docs: mention flask as the base framework Signed-off-by: Grant Timmerman --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8f6e4fa7..d689d194 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Functions Framework for Python [![Build Status](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2FGoogleCloudPlatform%2Ffunctions-framework-python%2Fbadge&style=flat)](https://actions-badge.atrox.dev/GoogleCloudPlatform/functions-framework-python/goto) [![PyPI version](https://badge.fury.io/py/functions-framework.svg)](https://badge.fury.io/py/functions-framework) -An open source FaaS (Function as a service) framework for writing portable +An open source FaaS (Function as a service) framework based on [Flask](https://flask.palletsprojects.com/en/1.1.x/) for writing portable Python functions -- brought to you by the Google Cloud Functions team. The Functions Framework lets you write lightweight functions that run in many From 6de57ecd5dd4ca31928c1bd9fe64bbd780ec951a Mon Sep 17 00:00:00 2001 From: Grant Timmerman Date: Tue, 22 Jun 2021 10:43:05 -0500 Subject: [PATCH 2/2] docs: move flask doc note Signed-off-by: Grant Timmerman --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d689d194..61b58a7b 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Functions Framework for Python [![Build Status](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2FGoogleCloudPlatform%2Ffunctions-framework-python%2Fbadge&style=flat)](https://actions-badge.atrox.dev/GoogleCloudPlatform/functions-framework-python/goto) [![PyPI version](https://badge.fury.io/py/functions-framework.svg)](https://badge.fury.io/py/functions-framework) -An open source FaaS (Function as a service) framework based on [Flask](https://flask.palletsprojects.com/en/1.1.x/) for writing portable +An open source FaaS (Function as a service) framework for writing portable Python functions -- brought to you by the Google Cloud Functions team. The Functions Framework lets you write lightweight functions that run in many @@ -59,6 +59,8 @@ def hello(request): return "Hello world!" ``` +> Your function is passed a single parameter, `(request)`, which is a Flask [`Request`](http://flask.pocoo.org/docs/1.0/api/#flask.Request) object. + Run the following command: ```sh