2021-10-26 21:47:01 +02:00
2021-10-26 21:47:01 +02:00
2021-10-26 21:47:01 +02:00
2021-10-26 21:47:01 +02:00
2021-10-26 21:47:01 +02:00
2021-08-20 16:10:12 +02:00
2021-08-02 22:00:18 +02:00
2021-10-21 23:21:16 +02:00
2021-10-26 21:47:01 +02:00
2021-10-26 21:47:01 +02:00
2021-10-21 23:35:01 +02:00
2021-10-26 21:47:01 +02:00

Language grade: C/C++ Language grade: Python

FastWSGI

Note: FastWSGI is still under development...

FastWSGI is an ultra fast WSGI server for Python 3.

It is mostly written in C. It makes use of libuv and llhttp under the hood for blazing fast performance.

Example usage with Flask

See example.py for more details.

import fastwsgi
from flask import Flask

app = Flask(__name__)


@app.get("/")
def hello_world():
    return "Hello, World!", 200


if __name__ == "__main__":
    fastwsgi.run(wsgi_app=app, host="0.0.0.0", port=5000)

Example usage with uWSGI

def application(environ, start_response):
    start_response("200 OK", [("Content-Type", "text/html")])
    return [b"Hello, World!"]

if __name__ == "__main__":
    fastwsgi.run(wsgi_app=application, host="0.0.0.0", port=5000)

TODO

  • Test integration with other frameworks (uWSGI, Django, etc)
  • Comprehensive error handling
  • Complete HTTP/1.1 compliance
  • Test on multiple platforms (Windows/MacOS)
  • Unit Tests
  • CI/CD
Description
An ultra fast WSGI server for Python 3
Readme Multiple Licenses 9 MiB
Languages
C 78.5%
Python 18.7%
Shell 2.4%
Makefile 0.3%
Batchfile 0.1%