Python 3.7 is supported now.
Steps to create one via the google cloud console:

  1. go to google cloud functions in the google cloud console and click on create function

2.specify the function's properties

  1. select trigger

4.change runtime to python 3.7

  1. enter your cloud function logic and entry point

  2. enter python dependencies in requirements.txt

Answer from Adarsh on Stack Overflow
🌐
Google
codelabs.developers.google.com › codelabs › cloud-functions-python-http
HTTP Cloud Functions in Python | Google Codelabs
March 16, 2026 - You can open the file with your preferred command line editor (nano, vim, or emacs). You can also open it in the Cloud Shell Editor after setting the source directory as a workspace: ... FUNCTION_NAME="hello_world" gcloud functions deploy $FUNCTION_NAME \ --runtime python312 \ --trigger-http \ --allow-unauthenticated
🌐
GitHub
github.com › MartinSahlen › cloud-functions-python
GitHub - MartinSahlen/cloud-functions-python: Get some python in google cloud functions · GitHub
py-cloud-fn is a CLI tool that allows you to write and deploy Google cloud functions in pure python, supporting python 2.7 and 3.5 (thanks to @MitalAshok for helping on the code compatibility).
Starred by 204 users
Forked by 28 users
Languages   Python 86.8% | JavaScript 12.5% | Shell 0.7%
🌐
Firebase
firebase.google.com › docs › reference › functions › 2nd-gen › python
Firebase Python SDK for Cloud Functions
March 18, 2026 - Skip to main content · English · Español – América Latina · Indonesia · Português – Brasil · 中文 – 简体 · 日本語 · 한국어 · Blog Go to console · Sign in
🌐
GitHub
github.com › GoogleCloudPlatform › functions-framework-python
GitHub - GoogleCloudPlatform/functions-framework-python: FaaS (Function as a service) framework for writing portable Python functions · GitHub
An open source FaaS (Function as a service) framework for writing portable Python functions -- brought to you by the Google Cloud Functions team.
Starred by 966 users
Forked by 120 users
Languages   Python
🌐
Medium
medium.com › @timhberry › getting-started-with-python-for-google-cloud-functions-646a8cddbb33
Getting Started with Python for Google Cloud Functions | by Tim Berry | Medium
January 2, 2020 - Cloud Functions are small pieces of code that execute in an event-driven manner. They do one small thing very efficiently in reaction to a trigger — usually an HTTP request. The neat thing is you manage zero infrastructure and usually only ...
🌐
Towards Data Science
towardsdatascience.com › home › latest › deploying python functions with google cloud functions
Deploying python functions with Google Cloud Functions | Towards Data Science
January 19, 2025 - Entry point: the python function that will be called first during the execution of your code. Source code: the source of your code. Let’s use inline editor in this example, but in a second article we will use cloud repositories.
Find elsewhere
🌐
GeeksforGeeks
geeksforgeeks.org › python › how-to-use-google-cloud-function-with-python
How to Use Google Cloud Function with Python ? - GeeksforGeeks
July 23, 2025 - Google Cloud Functions provides a way to run small pieces of code in response to cloud events without managing servers. If you're a developer looking to automate tasks, process data or build APIs, Python is a great language for working with ...
🌐
Medium
nakamasato.medium.com › cloud-functions-series3-run-cloud-functions-in-local-python-158044fc4df9
Cloud Functions Series3: Run Cloud Functions in local (Python) | by Masato Naka | Medium
June 29, 2024 - Cloud Functions uses the open-source functions-framework to wrap your functions in a persistent HTTP application. The Function Framework can run on supported platforms including, Cloud Functions, Cloud Run, and local environments.
🌐
OneUptime
oneuptime.com › home › blog › how to write and deploy python cloud functions gen 2
How to Write and Deploy Python Cloud Functions Gen 2
February 17, 2026 - This post walks through writing Cloud Functions in Python with the Functions Framework, testing locally, and deploying to GCP.
🌐
Firebase
firebase.google.com › documentation › cloud functions
Cloud Functions for Firebase
4 days ago - Cloud Functions for Firebase is a serverless framework that lets you automatically run backend code in response to events triggered by background events, HTTPS requests, the Admin SDK, or Cloud Scheduler jobs. Your JavaScript, TypeScript or Python code is stored on Google Cloud infrastructure ...
🌐
Davidmuraya
davidmuraya.com › blog › python-google-cloud-functions-guide
How to Run Python Scripts in the Cloud with Google Cloud Functions
December 3, 2025 - Google Cloud Functions are a simple way to run code in the cloud without managing servers. You provide a piece of code, and Google runs it for you in response to an event, like an HTTP request or a file upload.
🌐
PyPI
pypi.org › project › google-cloud-functions
google-cloud-functions · PyPI
Cloud Functions: is a scalable pay as you go Functions-as-a-Service (FaaS) to run your code with zero server management.
      » pip install google-cloud-functions
    
🌐
Udemy
udemy.com › development
Google Cloud Functions (FaaS) with Python from zero to hero!
January 23, 2021 - In this crash course, you will learn lots of things like: Implement Google Cloud Functions in Python Use an environment, version control system (Git & Github) and adding meaningful documentation (Markdown) Test Cloud Functions locally Deploy Cloud Functions from the terminal Test deployed Cloud ...
Rating: 4 ​ - ​ 236 votes
🌐
GitHub
github.com › GoogleCloudPlatform › python-docs-samples › blob › main › functions › helloworld › main.py
python-docs-samples/functions/helloworld/main.py at main · GoogleCloudPlatform/python-docs-samples
# [START functions_helloworld_storage] def hello_gcs(event, context): """Background Cloud Function to be triggered by Cloud Storage. This generic function logs relevant data when a file is changed, and works for all Cloud Storage CRUD operations.
Author   GoogleCloudPlatform
🌐
Zesty
zesty.io › mindshare › developer-how-tos › how-to-write-google-cloud-functions-with-python-3
How To Write Google Cloud Functions with Python 3
$ gcloud beta functions deploy getUserDetails --runtime python37 --trigger-http --project <projectId> Where <projectId> is the ID of your Google Cloud project.
🌐
Simonprickett
simonprickett.dev › writing-google-cloud-functions-with-python-3
Writing Google Cloud Functions with Python 3 | simonprickett.dev
July 26, 2018 - $ gcloud beta functions deploy getUserDetails --runtime python37 --trigger-http --project <projectId> Where <projectId> is the ID of your Google Cloud project.
🌐
DEV Community
dev.to › googlecloud › portable-cloud-functions-with-the-python-functions-framework-a6a
Portable Cloud Functions with the Python Functions Framework - DEV Community
February 17, 2021 - You can think of the Functions Framework for a given language as a wrapper around a single function in that language, which handles everything necessary for your function to receive HTTP requests or Cloud Events such as Pub/Sub. The Functions Framework for Python joins previously open-sourced frameworks for several other popular languages.