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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file aws-lambda-cask-0.1.0.tar.gz.

File metadata

  • Download URL: aws-lambda-cask-0.1.0.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for aws-lambda-cask-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f054b8e0605bd8bd80c87ba2e4b76740aa4b10470f2a6c4fe619d52decd88bb4
MD5 62f1b2fee4e2749f83c858db48a23537
BLAKE2b-256 85f208e6313b3c303fb89ce4bb0843c6153246f7fb2d7672435ccf69b1e4cb7b

See more details on using hashes here.

File details

Details for the file aws_lambda_cask-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for aws_lambda_cask-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 64ab98d282a3495d7886a007eb96ef86ba7da854f4392ef02d04d0069ba6faa8
MD5 b08162c6201c36c54f3fb56d2bf9e5ca
BLAKE2b-256 704174fe020845fa082e6c90b9b64dcfe29b1efa3702cad99a7515788adb7e79

See more details on using hashes here.

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