Skip to main content

ASGI Web Framework with Dependency Injection

Project description

Project Zayt

Zayt is a Python ASGI web framework built on top of asgikit and inspired by Spring Boot, AspNet, FastAPI and Go's net/http.

It features a Dependency Injection system to help build robust and reliable applications.

Quick start

Install zayt and uvicorn to run application:

pip install zayt uvicorn[standard]

Create a module called application.py:

touch application.py

Create a handler:

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 --reload

Project details


Download files

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

Source Distribution

zayt-0.1.0.tar.gz (45.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zayt-0.1.0-py3-none-any.whl (38.7 kB view details)

Uploaded Python 3

File details

Details for the file zayt-0.1.0.tar.gz.

File metadata

  • Download URL: zayt-0.1.0.tar.gz
  • Upload date:
  • Size: 45.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.26.3 CPython/3.14.2 Linux/6.14.0-37-generic

File hashes

Hashes for zayt-0.1.0.tar.gz
Algorithm Hash digest
SHA256 15404618dae9ef6540e4b53984c61fcb2ccdb726f0e5bdb6a7d23697b509e1ac
MD5 bac514d9e33d7bb774b7d848c98a1164
BLAKE2b-256 45dc560b3aff4c90fcace7083f81ef41e07362c70a567dc76582597c8c709462

See more details on using hashes here.

File details

Details for the file zayt-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: zayt-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 38.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.26.3 CPython/3.14.2 Linux/6.14.0-37-generic

File hashes

Hashes for zayt-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3a75a5c17b44771a5e7d95878862b997eeb1c495a181cad981111f72f43c5e05
MD5 0b6c4d085c3e4108cc2fe25cb3762490
BLAKE2b-256 a61423b1e0c4f2b4e4171764f16e9a208e9f0d683e268e948b1861f45f839df0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page