Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

AWS Lambda easy integration with Flask web framework.

Project description


To create a new serverless Flask application really quickly:

  1. Install pipenv and AWS SAM local and generate app boilerplate:
pip install aws-sam-cli pipenv
sam init --location
  1. Add flask_serverless dependency
cd MyApp
make install
pipenv install flask_serverless
  1. Replace first_function/ contents with:
from flask_serverless import Serverless, Flask, APIGWProxy

app = Flask(__name__)
lambda_handler = APIGWProxy(app)

def index():
    return "Hello, friend!"
  1. You're ready to go! Run make run. Read the README it spits out.

More Coming...

More documentation will be written soon.

Further Reading

Serverless Flask applications on AWS lambda.

Project details

Download files

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

Files for flask-serverless, version 0.1.4
Filename, size File type Python version Upload date Hashes
Filename, size flask_serverless-0.1.4.tar.gz (3.3 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page