From b74be1c9c9933d46abd541f3f222d57fa44784d6 Mon Sep 17 00:00:00 2001 From: FunctionsAPI Date: Tue, 21 Jan 2025 11:10:51 +0000 Subject: [PATCH] Automatic push from FunctionsAPI --- README.md | 3 +-- main.py | 10 ++++++++++ requirements.txt | 2 ++ 3 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 main.py create mode 100644 requirements.txt diff --git a/README.md b/README.md index 6a8d7d5..ca9945f 100644 --- a/README.md +++ b/README.md @@ -1,2 +1 @@ -# 421234f4865e4e2db8ed0e71bb2373c1 - +# python hello-world diff --git a/main.py b/main.py new file mode 100644 index 0000000..25a18ec --- /dev/null +++ b/main.py @@ -0,0 +1,10 @@ +def print_name(name): + # Print the name + print("The name is:", name) + +def main(request): + request_json = request.get_json(silent=True) + print(request_json) + name = "Ali" # You can replace this with any name + print_name(name) + return name diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..55e8614 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,2 @@ +functions-framework==1.4.3 +markupsafe==2.0.1