Skip to main content

Python3.6+ module to make Flask compatible with AWS Gateway and AWS Load Balancer

Project description

Python 3.6+ Only

Installation

pip install flask-lambda-python3.6-lb

Usage

Here is an example of what my_python_file.py would look like:

from flask_lambda import FlaskLambda

app = FlaskLambda(__name__)


@app.route('/foo', methods=['GET', 'POST'])
def foo():
    data = {
        'form': request.form.copy(),
        'args': request.args.copy(),
        'json': request.json
    }
    return (
        json.dumps(data, indent=4, sort_keys=True),
        200,
        {'Content-Type': 'application/json'}
    )


if __name__ == '__main__':
    app.run(debug=True)

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-lambda-python36-lb-0.6.0.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

flask_lambda_python36_lb-0.6.0-py36-none-any.whl (7.8 kB view details)

Uploaded Python 3.6

File details

Details for the file flask-lambda-python36-lb-0.6.0.tar.gz.

File metadata

  • Download URL: flask-lambda-python36-lb-0.6.0.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.6.5

File hashes

Hashes for flask-lambda-python36-lb-0.6.0.tar.gz
Algorithm Hash digest
SHA256 8bbefa3c5dc21367da1f07522cfec26598034f31e20f00f32d53bddd743bcdd6
MD5 d162fc5e82fdb0f225c747c976375c58
BLAKE2b-256 4cc5c65406a4ec859405f1ff564f764d528ee7dbfb1b732eb3707b8120800efa

See more details on using hashes here.

File details

Details for the file flask_lambda_python36_lb-0.6.0-py36-none-any.whl.

File metadata

  • Download URL: flask_lambda_python36_lb-0.6.0-py36-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 3.6
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.6.5

File hashes

Hashes for flask_lambda_python36_lb-0.6.0-py36-none-any.whl
Algorithm Hash digest
SHA256 c6bca496dfd514c2a7fb270acdbb34c2bf8ca3676af6a001a310e61cb5f4940d
MD5 6340017f7d36991073e2e5c2c89c6cf9
BLAKE2b-256 6708b206c6d5bff6a682d5ed45c823368b17064afd7fd46b58fdcc8561f1bbcf

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