songololo
songololo

Reputation: 4954

How to access Google Cloud Platform Firestore triggers from Python runtime cloud functions

GCP has added support for the Python runtime to cloud functions.

GCP has also extended Firestore to the general GCP ecosystem (as opposed to solely being available for Firebase)

However, the documentation for how to listen to Firestore triggers from python cloud functions is missing, and is currently only provided for node.

Is there (or will there be) a way to access Firestore triggers from python cloud functions?

Upvotes: 5

Views: 2343

Answers (3)

songololo
songololo

Reputation: 4954

GCP has now released beta support for Python runtime functions supporting firestore triggers.

Google Cloud Firestore Triggers

Upvotes: 2

Iñigo
Iñigo

Reputation: 2670

After checking I saw that they have already been implemented for Python3.7. I tested it myself through the UI and it worked. I also saw this in the documentation [1] tells that it's implemented:

--runtime RUNTIME - The name of the runtime you are using, such as nodejs6, nodejs8, or python37.

Remember that both Firestore triggers and CF with Python are on Beta.

NOTE: My tests were using GCP, no Firebase.

Upvotes: 0

Doug Stevenson
Doug Stevenson

Reputation: 317542

There is currently no support for Firestore (or other Firebase product event triggers) in Cloud Functions using Python.

There are no timelines available promising when support might be available in the future.

Upvotes: 2

Related Questions