你的项目描述
Project description
Lazy-Core
Lazy-Core 是lazy系列框架的核心模块,提供模块化注册、统一请求响应结构、中间件支持和异常处理等功能,旨在简化Python Web应用开发。
目录
模块说明
Module:模块注册与函数管理,支持多框架集成APIRequest/APIResponse:统一请求/响应结构,自动校验Middleware:中间件定义与优先级,支持多种类型APIException:统一异常处理
安装(仅供依赖集成)
建议由上层框架库在 pyproject.toml 里声明依赖,无需终端用户单独安装。
测试
项目已集成 pytest 和 coverage,运行所有测试并生成覆盖率报告:
poetry run pytest --cov=lazy_core --cov-report=html
覆盖率报告在 htmlcov/index.html。
代码风格与类型检查
- Ruff 检查:
poetry run ruff check . --fix - MyPy 检查:
poetry run mypy src/ tests/ - pre-commit 检查:
poetry run pre-commit run --all-files
贡献指南
欢迎提交 Issue 和 PR!请确保:
- 代码通过所有 lint/type/test 检查
- 新功能有对应测试
- PR 说明清晰
许可证
本项目采用 MIT License。
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
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
File details
Details for the file lazy_core-0.1.0.tar.gz.
File metadata
- Download URL: lazy_core-0.1.0.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1a42712ad3693b1ca7f51dc0a1bfd80fb57e1cc5f7c9ce677704157400f831e6
|
|
| MD5 |
fb3c5524e5aa485da4e5eb4778ee490a
|
|
| BLAKE2b-256 |
cfc5132d6feb301a3c4d882235ebc70ddd9da335152ad9922079ad946c56a251
|
Provenance
The following attestation bundles were made for lazy_core-0.1.0.tar.gz:
Publisher:
ci.yml on wrl96/lazy-core
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
lazy_core-0.1.0.tar.gz -
Subject digest:
1a42712ad3693b1ca7f51dc0a1bfd80fb57e1cc5f7c9ce677704157400f831e6 - Sigstore transparency entry: 506417281
- Sigstore integration time:
-
Permalink:
wrl96/lazy-core@88b6e1e52d7d174a4caf4ec5ae334328e99e8e3f -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/wrl96
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@88b6e1e52d7d174a4caf4ec5ae334328e99e8e3f -
Trigger Event:
push
-
Statement type:
File details
Details for the file lazy_core-0.1.0-py3-none-any.whl.
File metadata
- Download URL: lazy_core-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2edfef2dcf396699736df9a87d6907bd16be263eb93a38407068753ea5affed6
|
|
| MD5 |
b2b452cc3334a3c2d3e39fbbc11325e6
|
|
| BLAKE2b-256 |
44de0949d96edfe635977810f287ce34618a7fc56d812adc298b1046e0ce6928
|
Provenance
The following attestation bundles were made for lazy_core-0.1.0-py3-none-any.whl:
Publisher:
ci.yml on wrl96/lazy-core
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
lazy_core-0.1.0-py3-none-any.whl -
Subject digest:
2edfef2dcf396699736df9a87d6907bd16be263eb93a38407068753ea5affed6 - Sigstore transparency entry: 506417297
- Sigstore integration time:
-
Permalink:
wrl96/lazy-core@88b6e1e52d7d174a4caf4ec5ae334328e99e8e3f -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/wrl96
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@88b6e1e52d7d174a4caf4ec5ae334328e99e8e3f -
Trigger Event:
push
-
Statement type: