https callable functions in python

625 views
Skip to first unread message

Mark Turner

unread,
Aug 7, 2020, 9:32:41 AM8/7/20
to Firebase Google Group
Is it possible to write https callable functions in python? The documention only refers to javascript. https://firebase.google.com/docs/functions/callable

Sam Stern

unread,
Aug 7, 2020, 9:36:24 AM8/7/20
to Firebase Google Group
Hi Mark,

Callable functions are powered by the firebase-functions SDK, which only supports writing functions in Node.js.  That said callable functions are simply HTTP functions with a certain call/response pattern and authentication headers.  It may be useful to you to read how we define them in the open-source SDK:
https://github.com/firebase/firebase-functions/blob/master/src/providers/https.ts#L418

If your Python function behaves the same as our Node.js functions, you'll be able to call it from your app with the Callable Functions SDK!

- Sam

On Fri, Aug 7, 2020 at 2:32 PM Mark Turner <ma...@favespro.com> wrote:
Is it possible to write https callable functions in python? The documention only refers to javascript. https://firebase.google.com/docs/functions/callable

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/5cc4e77b-a27b-4bcb-925f-4049433224b0n%40googlegroups.com.

Mark Turner

unread,
Aug 7, 2020, 10:24:34 AM8/7/20
to Firebase Google Group
Thanks for the quick reply, Sam. I'll look into that.

Cheers,
Mark

Mark Turner

unread,
Aug 7, 2020, 10:44:42 AM8/7/20
to Firebase Google Group

Sam Stern

unread,
Aug 7, 2020, 11:03:45 AM8/7/20
to Firebase Google Group
Hey Mark,

Yes that looks like exactly what I was suggesting!  You can probably go ahead and copy their implementation, it looks good to me.

- Sam

Mark Turner

unread,
Aug 7, 2020, 11:14:25 AM8/7/20
to Firebase Google Group
Awesome! I'll give it a try. Thanks and have a great weekend!

/M
Reply all
Reply to author
Forward
0 new messages