Crate ubs_lib

source ·
Expand description

ubs

ubs provides an interface for fetching real-time Univeristy at Buffalo class schedules.

Usage

use ubs_lib::{Course, Semester};

let mut schedule_iter = ubs_lib::schedule_iter(
    Course::Cse115,
    Semester::Spring2023,
).await?;

while let Some(schedule) = schedule_iter.try_next().await? {
    for group in schedule?.group_iter() {
        for class in group.class_iter() {
            // do stuff
        }
    }
}

Modules

  • Low-level access to the schedule parser.
  • Low-level access to the host connection.

Enums

  • An enum of available careers in the catalog.
  • An enum of available courses in the catalog.
  • Error when parsing id.
  • Error when iterating schedules.
  • An enum of available semesters in the catalog.

Functions