skillfed

zappa

Server-less Python Web Services for AWS Lambda and API Gateway

zappa v0.62.1 248.5K downloads/30d#8,663 on PyPI3,691
Permissive license MIT License Active released

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 on this page — 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

zappa on PyPI

pip

pip install zappa

uv

uv add zappa

poetry

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 the current Python release (>=3.9)
Install friction low — pure-Python wheel
Runtime dependencies 17 — argcomplete, boto3, durationpy, hjson, jmespath, pip, placebo, python-dateutil, python-slugify, pyyaml, requests, toml, tqdm, troposphere, werkzeug, wheel, setuptools
Maintenance actively maintained — 156 days since the last release
Last repo commit
First released
Downloads 248,545/month — #8,663 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: zappa-0.62.1-py3-none-any.whl

Environment :: ConsoleFramework :: DjangoFramework :: Django :: 4.2Framework :: Django :: 5.2License :: OSI Approved :: Apache Software LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.9Topic :: Internet :: WWW/HTTPTopic :: Internet :: WWW/HTTP :: Dynamic Content

Tags

deploy python to aws lambdaserverless wsgi asgi deploymentdjango flask fastapi on lambdaaws lambda api gateway pythonserverless python web frameworklambda deployment automationevent-driven python on aws
serverless-deploymentaws-lambdawsgi-asgi

More WWW/HTTP packages