A Python CLI for searching George Mason University’s Schedule of Classes without clicking through Patriot Web’s pagination. Built because I’m starting a PhD at GMU in Fall 2026 and wanted a faster way to plan a semester.
It hits Banner 9’s public JSON API directly (the same endpoints patriotweb
uses for the no-login Schedule of Classes page), so no authentication is
required for read-only browsing.
What it does
- Search by subject, course number, or title keyword. Course numbers take
a comma-separated list —
-c 530,542,618checks three specific courses instead of paging through an entire subject. Filters cover days of the week, time window, modality (in-person / online / hybrid), course level (upper-division, graduate, doctoral), and open seats only. - Conflict-aware coloring — every search result is color-coded
against a saved
my_schedule.txt(your current sections) andmy_history.txt(courses you’ve already taken). Red means you’ve taken it, yellow means it’s already on your schedule, magenta means it overlaps something you’re taking, green means it’s free. No flag needed; one glance answers “can I actually take this?” - Filter to “no conflicts” — one flag hides anything that would collide with what you’re already taking, rather than just tinting it.
- Two front ends, one implementation. Flags for when you know what you
want; a guided menu (
gmu menu) that walks through the same options as prompts for when you don’t. Either way you can tick sections straight out of the results into your schedule, and add or drop entries in both saved lists from inside the tool — no hand-editing files to swap a section. The menu doubles as a double-click launcher on Windows, so planning a semester doesn’t have to start with a terminal. - Cache results with a 1-hour TTL so re-searching the same subject is
instant;
--freshbypasses it when you want live seat counts. - Export your schedule to an RFC 5545
.icsfile — weekly recurring events through the end of term, with a properVTIMEZONEso daylight saving lands correctly in Apple Calendar, Google Calendar, and Outlook.
Building on an API nobody documents
Banner’s JSON endpoints are an internal detail of GMU’s registration site, not a published interface. They can change without notice, and the interesting design problem was making that acceptable for a tool other people might rely on.
Three things carry that weight:
- The failure is legible. When a response doesn’t match what the tool expects — an unexpected status, HTML instead of JSON, a section missing fields — it raises an error saying the tool is out of date, that the user did nothing wrong, and where to report it. Not a stack trace.
- A scheduled job watches for drift. A weekly GitHub Action runs contract tests against the live API: term shape, section parsing, meeting times, modality classification, and whether the subject and keyword filters still actually narrow. If GMU changes something, the job fails and I get an email instead of a confused bug report months later.
- The regular test suite stays offline. It runs against captured real API responses, so it’s fast and deterministic, and it fails loudly if the response shape drifts. CI covers Python 3.11 through 3.13.
The blast radius is deliberately small, too: essentially all of the coupling to Banner lives in two modules, so adapting to a change is a contained fix rather than an archaeology project.
Why it exists
SRCT’s schedules project covered
similar ground but was archived in late 2022, was a Rails web app (not a
CLI), and predates GMU’s migration to the current Banner 9 stack. This is a
fresh, terminal-native take aimed at the “I want to plan a semester quickly”
use case.
It installs in one command with pipx, needs nothing but Python 3.11+, and is MIT licensed if anyone wants to fork it for their own school’s Banner instance.