awsgi2
A WSGI gateway for the AWS API Gateway/Lambda proxy integration
Decision gist · record as of 2026-08-14
Yes, if you need to run a WSGI framework on AWS Lambda and accept dormant maintenance. The package is stable and does one thing well, but expect no active development or bug fixes. Suitable for production use in stable, low-change applications; risky for projects requiring ongoing support or frequent updates.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.8 or later; designed specifically for AWS Lambda with API Gateway proxy integration.
- Low install friction with a single runtime dependency.
- Maintenance is dormant—last release was 605 days ago—so expect no active updates or bug fixes, though the package remains functional for its narrow use case.
License · maintenance · safety
MIT (permissive) — MIT license permits commercial and private use with minimal restrictions, making it safe to adopt in most projects without licensing concerns.
last release 2024-12-17 (605 days)
0 known vulnerabilities (OSV.dev, 2026-08-14) · 80,993 downloads/mo, #14,258 on PyPI
Alternatives
Verify before relying
pip install awsgi2
import awsgi2
def lambda_handler(event, context):
return awsgi2.response(app, event, context, base64_content_types={"image/png"})- Whether libadvian is a required runtime dependency or an optional build/development tool.
- Current state of the upstream original aws-wsgi project and whether awsgi2 remains the recommended fork.
- Specific WSGI frameworks confirmed compatible beyond those mentioned in the description excerpt.
What it is and what it does
awsgi2 is a WSGI adapter that lets you run WSGI-compatible middleware and frameworks on AWS Lambda. It translates API Gateway proxy integration events into WSGI-compatible request/response pairs, allowing frameworks to work without modification in a serverless environment. The package is an improved fork of the original aws-wsgi project.
You install it, wrap your WSGI application in awsgi2.response() inside a Lambda handler, and deploy. It handles the event-to-WSGI conversion and response formatting, including support for base64-encoded content types. The package supports Python 3.8 through 3.12 and has a single runtime dependency on libadvian.
Use it for
- Deploy a WSGI application to AWS Lambda without rewriting it for serverless.
- Convert API Gateway proxy events into standard WSGI requests for existing frameworks.
- Serve binary content from Lambda by configuring base64_content_types.
- Migrate a traditional WSGI application to AWS Lambda with minimal code changes.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need to run a WSGI framework on AWS Lambda and accept dormant maintenance.
The package is stable and does one thing well, but expect no active development or bug fixes. Suitable for production use in stable, low-change applications; risky for projects requiring ongoing support or frequent updates.
Install
awsgi2 on PyPI
Before you install
Low install friction with a single runtime dependency. Maintenance is dormant—last release was 605 days ago—so expect no active updates or bug fixes, though the package remains functional for its narrow use case.
Requires Python 3.8 or later; designed specifically for AWS Lambda with API Gateway proxy integration.
License in practice
MIT license permits commercial and private use with minimal restrictions, making it safe to adopt in most projects without licensing concerns.
Quickstart
pip install awsgi2
import awsgi2
def lambda_handler(event, context):
return awsgi2.response(app, event, context, base64_content_types={"image/png"})
Verify before relying
- Whether libadvian is a required runtime dependency or an optional build/development tool.
- Current state of the upstream original aws-wsgi project and whether awsgi2 remains the recommended fork.
- Specific WSGI frameworks confirmed compatible beyond those mentioned in the description excerpt.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release <4.0,>=3.8 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagelibadvian |
| Maintenance | Dormant 605 days since the last release |
| First released | |
| Downloads | 80,993 / month, #14,258 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9 |
Evidence: awsgi2-1.0.2-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “wsgi aws lambda”
- awsgi2Bridges WSGI-compatible web frameworks to AWS Lambda by converting…
- aws-wsgiAdapts WSGI-compatible Python web frameworks to run as AWS Lambda…
- apig-wsgiWraps a WSGI application to run as an AWS Lambda handler on API…
Give your agent the search over MCP, or paste the wish link into any chat.
More Dynamic Content packages
MarkupSafe provides a text object that escapes special characters so untrusted strings can be safely embedded in HTML and XML without injection attacks.
Jinja2 is a templating engine that renders dynamic content by combining templates with Python-like syntax and data, supporting template inheritance, macros, autoescaping, and sandboxed execution.
Soupsieve is a CSS selector library designed to work with Beautiful Soup 4 to select, match, and filter HTML and XML elements using modern CSS selectors from CSS level 1 through CSS level 4 specifications.
Install it if you use Beautiful Soup for HTML or XML parsing and want modern CSS selector support.
Werkzeug is a WSGI utility library providing request/response objects, URL routing, an interactive debugger, HTTP utilities, and a development server for building web applications.
Flask is a lightweight WSGI web application framework for building web applications in Python, from simple single-page sites to complex multi-route applications.
Mako compiles Python-embedded templates into Python modules for fast rendering, supporting layout inheritance, custom functions, and direct Python expressions within template syntax.
See also aws-wsgi · serverless-wsgi · WSGIProxy2 · apig-wsgi · zappa · mangum · aiohttp-wsgi · awslambdaric · Flask-AWSCognito