2021-12-12 18:39:03 +02:00
2021-11-16 23:01:32 +02:00
2021-12-12 00:56:08 +02:00
2021-12-04 22:14:27 +02:00
2021-12-04 22:58:58 +02:00
2021-12-04 22:14:27 +02:00
2021-12-04 22:14:27 +02:00
2021-10-26 23:12:44 +02:00
2021-12-11 17:12:30 +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-12-04 23:26:22 +02:00
2021-12-12 18:39:03 +02:00
2021-10-21 23:35:01 +02:00
2021-12-04 22:50:46 +02:00
2021-12-11 23:06:55 +02:00

Tests Pypi Language grade: C/C++ Language grade: Python

FastWSGI

🚧 FastWSGI is still under development.

FastWSGI is an ultra fast WSGI server for Python 3.

It is a sub 1000 line Python extension written in C. It uses libuv and llhttp under the hood for blazing fast performance.

Supported Platforms

Platform Supported
Linux
MacOS
Windows

Installation

Install using the pip package manager.

pip install fastwsgi

Performance

FastWSGI is one of the fastest general use WSGI servers out there!

For a comparison between other popular WSGI servers, see PERFORMANCE.md

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='127.0.0.1', port=5000)

Example usage with uWSGI

import fastwsgi

def application(environ, start_response):
    headers = [('Content-Type', 'text/plain')]
    start_response('200 OK', headers)
    return [b'Hello, World!']

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

Testing

To run the test suite using pytest, run the following command:

python3 -m pytest

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

TODO

  • Comprehensive error handling
  • Complete HTTP/1.1 compliance
  • Unit tests running in CI workflow
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%