aws-wsgi
WSGI adapter for AWS API Gateway/Lambda Proxy Integration
What it is and what it does
aws-wsgi is a bridge that lets you run WSGI web applications inside AWS Lambda functions triggered by API Gateway. It translates the event and context objects that Lambda receives into standard WSGI request/response pairs, allowing existing web framework code to work without modification in a serverless environment.
The package has been abandoned since 2020-07-07 and its repository is archived. It declares support only for Python 2.7, 3.3, 3.4, and 3.5, all end-of-life versions. While it may still work on modern Python versions, there are no guarantees, and no one is maintaining it to handle breaking changes in AWS Lambda runtimes or API Gateway behavior.
Use it for:
- Maintain legacy code already using this package without rewriting Lambda handlers.
- Prototype serverless applications using familiar WSGI patterns when refactoring is not immediately feasible.
- Handle binary responses from WSGI applications on Lambda by specifying base64_content_types.
- Run existing WSGI applications on Lambda with minimal code changes during migration.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Adapts WSGI-compatible Python web frameworks to run as AWS Lambda functions behind API Gateway's proxy integration.
No, unless you are maintaining legacy code already using this package. The project is abandoned (last release 2020-07-07, repository archived), declares support only for end-of-life Python versions, and receives no security or compatibility updates. For new projects, use a maintained alternative or write Lambda handlers directly. If you must use it, verify compatibility with your Python version and AWS Lambda runtime before deploying.
Install
aws-wsgi on PyPI
pip
pip install aws-wsgiuv
uv add aws-wsgipoetry
poetry add aws-wsgiInstalling aws-wsgi
Before you install
Installation is straightforward with no runtime dependencies. However, the package is abandoned—the repository is archived and the last commit was 2024-03-13, with no releases since 2020-07-07. Maintenance has ceased, so security patches or compatibility fixes are unlikely.
License in practice
Licensed under MIT (permissive), so you can use, modify, and distribute it freely with minimal restrictions.
Quickstart
pip install aws-wsgi
import awsgi
def lambda_handler(event, context):
return awsgi.response(app, event, context, base64_content_types={"image/png"})
Requires AWS Lambda environment with API Gateway proxy integration configured; declares support only for Python 2.7, 3.3, 3.4, and 3.5, all end-of-life versions.
Verify before relying
- Compatibility with modern Python versions (3.10+) and current AWS Lambda runtime versions
- Whether the package works with recent versions of WSGI frameworks or only legacy versions
- Active community forks or maintained alternatives that supersede this archived project
Package facts
| License | MIT (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | abandoned — 2,229 days since the last release |
| Last repo commit | (repository archived) |
| First released | |
| Downloads | 158,398/month — #10,725 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: aws_wsgi-0.2.7-py2.py3-none-any.whl
Keywords: wsgi, aws, lambda, api, gateway
Tags
More HTTP Servers packages
FastAPI is a Python web framework for building…
permissive · top 100 on PyPI
grpclibgrpclib is a pure-Python asyncio-based…
permissive · top 1,000 on PyPI
sqlmodelSQLModel combines SQLAlchemy and Pydantic to…
permissive · top 5,000 on PyPI
cadwynCadwyn generates older API versions…
permissive · top 5,000 on PyPI
bottleBottle is a lightweight WSGI microframework for…
permissive · top 5,000 on PyPI
connexionConnexion builds REST APIs from OpenAPI/Swagger…
permissive · top 5,000 on PyPI
apig-wsgiWraps a WSGI application to run as an AWS…
permissive · top 15,000 on PyPI
awsgi2Bridges WSGI-compatible web frameworks to AWS…
permissive · top 15,000 on PyPI
serverless-wsgiBridges Python WSGI applications (Flask,…
permissive · top 15,000 on PyPI
WSGIProxy2WSGIProxy2 wraps a remote HTTP application as a…
permissive · top 15,000 on PyPI
aiohttp-wsgiRuns WSGI applications like Django and Flask on…
permissive · top 15,000 on PyPI
mangumMangum adapts ASGI applications to run on AWS…
permissive · top 5,000 on PyPI
Flask-AWSCognitoIntegrates AWS Cognito user authentication into…
permissive · top 15,000 on PyPI
zappaZappa packages and deploys Python WSGI and ASGI…
permissive · top 15,000 on PyPI
opentelemetry-instrumentation-wsgiProvides WSGI middleware for OpenTelemetry that…
permissive · top 1,000 on PyPI