Makes Python WSGI apps compatible with AWS’ API Gateway proxy resources.
Example
from flask import Flask
import apigwsgi
app = Flask(__name__)
@app.route("/")
def index():
return "Hello from Flask!"
handler = apigwsgi.Handler(app.wsgi_app)
Full example
Full example including deployment scripts can be found in the examples directory.
To deploy:
$ pip install boto3
$ examples/flask_handler/bin/deploy
[...]
Uploaded Flask example to https://xxxxx.execute-api.us-east-1.amazonaws.com/live/
When you’re done, remove it with:
$ examples/flask_handler/bin/destroy
Limitations
API Gateway doesn’t currently support binary responses, and will fail if your application sends non-unicode data.
See also
Metadata
Release files for apigwsgi 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| apigwsgi-0.1.5.tar.gz | 6.2 kB | Details |
Release files / apigwsgi-0.1.5.tar.gz
| Download URL | apigwsgi-0.1.5.tar.gz |
|---|---|
| Size | 6.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
65263ae1fda17747d8208f451d6aac2342795cbcc1aee3bae6d800fbd9ddafd6
|
|
BLAKE2b-256 checksum How to use checksums |
6286f02223a386923a22312f728a1dac7be86e98fc82699b300e2733c7eda575
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |