一个USC类调度API包装器
usc-schedule的Python项目详细描述
USC时间表
USC类计划API包装器
简介
这个库为USC类调度api提供了一个python接口。它适用于3.6以后的Python版本。在
安装
$ pip install usc-schedule
使用
设置
fromuscscheduleimportScheduleschedule=Schedule()
获取部门
^{pr2}$获取课程详情
csci_course=schedule.get_course(course_id="CSCI-201",semester_id=20201)# Alternatively: schedule.get_course("CSCI-201", 20201)print(csci_course.title)print(csci_course.units)print(csci_course.description)# Prints:# Principles of Software Development# 4.0# Object-oriented paradigm for programming-in-the-large in Java; writing sophisticated concurrent # applications with animation and graphic user interfaces; using professional tools on team project.# Prerequisite: CSCI 104L.
- 项目
标签: