FastWSGI
🚧 FastWSGI is still under development.
FastWSGI is an ultra fast WSGI server for Python 3.
Its written in C and uses libuv and llhttp under the hood for blazing fast performance.
Supported Platforms
| Platform | Linux | MacOs | Windows |
|---|---|---|---|
| Support | ✅ | ✅ | ✅ |
Performance
FastWSGI is one of the fastest general use WSGI servers out there!
For a comparison against other popular WSGI servers, see PERFORMANCE.md
Installation
Install using the pip package manager.
pip install fastwsgi
Quick start
Create a new file example.py with the following:
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.run(wsgi_app=app, host='0.0.0.0', port=5000)
Run the server using:
python3 example.py
Or, by using the fastwsgi command:
fastwsgi example:app
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)
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 where appropriate.
TODO
- Comprehensive error handling
- Complete HTTP/1.1 compliance
- Unit tests running in CI workflow
Metadata
Release files for fastwsgi 0.0.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fastwsgi-0.0.9.tar.gz | 439.4 kB | Without provenance | Details for fastwsgi-0.0.9.tar.gz |
Release files / fastwsgi-0.0.9.tar.gz
| Download URL | fastwsgi-0.0.9.tar.gz |
|---|---|
| Size | 439.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
17ef4c6dcccc2d0b9cf317a71b2ade544a742253511a0c87c0838d4f4fdfacd1
|
|
BLAKE2b-256 checksum How to use checksums |
6bc2140a77d48f4e0282945255a7eaa9bfbf18225a12e576da646a5b93c75674
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.7
|
Security for fastwsgi 0.0.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.