description Zappa (Python) Overview
Zappa is an open-source Python project for deploying WSGI-compatible web applications to AWS Lambda and Amazon API Gateway. It was designed for frameworks such as Flask and Django and automates parts of packaging, deployment, routing, and related AWS configuration. Zappa is intended for developers who want to place a conventional Python web application on a serverless runtime, subject to the limits of Lambda and API Gateway.
help Zappa (Python) FAQ
Which Python web frameworks can Zappa deploy?
Zappa deploys WSGI and ASGI applications to AWS Lambda behind API Gateway, including Flask, Django, FastAPI, and Starlette. It is aimed at adapting an existing Python web application to serverless infrastructure rather than forcing a new framework. [Zappa repository](https://github.com/zappa/Zappa)
What commands are used to deploy a project with Zappa?
A typical first deployment uses `pip install zappa`, `zappa init`, and `zappa deploy`. Zappa stores deployment settings in a file such as `zappa_settings.json` or `zappa_settings.yaml`.
Does Zappa run a permanent Python server?
No, the application runs in AWS Lambda and is invoked through API Gateway or another configured event source. Durable files and state should therefore live in services such as Amazon S3, DynamoDB, or a managed database rather than the temporary Lambda filesystem.
How is Zappa different from AWS Chalice?
Zappa is mainly a deployment adapter for existing WSGI or ASGI applications, while Chalice is an AWS Python microframework where routes are declared directly in Python with decorators. Chalice also generates IAM policies for its declared resources, while Zappa focuses on packaging and deploying the application.
explore Explore More
Reviews & Comments
Write a Review
Be the first to review
Share your thoughts with the community and help others make better decisions.