api-gateway-v2-to-wsgi-1.1.0
توضیحات
translation from the aws api gateway v2.0 lambda event to wsgi
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | api-gateway-v2-to-wsgi-1.1.0 |
| نام | api-gateway-v2-to-wsgi |
| نسخه کتابخانه | 1.1.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Anthony Sottile |
| ایمیل نویسنده | asottile@umich.edu |
| آدرس صفحه اصلی | https://github.com/asottile/api-gateway-v2-to-wsgi |
| آدرس اینترنتی | https://pypi.org/project/api-gateway-v2-to-wsgi/ |
| مجوز | MIT |
[](https://dev.azure.com/asottile/asottile/_build/latest?definitionId=65&branchName=master)
[](https://dev.azure.com/asottile/asottile/_build/latest?definitionId=65&branchName=master)
[](https://results.pre-commit.ci/latest/github/asottile/api-gateway-v2-to-wsgi/master)
api-gateway-v2-to-wsgi
======================
translation from the aws api gateway v2.0 lambda event to wsgi
## installation
`pip install api-gateway-v2-to-wsgi`
## usage
```python
import api_gateway_v2_to_wsgi
from ... import app
# app is your wsgi callable, such as the `Flask(...)` object from `flask`
lambda_handler = api_gateway_v2_to_wsgi.make_lambda_handler(app)
```
## sample application
for a full sample, see [testing/example](testing/example)
## more information
for more information on how I set up my lambda, see
[testing/example.md](testing/example.md).
additionally, see the [api gateway documentation] (though it's not very good
at the time of writing so glhf)
seems the [lambda integration guide] is slightly better
[api gateway documentation]: https://docs.aws.amazon.com/apigateway/index.html
[lambda integratio guide]: https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-develop-integrations-lambda.html
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8 | Python |
نحوه نصب
نصب پکیج whl api-gateway-v2-to-wsgi-1.1.0:
pip install api-gateway-v2-to-wsgi-1.1.0.whl
نصب پکیج tar.gz api-gateway-v2-to-wsgi-1.1.0:
pip install api-gateway-v2-to-wsgi-1.1.0.tar.gz