Top AI Repos — open-source AI, indexed and scored
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Serverless plugin to deploy WSGI applications (Flask/Django/Pyramid etc.) and bundle Python packages
| Date | Stars |
|---|---|
| 2026-07-24 | 499 |
| 2026-07-25 | 499 |
| 2026-07-28 | 499 |
| 2026-07-30 | 499 |
| 2026-08-06 | 499 |
Today
— stars today
This week
— stars this week
This month
— stars this month
Momentum
0.0
growth rate 0.00%/day
<p align="center">
<img src="https://logandk.github.io/serverless-wsgi/assets/header.svg">
</p>
[](https://nodei.co/npm/serverless-wsgi/)
[](http://www.serverless.com)
[](https://github.com/logandk/serverless-wsgi/actions/workflows/tests.yaml)
[](https://codecov.io/gh/logandk/serverless-wsgi)
A Serverless Framework plugin to build your deploy Python WSGI applications using Serverless. Compatible
WSGI application frameworks include Flask, Django and Pyramid - for a complete list, see:
http://wsgi.readthedocs.io/en/latest/frameworks.html.
### Features
- Transparently converts API Gateway and ALB requests to and from standard WSGI requests
- Supports anything you'd expect from WSGI such as redirects, cookies, file uploads etc.
- Automatically downloads Python packages that you specify in `requirements.txt` and deploys them along with your application
- Convenient `wsgi serve` command for serving your application locally during development
- Includes CLI commands for remote execution of Python code (`wsgi exec`), shell commands (`wsgi command`), Flask CLI commands (`wsgi flask`) and Django management commands (`wsgi manage`)
- Supports both APIGatewayV1 and APIGatewayV2 payloads
## Install
```
sls plugin install -n serverless-wsgi
```
This will automatically add the plugin to `package.json` and the plugins section of `serverless.yml`.
## Flask configuration example
<p align="center">
<img src="https://logandk.github.io/serverless-wsgi/assets/hello-world.svg">
</p>
This example assumes that you have intialized your application as `app` inside `api.py`.
```
project
├── api.py
├── requirements.txt
└── serverless.yml
```
### api.py
A regular Flask application.
```python
from flask import Flask
app = Flask(__name__)
@app.route("/cats")
def cats():
return "Cats"
@app.route("/dogs/<id>")
def dog(id):
return "Dog"
```
### serverless.yml
Load the plugin and set the `custom.wsgi.app` configuration in `serverless.yml` to the
module path of your Flask application.
All functions that will use WSGI need to have `wsgi_handler.handler` set as the Lambda handler and
use the default `lambda-proxy` integration for API Gateway. This configuration example treats
API Gateway as a transparent proxy, passing all requests directly to your Flask application,
and letting the application handle errors, 404s etc.
_Note: The WSGI handler was called `wsgi.handler` earlier, but was renamed to `wsgi_handler.handler`
in `1.7.0`. The old name is still supported but using it will cause a deprecation warning._
```yaml
service: example
provider:
name: aws
runtime: python3.6
plugins:
- serverless-wsgi
functions:
api:
handler: wsgi_handler.handler
events:
- http: ANY /
- http: ANY /{proxy+}
custom:
wsgi:
app: api.app
```
### requirements.txt
Add Flask to the application bundle.
```
Flask==1.0.2
```
## Deployment
Simply run the serverless deploy command as usual:
```
$ sls deploy
Serverless: Using Python specified in "runtime": python3.6
Serverless: Packaging Python WSGI handler...
Serverless: Packaging required Python packages...
Serverless: Linking required Python packages...
Serverless: Packaging service...
Serverless: Excluding development dependencies...
Serverless: Unlinking required Python packages...
Serverless: Uploading CloudFormation file to S3...
Serverless: Uploading artifacts...
Serverless: Uploading service .zip file to S3 (864.57 KB)...
Serverless: Validating template...
Serverless: Updating Stack...
Serverless: Checking Stack update progress...
..............
Serverless: Stack update finished...
```
## Other frameworks
Set `custom.wsgi.aExcerpt of 15,692 characters
Read on GitHubWould you bet a product on this? Bounded 0–100 and slow moving.
matched fp:ecc148d53ffdc013, topic:serverless