Mach9 is a web application framework based ASGI and async/await
.
Mach9 supports Http and WebSocket.
Mach9 is based ASGI.
You can integrate Mach9 and Uvicorn.
Details are here.
Mach9 is based async/await syntax from Python 3.5.
Mach9 thinks that small and simple is important.
pip install mach9
from mach9 import Mach9
from mach9.response import text
app = Mach9()
@app.route('/')
async def test(request):
return text('Hello world!')
if __name__ == '__main__':
app.run(host='127.0.0.1', port=8000)
- Linux
- Mac OS X
- Python3.6+
Mach9 is an experimental project for finding best practice of python asynchronous web framework.
This is prototype, not product.
Mach9 is MIT License.
Mach9 is a fork of Sanic.
Sanic is MIT License.
See LICENSE.