Skip to main content

MERGE TO https://github.com/abersheeran/kui

Hint API

中文 | English

Github Action Test Codecov

PyPI Downloads

PyPI - Python Version

基于 Type hint 的 Web 框架

hintapi 文档


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"

Metadata

Release files for hintapi 0.22.14

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

Source distribution (sdist)

Source distribution for hintapi 0.22.14
File Size Uploaded Provenance Actions
hintapi-0.22.14.tar.gz 45.6 kB Without provenance Details for hintapi-0.22.14.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for hintapi 0.22.14
File Interpreter ABI Platform Actions
hintapi-0.22.14-py3-none-any.whl Python 3 none any Details for hintapi-0.22.14-py3-none-any.whl

Total release size: 96.1 kB

Release files / hintapi-0.22.14.tar.gz

Download URL hintapi-0.22.14.tar.gz
Size 45.6 kB
Tags Source
SHA-256 checksum
How to use checksums
14b3b327e0e7137576b5db34ea34970f1b748bc7594fb5a89740670aaee7f24c
BLAKE2b-256 checksum
How to use checksums
20eee22e7d9c2e392c50943c6a11de86d09e2c5d09e591f52cf62e4456587937
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via pdm/2.9.3 CPython/3.11.5

Release files / hintapi-0.22.14-py3-none-any.whl

Download URL hintapi-0.22.14-py3-none-any.whl
Size 50.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3bdca35318499fd61a63b4b434e46e46f655a517f8c9cbeaf9b1a689b0c8ced8
BLAKE2b-256 checksum
How to use checksums
b1541fd83791904f79136cbe72c6e9e25160655045f521f42f2f3e50f265415c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via pdm/2.9.3 CPython/3.11.5

Security for hintapi 0.22.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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