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
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
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