APIG WSGI
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 | Provenance | Actions |
|---|---|---|---|---|
| apigwsgi-0.1.5.tar.gz | 6.2 kB | Without provenance | Details for apigwsgi-0.1.5.tar.gz |
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 |
Security for apigwsgi 0.1.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.