Web framework based on type hint.
Project description
MERGE TO https://github.com/abersheeran/kui
hintapi 实现了 WSGI 接口,并使用 Radix Tree 进行路由查找。是最快的 Python web 框架之一。一切特性都服务于快速开发高性能的 Web 服务。
- 大量正确的类型注释
- 灵活且高效的路由系统
- 能作用于任意路由及路由分组上的路由中间件
- 适用于中间件与视图的依赖注入
- 可视化 API 接口与在线调试
- 支持所有 WSGI 生态的互调用
Install
pip install -U hintapi
Example
from typing_extensions import Annotated
from hintapi import HintAPI, PlainTextResponse
app = HintAPI()
@app.router.http("/")
def homepage() -> Annotated[str, PlainTextResponse[200]]:
return "hi, this is homepage"
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
hintapi-0.22.14.tar.gz
(45.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
hintapi-0.22.14-py3-none-any.whl
(50.5 kB
view details)
File details
Details for the file hintapi-0.22.14.tar.gz.
File metadata
- Download URL: hintapi-0.22.14.tar.gz
- Upload date:
- Size: 45.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.9.3 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
14b3b327e0e7137576b5db34ea34970f1b748bc7594fb5a89740670aaee7f24c
|
|
| MD5 |
c492f258dc5e14b2fcbf2203f843238a
|
|
| BLAKE2b-256 |
20eee22e7d9c2e392c50943c6a11de86d09e2c5d09e591f52cf62e4456587937
|
File details
Details for the file hintapi-0.22.14-py3-none-any.whl.
File metadata
- Download URL: hintapi-0.22.14-py3-none-any.whl
- Upload date:
- Size: 50.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.9.3 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3bdca35318499fd61a63b4b434e46e46f655a517f8c9cbeaf9b1a689b0c8ced8
|
|
| MD5 |
74c486c63f1faf5fc7b674606e5087d8
|
|
| BLAKE2b-256 |
b1541fd83791904f79136cbe72c6e9e25160655045f521f42f2f3e50f265415c
|