https://github.com/jamesroberts/fastwsgi Skip to content Sign up * Why GitHub? + Features + Mobile + Actions + Codespaces + Packages + Security + Code review + Issues + Integrations + GitHub Sponsors + Customer stories * Team * Enterprise * Explore + Explore GitHub + Learn and contribute + Topics + Collections + Trending + Learning Lab + Open source guides + Connect with others + The ReadME Project + Events + Community forum + GitHub Education + GitHub Stars program * Marketplace * Pricing + Plans + Compare plans + Contact Sales + Education [ ] * # In this repository All GitHub | Jump to | * No suggested jump to results * # In this repository All GitHub | Jump to | * # In this user All GitHub | Jump to | * # In this repository All GitHub | Jump to | Sign in Sign up {{ message }} jamesroberts / fastwsgi Public * Notifications * Fork 0 * Star 34 * An ultra fast WSGI server for Python 3 MIT License 34 stars 0 forks Star Notifications * Code * Issues 0 * Pull requests 0 * Actions * Projects 0 * Wiki * Security * Insights More * Code * Issues * Pull requests * Actions * Projects * Wiki * Security * Insights main Switch branches/tags [ ] Branches Tags Could not load branches Nothing to show Loading {{ refName }} default View all branches Could not load tags Nothing to show {{ refName }} default Loading View all tags 1 branch 0 tags Code Loading Latest commit @jamesroberts jamesroberts Reformat platform table ... cfbca30 Dec 15, 2021 Reformat platform table cfbca30 Git stats * 89 commits Files Permalink Failed to load latest commit information. Type Name Latest commit message Commit time .github/workflows Packaging for Pypi Nov 16, 2021 fastwsgi Fix static analysis warnings Dec 11, 2021 libuv @ 0a47e4c Add libuv as included dependency Dec 4, 2021 llhttp @ 99c1055 Set submodule to 6.0.4 llhttp release Aug 17, 2021 performance_benchmarks Update quick start and add uvicorn benchmark Dec 12, 2021 tests Fix unit tests on mac Dec 4, 2021 .gitignore Add libuv as included dependency Dec 4, 2021 .gitmodules Add libuv as included dependency Dec 4, 2021 LICENSE Initial commit Aug 2, 2021 MANIFEST.in New Pypi release Dec 4, 2021 Makefile Change name to fastwsgi Oct 26, 2021 README.md Reformat platform table Dec 15, 2021 example.py Added basic unit tests Oct 26, 2021 fastwsgi.py Start FastWSGI from CLI + new Pypi release Dec 13, 2021 lgtm.yml Addresses warnings Aug 20, 2021 load-test.sh Add usage example to README Oct 21, 2021 logo.png Add simple logo Dec 13, 2021 run.sh Add example Oct 21, 2021 setup.py Start FastWSGI from CLI + new Pypi release Dec 13, 2021 setup_libuv.py Works on mac Dec 4, 2021 View code [ ] FastWSGI Supported Platforms Performance Installation Quick start Example usage with Flask Testing Contributing TODO README.md [logo] --------------------------------------------------------------------- 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. 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 About An ultra fast WSGI server for Python 3 Topics python c flask django web-server server wsgi wsgi-server werkzeug Resources Readme License MIT License Stars 34 stars Watchers 2 watching Forks 0 forks Used by 1 * @jamesroberts @jamesroberts / fastwsgi Languages * C 50.7% * Python 42.0% * Shell 6.8% * Makefile 0.5% * (c) 2021 GitHub, Inc. * Terms * Privacy * Security * Status * Docs * Contact GitHub * Pricing * API * Training * Blog * About You can't perform that action at this time. You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.