Skip to main content

Wrapper to enable usage of Python WSGI frameworks within AWS Lambda environments.

Project description

aws-lambda-cask

Wrapper to enable usage of Python WSGI frameworks (bottle, django, flask, etc.) within AWS Lambda environments.

Supports v1.0 (API Gateway) and v2.0 (Lambda URL) payload formats.

Installation

$ pip install aws-lambda-cask

Flask example

import flask
import lambda_cask


app = flask.Flask(__name__)


@app.route("/")
def index():
    return "eyy"


def handler(event, context):
    return lambda_cask.handle(app, event, context)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aws-lambda-cask-0.1.0.tar.gz (3.4 kB view hashes)

Uploaded Source

Built Distribution

aws_lambda_cask-0.1.0-py3-none-any.whl (4.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page