jordaneremieff / Mangum
Licence: mit
AWS Lambda & API Gateway support for ASGI
Stars: ✭ 475
Programming Languages
python
139335 projects - #7 most used programming language
Projects that are alternatives of or similar to Mangum
Serverless Next.js
⚡ Deploy your Next.js apps on AWS Lambda@Edge via Serverless Components
Stars: ✭ 2,977 (+526.74%)
Mutual labels: api-gateway, aws, serverless, aws-lambda, lambda
Zappa
Serverless Python
Stars: ✭ 11,859 (+2396.63%)
Mutual labels: api-gateway, serverless, aws-lambda, lambda, django
Serverless Es Logs
A Serverless plugin to transport logs to ElasticSearch
Stars: ✭ 51 (-89.26%)
Mutual labels: api-gateway, aws, serverless, aws-lambda, lambda
Zappa
Serverless Python
Stars: ✭ 224 (-52.84%)
Mutual labels: api-gateway, serverless, aws-lambda, lambda, django
Up
Up focuses on deploying "vanilla" HTTP servers so there's nothing new to learn, just develop with your favorite existing frameworks such as Express, Koa, Django, Golang net/http or others.
Stars: ✭ 8,439 (+1676.63%)
Mutual labels: api-gateway, aws, serverless, aws-lambda, lambda
Aws Serverless Ecommerce Platform
Serverless Ecommerce Platform is a sample implementation of a serverless backend for an e-commerce website. This sample is not meant to be used as an e-commerce platform as-is, but as an inspiration on how to build event-driven serverless microservices on AWS.
Stars: ✭ 469 (-1.26%)
Mutual labels: api-gateway, aws, serverless, lambda
Aws Lambda Fastify
Insipired by aws-serverless-express to work with Fastify with inject functionality.
Stars: ✭ 190 (-60%)
Mutual labels: api-gateway, aws, serverless, lambda
Serverless Express
Run Node.js web applications and APIs using existing application frameworks on AWS #serverless technologies such as Lambda, API Gateway, Lambda@Edge, and ALB.
Stars: ✭ 4,265 (+797.89%)
Mutual labels: api-gateway, serverless, aws-lambda, lambda
Claudia
Deploy Node.js projects to AWS Lambda and API Gateway easily
Stars: ✭ 3,690 (+676.84%)
Mutual labels: api-gateway, aws, serverless, aws-lambda
Hexaville
The modern serverless web application engine and framework for Swift
Stars: ✭ 123 (-74.11%)
Mutual labels: api-gateway, aws, serverless, lambda
Serverless Sinatra Sample
Demo code for running Ruby Sinatra on AWS Lambda
Stars: ✭ 195 (-58.95%)
Mutual labels: api-gateway, serverless, aws-lambda, lambda
Apilogs
Easy logging and debugging for Amazon API Gateway and AWS Lambda Serverless APIs
Stars: ✭ 216 (-54.53%)
Mutual labels: api-gateway, aws, aws-lambda, lambda
Serverless Aws Alias
Alias support for Serverless 1.x
Stars: ✭ 171 (-64%)
Mutual labels: api-gateway, aws, serverless, aws-lambda
Serverless Rust
⚡ 🦀 a serverless framework plugin for rustlang applications
Stars: ✭ 386 (-18.74%)
Mutual labels: aws, serverless, aws-lambda, lambda
Aws Auto Cleanup
Open-source application to programmatically clean your AWS resources based on a whitelist and time to live (TTL) settings
Stars: ✭ 276 (-41.89%)
Mutual labels: aws, serverless, aws-lambda, lambda
Shep
A framework for building JavaScript Applications with AWS API Gateway and Lambda
Stars: ✭ 376 (-20.84%)
Mutual labels: api-gateway, aws, serverless, lambda
Aws Mobile React Native Starter
AWS Mobile React Native Starter App https://aws.amazon.com/mobile
Stars: ✭ 2,247 (+373.05%)
Mutual labels: api-gateway, aws, serverless, lambda
Serverless Sharp
Serverless image optimizer for S3, Lambda, and Cloudfront
Stars: ✭ 102 (-78.53%)
Mutual labels: api-gateway, serverless, aws-lambda, lambda
Serverless Architectures Aws
The code repository for the Serverless Architectures on AWS book
Stars: ✭ 120 (-74.74%)
Mutual labels: api-gateway, aws, serverless, aws-lambda
Mangum
Mangum is an adapter for using ASGI applications with AWS Lambda & API Gateway. It is intended to provide an easy-to-use, configurable wrapper for any ASGI application deployed in an AWS Lambda function to handle API Gateway requests and responses.
Documentation: https://mangum.io/
Features
-
Compatibility with ASGI application frameworks, such as Starlette, FastAPI, and Quart.
-
Support for binary media types and payload compression in API Gateway using GZip or Brotli.
-
Works with existing deployment and configuration tools, including Serverless Framework and AWS SAM.
-
Startup and shutdown lifespan events.
Requirements
Python 3.6+
Installation
pip install mangum
Example
from mangum import Mangum
async def app(scope, receive, send):
await send(
{
"type": "http.response.start",
"status": 200,
"headers": [[b"content-type", b"text/plain; charset=utf-8"]],
}
)
await send({"type": "http.response.body", "body": b"Hello, world!"})
handler = Mangum(app)
Or using a framework.
from fastapi import FastAPI
from mangum import Mangum
app = FastAPI()
@app.get("/")
def read_root():
return {"Hello": "World"}
@app.get("/items/{item_id}")
def read_item(item_id: int, q: str = None):
return {"item_id": item_id, "q": q}
handler = Mangum(app)
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].