Skip to main content

Yet another ASGI toolkit

Project description

Yaat

yet another ASGI toolkit

pypi package version

Yaat

Yaat is an asynchronous web framework/toolkit.

Features

  • Provide decorator routes & class based views.
  • Template support with Jinja2.
  • Cookie support.
  • WebSocket support.
  • Background tasks runner.
  • Test client using httpx.
  • Static file serving.

Requirements

Python 3.6+

Setup

pip3 install yaat

or just clone this and use directly to get the latest development version.

You'll also want to install an ASGI server, such as uvicorn.

pip3 install uvicorn

Example

Writing with Yaat is as simple as...

app.py

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:

uvicorn app:app

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for yaat, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size yaat-0.1.1.tar.gz (16.3 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page