--- id: zappa version: "0.62.1" license: MIT License license_treatment: permissive maintenance: active --- # zappa — Server-less Python Web Services for AWS Lambda and API Gateway License: permissive · Maintenance: active · Downloads: 248.5K/mo ## What it is and what it does Zappa is a deployment tool that takes a Python web application (Django, Flask, FastAPI, Starlette, or any WSGI/ASGI framework) and automatically packages it for AWS Lambda, handling the infrastructure setup and request routing through API Gateway. Instead of running a persistent server, each HTTP request spawns a short-lived Lambda function instance, which means you pay only for the milliseconds of compute time you actually use and never manage server uptime or scaling. The tool abstracts away Lambda and API Gateway configuration, offering a CLI workflow (init, deploy, update, rollback, undeploy) similar to traditional PaaS platforms. It supports event-driven tasks, scheduled jobs via EventBridge, environment variable management, SSL/TLS certificates, VPC access, EFS mounting, and custom IAM roles. The package depends on boto3 for AWS API calls, troposphere for CloudFormation templates, and utilities like pyyaml, requests, and tqdm for configuration and progress reporting. Use it for: - Deploy a Django or Flask REST API without managing servers, paying only for request processing time. - Run scheduled background tasks (cron jobs) on Lambda using EventBridge rules configured via Zappa. - Host a FastAPI or Starlette async application on Lambda with automatic ASGI-to-Lambda request translation. - Build event-driven microservices that respond to S3, DynamoDB, SNS, or SQS events without provisioning infrastructure. - Migrate an existing WSGI application to serverless with minimal code changes using Zappa's transparent deployment. - Scale a web application to handle traffic spikes without manual load-balancer or auto-scaling configuration. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Zappa packages and deploys Python WSGI and ASGI web applications to AWS Lambda and API Gateway, handling serverless infrastructure provisioning and request routing automatically. Yes, if you are deploying a Python web application to AWS and want to avoid server management and pay-per-use pricing. The active maintenance, permissive license, low install friction, and broad framework support make it a solid choice. Consider it especially valuable for microservices, APIs, and applications with variable traffic. No if you require on-premises or non-AWS hosting, or if your application has hard real-time latency requirements incompatible with Lambda cold starts. ## Install pip install zappa uv add zappa poetry add zappa ## Installing zappa Before you install: Low friction: pure Python wheel with no compiled dependencies. Actively maintained with recent commits and 3691 repository stars. Supports current Python versions (3.9–3.14) and actively developed. License in practice: MIT License (permissive): you may use, modify, and distribute Zappa freely in commercial and private projects with minimal restrictions. Quickstart: pip install zappa zappa init zappa deploy production Requires AWS credentials configured locally (via AWS CLI, environment variables, or IAM role) and an active AWS account with Lambda and API Gateway permissions. Verify before relying: - Whether the package handles all edge cases for cold-start latency optimization in production workloads. - Current status of WebSocket and ASGI support maturity relative to WSGI deployments. - Whether the experimental Cold Starts feature is production-ready. ## Package facts - License: MIT License (permissive) - Python support: supports_current - Install friction: low - Maintenance: active - Downloads: 248.5K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags deploy python to aws lambda, serverless wsgi asgi deployment, django flask fastapi on lambda, aws lambda api gateway python, serverless python web framework, lambda deployment automation, event-driven python on aws, serverless-deployment, aws-lambda, wsgi-asgi [View on SkillFed](https://skillfed.io/packages/zappa) · [View on PyPI](https://pypi.org/project/zappa/)