Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python 3 Google Cloud Function Demo

Local

Create a virtual environment for your python function(s).

$ mkvirtualenv -a $PWD -p `which python3` py3cloundfunc

Install dependencies locally

$ pip install -r requirements.txt

Run the app

$ python main.py

View it in the browser

$ open http://localhost:8080

Manual Deployment

Deploy it

$ gcloud functions deploy hello_pubsub --runtime python37 --trigger-resource TOPIC_NAME --trigger-event google.pubsub.topic.publish

About

A GCP Cloud Functions Python 3 Demo Pub Sub Consumer Function

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages