-
Notifications
You must be signed in to change notification settings - Fork 43
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
Add Python Lambda #1599
Add Python Lambda #1599
Conversation
d235df5
to
1f480c4
Compare
@@ -0,0 +1,4 @@ | |||
astropy |
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.
where is this being used?
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.
It isn't yet, but it will be.
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.
Would you prefer that I remove this?
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.
Seems straight-forward enough, though I am not familiar with FastAPI and Magnum. I did some reading on the former and I get that part now. Is this the latter?
They were new to me too, but @jak574 has used them (see #1584). The advantage of FastAPI over more common Python web frameworks like Flask or Django is that FastAPI provides an auto-generated OpenAPI spec and API browser (derived from Python type annotations) whereas Flask or Django require third-party extensions and a bunch of boilerplate to do that.
Yes. It is an adapter that allows you to run any Python ASGI app in a serverless context (e.g. AWS Lambda). |
Ah now that makes more sense. I was reading it as magnum this whole time |
It's "Mangum" not Magnum. https://mangum.io Basically a ASGI layer to allow FastAPI to work with AWS Lambda. |
Fixes #1583.
Depends on architect/hydrate#181 and architect/sandbox#727.