Skip to main content

AWSGI

A WSGI adapter for AWS API Gateway/Lambda Proxy Integration

AWSGI allows you to use WSGI-compatible middleware and frameworks like Flask and Django with the AWS API Gateway/Lambda proxy integration.

Installation

awsgi is available from PyPI as aws-wsgi:

pip install aws-wsgi

Example

import awsgi
from flask import (
    Flask,
    jsonify,
)

app = Flask(__name__)


@app.route('/')
def index():
    return jsonify(status=200, message='OK')


def lambda_handler(event, context):
    return awsgi.response(app, event, context, base64_content_types={"image/png"})

Metadata

Release files for aws-wsgi 0.2.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aws-wsgi 0.2.7
File Size Uploaded Provenance Actions
aws-wsgi-0.2.7.tar.gz 3.2 kB Without provenance Details for aws-wsgi-0.2.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for aws-wsgi 0.2.7
File Interpreter ABI Platform Actions
aws_wsgi-0.2.7-py2.py3-none-any.whl Python 2, Python 3 none any Details for aws_wsgi-0.2.7-py2.py3-none-any.whl

Total release size: 7.4 kB

Release files / aws-wsgi-0.2.7.tar.gz

Download URL aws-wsgi-0.2.7.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
eb0b00970e80d96b52c0806ceae2ff98ab96c90f67651765755c5236f9e6e50d
BLAKE2b-256 checksum
How to use checksums
3493c74bf22bd1baba1ed052f970f60a1f7264f6746383c953da308aacb6c226
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/2.7.15

Release files / aws_wsgi-0.2.7-py2.py3-none-any.whl

Download URL aws_wsgi-0.2.7-py2.py3-none-any.whl
Size 4.2 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
37e16b6a211f251d9f72ab85018c4127a59dc0fc81263c19f312a6a8333f9908
BLAKE2b-256 checksum
How to use checksums
8dd2c032a448fb54ce145d257bc4db57dbeb7f2cead892d43204cc818482f41c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/2.7.15

Security for aws-wsgi 0.2.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page