Mangum is an adapter for running ASGI applications in AWS Lambda to handle Function URL, API Gateway, ALB, and Lambda@Edge events. Event handlers for API Gateway HTTP and REST APIs, Application Load Balancer, Function URLs, and CloudFront Lambda@Edge. Compatibility with ASGI application frameworks, such as Starlette, FastAPI, Quart and Django. 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. The heart of Mangum is the adapter class. It is a configurable wrapper that allows any ASGI application (or framework) to run in an AWS Lambda deployment. The adapter accepts a number of keyword arguments to configure settings related to logging, HTTP responses, ASGI lifespan, and API Gateway configuration.

Features

  • Startup and shutdown lifespan events
  • Support for binary media types and payload compression in API Gateway using GZip or Brotli
  • Requires Python 3.7+
  • Compatibility with ASGI application frameworks, such as Starlette, FastAPI, Quart and Django
  • Event handlers for API Gateway HTTP and REST APIs
  • Works with existing deployment and configuration tools

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow Mangum

Mangum Web Site

Other Useful Business Software
Try Google Cloud Risk-Free With $300 in Credit Icon
Try Google Cloud Risk-Free With $300 in Credit

No hidden charges. No surprise bills. Cancel anytime.

Use your credit across every product. Compute, storage, AI, analytics. When it runs out, 20+ products stay free. You only pay when you choose to.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Mangum!

Additional Project Details

Programming Language

Python

Related Categories

Python Software Development Software, Python Frameworks, Python Load Balancers, Python API Gateways

Registered

2022-09-05