GoogleCloudPlatform / functions-framework-python

FaaS (Function as a service) framework for writing portable Python functions
https://pypi.org/p/functions-framework/
Apache License 2.0
875 stars 118 forks source link

Firebase Functions Support #267

Open kornha opened 1 year ago

kornha commented 1 year ago

Hello,

I wish to use firebase for my functions deployment. I can currently run the functions, without functions_framework, with

firebase emulators:start

This works fine but I cannot use this for local debugging (say I'm in VSCode). I can try; firebase emulators:start --inspect-functions but unfortunately I get an error --inspect-functions only supported for Node.js runtimes. My next option is to use functions_framework for local debugging. This is great, but it seems it will only work with a single function (which is incomplete for development needs), unless I install minicube or some other product. However, this is out of sync with my firebase functions, which do not use minicube.

My question is, is there a way to run multiple functions for firebase functions that I can debug, using functions_framework?

jesse-apollo commented 7 months ago

It would be great if we could fix this basic ask. There really isn't a better way to unit test python Firebase functions. At least if someone on the team has a workaround that would be great.