Skip to main content

A USC Class Schedule API wrapper

Project description

USC-Schedule

USC Schedule of Classes API wrapper

PyPI version

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.course_data.title)
print(csci_course.course_data.units)
print(csci_course.course_data.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.

Files for usc-schedule, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size usc_schedule-0.1.1-py3-none-any.whl (17.7 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size usc-schedule-0.1.1.tar.gz (4.3 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page