Skip to main content

LilyWhite Framework

春が来た。

基于 Litestar + Uvicorn 的 Python 服务端框架。 你理解为 Python 版 Spring 就行!

装饰器一贴,构造器一写,剩下的交给容器。分层、DI、生命周期、多存储后端,都已经替你备好了。

没有代理、AOP 和字节码魔法。Lily White 是报春妖精,这个框架也把 Spring 的开发体验带进 Python,再涂上一点幻想乡的颜色。

快速开始

需要 Python 3.14+ 和 uv:

uv add lilywhite
# my_app/application.py
from lilywhite import LilywhiteMain

@LilywhiteMain
class MyApplication:
    application_name = "My LilyWhite App"
    application_version = "0.1.0"
    backends = ("memory",)
# my_app/__main__.py
from lilywhite import run
from .application import MyApplication

if __name__ == "__main__":
    run(MyApplication)
# config.yaml
version: 1
uv run python -m my_app

打开 http://127.0.0.1:8000/healthz,应用已经跑起来了。

文档

仓库里的 example/ 是可以直接运行的完整问候应用,可以试着运行

Metadata

Release files for lilywhite 0.4.1

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

Source distribution (sdist)

Source distribution for lilywhite 0.4.1
File Size Uploaded Provenance Actions
lilywhite-0.4.1.tar.gz 44.1 kB With provenance Details for lilywhite-0.4.1.tar.gz

Built distribution (wheel)

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

Total release size: 105.5 kB

Release files / lilywhite-0.4.1.tar.gz

Download URL lilywhite-0.4.1.tar.gz
Size 44.1 kB
Tags Source
SHA-256 checksum
How to use checksums
ea28408775b9ae5a21e30d9cbbc77c112a5c9bd5933cfc5ba3c2f65bf6573b29
BLAKE2b-256 checksum
How to use checksums
7c408dce3e55e2f5cdb35f21619cbc6bf6a236e5b71cd122773968e90c3d48a9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

Release files / lilywhite-0.4.1-py3-none-any.whl

Download URL lilywhite-0.4.1-py3-none-any.whl
Size 61.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e039af6e70d752b3352de4f82c7abc37d9db95ee623136771244500b04e2f70a
BLAKE2b-256 checksum
How to use checksums
a6eaff9d5851ab955097e81144615701d8e619a3fa7d7eb4f1b92660ed4cad3c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

Security for lilywhite 0.4.1

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for lilywhite-0.4.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

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