Python Google Cloud Functions have been introduced publically in Q3-Q4 2018.
Deploying them takes time (2-10 minutes with gcloud functions deploy
.
Actually, a Python cloud function equates to a Flask handler.
Thus, you can test them cloud function first on your own computer.
This spares you from long deployments, difficult step-by-step debugging and bad GCP weather.
Here is how:
- keep the traditional Python Cloud Function
requirements.txt
andmain.py
untouched.