Skip to content

RealKinetic/gcp_cloud_functions_py3_demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages