Skip to main content

AWS Lambda easy integration with Flask web framework.

Project description

Quickstart

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 https://github.com/aws-samples/cookiecutter-aws-sam-python
  1. Add flask_serverless dependency
cd MyApp
make install
pipenv install flask_serverless
  1. 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!"
  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.

Source Distribution

flask_serverless-0.1.4.tar.gz (3.3 kB view details)

Uploaded Source

File details

Details for the file flask_serverless-0.1.4.tar.gz.

File metadata

  • Download URL: flask_serverless-0.1.4.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.0

File hashes

Hashes for flask_serverless-0.1.4.tar.gz
Algorithm Hash digest
SHA256 53c2da5b340486604c5b6f784a2d4aa3c51a858a8c20bf7446ec5440b51f0490
MD5 1aac975494db7eb6165436ae6ddaca2a
BLAKE2b-256 0eba886462db61068e6c8c35af1991213ce592baa26644bd0e673ccdb676d674

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