-
Notifications
You must be signed in to change notification settings - Fork 124
docs: mention flask as the base framework #134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: Grant Timmerman <timmerman+devrel@google.com>
|
I don't think this is sufficient to fix #80? That issue is about documenting the type of the |
Do you have an idea of how we can fix this? Should we link this instead? https://flask.palletsprojects.com/en/1.1.x/api/#flask.request |
|
In #80 I pointed out that we already do this at https://cloud.google.com/functions/docs/concepts/events-triggers#functions_parameters-python, which says:
We could copy/paste this into the docs here, or we could just link to https://cloud.google.com/functions/docs/concepts/events-triggers#functions_parameters-python which also documents this for background functions as well. |
Yes, Cloud Functions does talk about this in more detail. However, the Function Frameworks are supposed to be runnable outside of Cloud Functions. I think it's not reasonable to expect users to go find that page, and it's reasonable to talk about the fact Flask is used, especially for new developers. Ruby, Node, other languages state info like this as well. |
|
For me, I'm happy as long as the Flask Request is documented. My two cents here is that we should copy/paste the Flask request bit into this repo. At the end of the day, Functions Framework decides what the request format is, and the Google Cloud Docs get updated to match, so this repo should be the most up-to-date source of truth. |
|
@di Can you suggest an alternative way to mention Flask for the user's function handler in the README? |
|
In #134 (comment) I said that we could copy/paste the following into the docs here from the Cloud Functions docs:
Is there any reason that we don't want to do that? |
Signed-off-by: Grant Timmerman <timmerman+devrel@google.com>
That's fine. I think I've update the PR to fit your suggestion. |
di
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, not sure why conformance tests are now failing though.
Documents the base request framework used for this library.
Fixes #80
R @anniefu