Skip to main content

Yaat

yet another ASGI toolkit

travis status docs status codecov report pypi package version Code style: black

Yaat

Yaat is an asynchronous web framework/toolkit.

Features

  • 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.

Requirements

Python 3.6+

Setup

pip3 install yaat

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

Inspiration

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.

I started this after following Jahongir Rahmonov's blog post about writing a web framework. Feel free to check out his WSGI framework Alcazar.

More features will be added in the future. You can check out the project board.

Icon Credit

Icons made by Dave Gandy from www.flaticon.com

Metadata

Release files for yaat 0.1.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for yaat 0.1.10
File Size Uploaded
yaat-0.1.10.tar.gz 24.3 kB Details

Release files / yaat-0.1.10.tar.gz

Download URL yaat-0.1.10.tar.gz
Size 24.3 kB
Tags Source
SHA-256 checksum
How to use checksums
70fc4de5b1d7b282264e492fbe64e69e8afe67367dacd38c8279ffa37f8c19ee
BLAKE2b-256 checksum
How to use checksums
df84039b11da48a61576c826bdb97c829d8e93ea0958103f53e2ec37250ff123
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.0

Release history Release notifications | RSS feed

This release

0.1.10 This release

1 release file

0.1.8

1 release file

0.1.7

1 release file

0.1.6

1 release file

0.1.5

1 release file

0.1.4

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page