Zayt Web Framework

Zayt is a tool for creating ASGI applications that are easy to build and maintain.

It is built on top of asgikit and comes with a dependency injection system built upon Python type annotations. It is compatible with Python 3.11+.

Quickstart

Install zayt and uvicorn:

$ pip install zayt uvicorn[standard]

Create the file application.py:

from asgikit import Request
from zayt.web import get


@get
async def hello(request: Request):
    await request.respond_text("Hello, World")

Run application with uvicorn. Zayt will automatically load application.py:

$ uvicorn zayt.run:app
INFO:     Started server process [1000]
INFO:     Waiting for application startup.
INFO:     Application startup complete.
INFO:     Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)s