Command Line Interface

A CLI tool to fetch academic routine with various filtering options.

Basic Usage

routinepy --routine-type <TYPE> [OPTIONS]

Required Arguments

--routine-type <TYPE>

Required. Specifies the type of routine to fetch.

Choices: see RoutineType for valid values

Optional Filters

--semester-type <TYPE>

Semester filter (default: present).

Choices: see SemesterType for valid values

--faculty-code <CODE>

Short code of the faculty member.

--room <NUMBER>

4-digit room number filter.

--program-code <CODE>

Program code filter.

Choices: see ProgramCode for valid values

--intake <NUMBER>

Intake number

--section <NUMBER>

Section number (requires intake).

--course-code <CODE>

Course code to filter by.

Output Options

--format <FORMAT>

Output format (default: text).

Choices: json, html, text

--output-dir <PATH>

Path to save output file.

--verbose

Enable detailed logging.

Examples

  • Fetch current class routine of CSE (day) department in JSON format:

routinepy --routine-type class --program-code 006 --format json
  • Fetch current class routine of CSE (day) department intake 50:

routinepy --routine-type class --program-code 006 --intake 50
  • Fetch exam routine for specific program:

routinepy --routine-type mid --program-code 006