#🔒 Firebase python functions, how do i figure out the argument?

4 messages · Page 1 of 1 (latest)

naive spear
#

I'm working on a project for uni. First time ever writing on multiple languages and using cloud and I'm completely lost.

I have a flutter front end with firebase as the backend.
I'd like to run some python functions in the cloud, but i'm not sure what the argument for my functions would be.

The idea is pretty simple:

  1. user inputs some kind of data (text/image/url - text or video)
  2. depending on what the input is i will call one of 4 functions from the firebase
  3. process the data in the cloud
  4. save it into the database.

But I cannot figure for the life of me what argument is going to be received by the function, if it's jus raw data, some kind of request or what.

Do I just build the logic and testing for they python code with an empty main function and figure out later what i need to do with it?
Do I implement the flutter input and figure out what info is sent?

How would someone normally approach this?

ancient moatBOT
#

@naive spear

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

ancient moatBOT
#

@naive spear

Python help channel closed for inactivity

This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.