Yet another ASGI toolkit
yet another ASGI toolkit
Yaat is an asynchronous web framework/toolkit.
- Provide decorator routes & class-based views.
- Template support with Jinja2.
- Static file serving.
- HTTP streaming response.
- Cookie support.
- WebSocket support.
- API schema generator and Swagger UI.
- Background tasks runner.
- Server startup and shutdown events.
- CORS support.
- Test client using httpx.
pip3 install yaat
You'll also want to install an ASGI server, such as uvicorn.
pip3 install uvicorn
Writing with Yaat is as simple as...
from yaat import Yaat from yaat.responses import TextResponse app = Yaat() @app.route("/") async def index(request): return TextResponse("Hello World")
Then run using uvicorn:
I know there are a lot of awesome frameworks out there. So some might ask why did I write my own. Actually, I created this to learn how the web framework works.
More features will be added in the future. You can check out the project board.
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.