A USC Class Schedule API wrapper
Project description
USC-Schedule
USC Schedule of Classes API wrapper
Introduction
This library provides a python interface for the USC Schedule of Classes api. It works for Python versions from 3.6 onwards.
Installation
$ pip install usc-schedule
Usage
Setup
from uscschedule import Schedule
schedule = Schedule()
Get department
csci_department = schedule.get_department(department_id="CSCI", semester_id=20201)
# Alternatively: schedule.get_department("CSCI", 20201)
print(csci_department.department)
print(csci_department.abbreviation)
print(csci_department.department_url)
# Prints:
# Computer Science
# CSCI
# http://www.cs.usc.edu/
Get course details
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.
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
usc-schedule-1.0.0.tar.gz
(5.2 kB
view hashes)
Built Distribution
Close
Hashes for usc_schedule-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d20efc98e1fd9d0bb3763b6db7e94864d9d6e149d7a6a8838d9aceecf86f8bf3 |
|
MD5 | ca7c418fbac36c985fdc4f01c9c8f0c1 |
|
BLAKE2b-256 | 1bc1f8a99b697f9e029ab45b7b76fa1f5a34fb9fe98abc725925c95573770bd6 |