Web framework based on type hint.
Project description
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.12.tar.gz
(44.8 kB
view hashes)
Built Distribution
hintapi-0.22.12-py3-none-any.whl
(50.4 kB
view hashes)
Close
Hashes for hintapi-0.22.12-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6afd7a996d27df12e502909677bda3f4b7684109193f99bca366f87003a2b5d6 |
|
MD5 | 53510b55216cf36f2515b5218b1dfd6b |
|
BLAKE2b-256 | 7fb172cbe5494b07b3cb83d073c7df65b9722b5b00eb853dca280038bfff75ac |