Boilerplate for HTTP-triggered Python Cloud Functions on GCP.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gcloudignore
.gitignore
README.md
main.py
requirements.txt

README.md

Boilerplate for HTTP Google Cloud Functions Python 3.7 runtime

A simple main.py and associated supporting code to help smooth local development with HTTP triggered functions.

Files listed in .gcloudignore are ignored when deploying to GCF through the gcloud command line (see documentation).


Cloud Functions passes the Flask request object to your function, along with additional paths in the URL. For example, a HTTP Function as follows:

https://asia-northeast1-project-225512.cloudfunctions.net/function-1

could also be called with additional parameters like this:

https://asia-northeast1-project-225512.cloudfunctions.net/function-1/more/parameters/in/url (accessed with request.path).

This can be helpful in certain functions that require GET and caching setups that don't cache by query strings.