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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for aws_lambda_cask-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64ab98d282a3495d7886a007eb96ef86ba7da854f4392ef02d04d0069ba6faa8 |
|
MD5 | b08162c6201c36c54f3fb56d2bf9e5ca |
|
BLAKE2b-256 | 704174fe020845fa082e6c90b9b64dcfe29b1efa3702cad99a7515788adb7e79 |