AWS Lambda easy integration with Flask web framework.
Project description
Quickstart
To create a new serverless Flask application really quickly:
- Install pipenv and AWS SAM local and generate app boilerplate:
pip install aws-sam-cli pipenv
sam init --location https://github.com/aws-samples/cookiecutter-aws-sam-python
- Add
flask_serverless
dependency
cd MyApp
make install
pipenv install flask_serverless
- Replace
first_function/app.py
contents with:
from flask_serverless import Serverless, Flask, APIGWProxy
app = Flask(__name__)
Serverless(app)
lambda_handler = APIGWProxy(app)
@app.route('/')
def index():
return "Hello, friend!"
- You're ready to go! Run
make run
. Read the README it spits out.
More Coming...
More documentation will be written soon.
Further Reading
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
flask_serverless-0.1.3.tar.gz
(3.2 kB
view hashes)