Skip to main content

Course-Comparator 课程比较器

用于比较不同的专业、届别或年级之间的课程设置,供转专业、降级学生确认可冲抵及需补修的课程。

使用方法

整理数据集

将各个课程的数据集按照如下格式整理:

<数据集根目录> / <专业> / <届别> / <学期>.csv

例如,人工智能专业 2021 级第 1 ~ 8 学期的课程数据位于,分别存于:

<数据集根目录> / 人工智能 / 2021 / 1.csv
<数据集根目录> / 人工智能 / 2021 / 2.csv
...
<数据集根目录> / 人工智能 / 2021 / 8.csv

csv 文件的格式如下:

csv 表头 含义 示例 备注
course_code 课程代码 MATA5B1001 将解析为字符串
course_name 课程名称 高等数学(上) 将解析为字符串
credit 课程学分 5 将解析为浮点数
required 是否必修 1 1 为必修,0 为选修
course_code,course_name,credit,required
MATA5B1001,高等数学(上),5,1
...

安装本软件包

pip install CourseComparator

运行程序

# 导入课程比较器模块
import CourseComparator as cc

# 传入数据集根目录,初始化数据加载器
loader = cc.init("<数据集根目录>")

# 或:传入网络接口的 base_url 和 token,初始化为网络数据加载器
# loader = cc.init_internet(
#     "<base_url>",
#     "<your_token_here>",
#     "./__cc_cache__",
# )

# 获取旧的课程方案
old_courses = loader("<专业>", "<届别>", <学期>)

# 获取新的课程方案
new_courses = loader("<专业>", "<届别>", <学期>)

# 打印两个方案的差异
print(old_courses - new_courses)

Metadata

Release files for CourseComparator 0.1.2

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

Source distribution (sdist)

Source distribution for CourseComparator 0.1.2
File Size Uploaded Provenance Actions
coursecomparator-0.1.2.tar.gz 8.1 kB Without provenance Details for coursecomparator-0.1.2.tar.gz

Built distribution (wheel)

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

Total release size: 17.5 kB

Release files / coursecomparator-0.1.2.tar.gz

Download URL coursecomparator-0.1.2.tar.gz
Size 8.1 kB
Tags Source
SHA-256 checksum
How to use checksums
d8320cbab4e45b48bf5ae25f2ee70a2936720260e8498a984518fabf45df4e09
BLAKE2b-256 checksum
How to use checksums
e37d0307ac793a71567c96dd133fba04532d5a8fb6f850e4d37640a978be7f9c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.3

Release files / coursecomparator-0.1.2-py3-none-any.whl

Download URL coursecomparator-0.1.2-py3-none-any.whl
Size 9.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
eae3e053426aad9077d762c27e7a3bd7ac2bff69629483e58fcfc239aace51f9
BLAKE2b-256 checksum
How to use checksums
db5cbd84d2113f5d5cbce684168a093cdffa0d3e364fa9bb71faa18242adee05
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.3

Security for CourseComparator 0.1.2

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