Skip to main content

你的项目描述

Project description

Lazy-Core

PyPI CI codecov License: MIT


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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lazy_core-0.1.0.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lazy_core-0.1.0-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

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

Hashes for lazy_core-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1a42712ad3693b1ca7f51dc0a1bfd80fb57e1cc5f7c9ce677704157400f831e6
MD5 fb3c5524e5aa485da4e5eb4778ee490a
BLAKE2b-256 cfc5132d6feb301a3c4d882235ebc70ddd9da335152ad9922079ad946c56a251

See more details on using hashes here.

Provenance

The following attestation bundles were made for lazy_core-0.1.0.tar.gz:

Publisher: ci.yml on wrl96/lazy-core

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for lazy_core-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2edfef2dcf396699736df9a87d6907bd16be263eb93a38407068753ea5affed6
MD5 b2b452cc3334a3c2d3e39fbbc11325e6
BLAKE2b-256 44de0949d96edfe635977810f287ce34618a7fc56d812adc298b1046e0ce6928

See more details on using hashes here.

Provenance

The following attestation bundles were made for lazy_core-0.1.0-py3-none-any.whl:

Publisher: ci.yml on wrl96/lazy-core

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page