Skip to main content

gradekit

成绩统计与等级评定小工具,可计算多门课程的加权总分、平均分、最高分、最低分,并给出等级评价。

安装

pip install gradekit

使用

from gradekit import analyze_student

result = analyze_student("李雷", [85, 90, 78], [40, 30, 30])
print(result["weighted"])   # 84.4
print(result["grade"])      # B(良好)

说明

  • scores 为各科分数,weights 为对应权重,两个列表长度必须一致。
  • 权重之和不是 100 时会自动按比例归一化。
  • 分数超出 0~100 或权重非正数时抛出 ValueError。

Metadata

Release files for gradekit 0.1.0

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

Source distribution (sdist)

Source distribution for gradekit 0.1.0
File Size Uploaded Provenance Actions
gradekit-0.1.0.tar.gz 2.7 kB Without provenance Details for gradekit-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 5.6 kB

Release files / gradekit-0.1.0.tar.gz

Download URL gradekit-0.1.0.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
16c4d3e94ca5059063be12ac39e691999ad18a256e7ee41de1784f8032acbc48
BLAKE2b-256 checksum
How to use checksums
cd18f9802958cd31916fc36ff5edbaee05242b55267b67a23667b251132a5274
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.0rc3

Release files / gradekit-0.1.0-py3-none-any.whl

Download URL gradekit-0.1.0-py3-none-any.whl
Size 3.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
01746ebf3116d5169374ce6d75520d8cdf795d20f61f8e0c0625e43c2edc9195
BLAKE2b-256 checksum
How to use checksums
4d7cc1d50f5d42a5e906735019cd7a4bbd4b8f3265e4accaf5af5cf272464278
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.0rc3

Security for gradekit 0.1.0

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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