Present HN: FastWSGI, an extremely-like a flash WSGI server for Python

Present HN: FastWSGI, an extremely-like a flash WSGI server for Python

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

🚧 FastWSGI is restful below pattern.

FastWSGI is an extremely like a flash WSGI server for Python 3.

Its written in C and makes employ of libuv and llhttp below the hood for blazing like a flash performance.

Supported Platforms

Platform Linux MacOs Home windows


FastWSGI is one of the fastest usual employ WSGI servers on the market!

For a comparison against utterly different standard WSGI servers, behold

Set up

Install using the pip kit manager.

Rapid birth

Receive a brand new file with the next:

import fastwsgi

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

if __name__ == '__main__':
    fastwsgi.escape(wsgi_app=app, host='', port=5000)

Fling the server using:

Or, by using the fastwsgi list:

Example utilization with Flask

Discover for more runt print.

import fastwsgi
from flask import Flask

app = Flask(__name__)

def hello_world():
    return 'Hello, World!', 200

if __name__ == '__main__':
    fastwsgi.escape(wsgi_app=app, host='', port=5000)

Checking out

To escape the check suite using pytest, escape the next list:


Pull requests are welcome. For important adjustments, please birth a downside first to focus on what you are going to cherish to alternate.

Please rep definite that to update tests where appropriate.


  • Comprehensive error handling
  • Entire HTTP/1.1 compliance
  • Unit tests working in CI workflow

Join the pack! Join 8000+ others registered users, and rep chat, rep groups, post updates and rep associates around the sphere!



Hey! look, i give tutorials to all my users and i help them!