Featured Content Ads
add advertising hereFastWSGI 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 |
---|---|---|---|
Strengthen |
Efficiency
FastWSGI is one of the fastest usual employ WSGI servers on the market!
Featured Content Ads
add advertising hereFor a comparison against utterly different standard WSGI servers, behold PERFORMANCE.md
Set up
Install using the pip kit manager.
Rapid birth
Receive a brand new file instance.py
with the next:
Featured Content Ads
add advertising hereimport 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='0.0.0.0', port=5000)
Fling the server using:
Or, by using the fastwsgi
list:
Example utilization with Flask
Discover instance.py for more runt print.
import fastwsgi from flask import Flask app = Flask(__name__) @app.rep('/') def hello_world(): return 'Hello, World!', 200 if __name__ == '__main__': fastwsgi.escape(wsgi_app=app, host='127.0.0.1', port=5000)
Checking out
To escape the check suite using pytest, escape the next list:
Contributing
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.
TODO
- 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!
https://www.knowasiak.com/register/