Use it only on your own account, at a modest request rate, and check UW's acceptable-use policy for automated access. Full terms: DISCLAIMER.md
The recording uses synthetic data from scripts/demo.py; no real student record is shown.
A read-first command-line tool and Python client for UWaterloo Quest (the university's PeopleSoft student self-service system).
It logs in with a browser cookie session (Quest uses SSO + Duo, which you do once in your browser) and reads your own records into plain data — no enrolling, no payments, and Personal-Information pages are blocked in code.
Install
From PyPI (the package is uwquest; the command it installs is quest):
pipx install uwquest # or: uv tool install uwquest
pipx install 'uwquest[browser]' # also read cookies live from the browser
pipx install 'uwquest[browser,tui]' # plus the terminal UI
pip install uwquest # as a library in an existing environment
From source:
git clone https://github.com/amolvenkataraman/uwquest && cd uwquest
uv tool install . # base (file-based cookies)
uv tool install '.[browser]' # also read cookies live from the browser
Cookies
Log into Quest in your browser, then either:
- Export the
pecs.uwaterloo.cacookies to JSON and point the tool at it (--cookies-file path.json, or put it at~/.config/quest/cookies.json), or - Read them live from the browser:
quest --browser brave holds.
The session slides while you use it, so repeated commands keep it alive until UW's SSO cap; when it expires the tool tells you to log in again.
Usage
quest status # one-screen summary: program, balance, holds, next enrollment
quest schedule # enrolled classes this term
quest grades --term "Winter 2026" # grades (defaults to the latest term)
quest terms # term labels available for grades
quest account # per-term registration status and balance
quest holds # service indicators
quest milestones # requirements, scholarships
quest program # plan, academic load, campus
quest enrollment-dates # when enrollment opens
quest financial-aid # aid years on record
quest classes MATH 135 # course availability (status per section, no enrolling)
quest classes CS 486 --seats # also fetch seat counts (slower)
quest classes PMATH --open-only # whole subject, open sections only
quest transcript -o transcript.pdf # download the unofficial transcript PDF
quest schedule --json # raw JSON on any command (--json also works before it)
quest tui # interactive terminal UI (needs the 'tui' extra)
The transcript PDF is only fetched here; parsing it (GPA, averages, standing)
is a separate service. academic-requirements is experimental (UW renders that
report dynamically).
Terminal UI
quest tui opens a tabbed interface — Dashboard, Schedule, Grades (type a term),
Account, Holds, and a Classes browser with coloured Open/Closed/Waitlist status.
Install it with the tui extra.
How it works
Session. Quest sits behind UW's SSO and Duo, so the tool never handles a
password. QuestSession copies an existing browser session into a
requests.Session, either from an exported JSON array of cookies
(name/value/domain/path) or straight from the browser's cookie store via
browser_cookie3. Every request goes to the PeopleSoft content URL for one
component, https://quest.pecs.uwaterloo.ca/psc/SS/ACADEMIC/SA/c/<COMPONENT>,
not the portal frame around it. Each response is checked for the sign-in page
(a cmd=login or /signon URL, a sign-in title, or userid/pwd fields); if it
shows up, the call raises SessionExpired instead of parsing a login form.
Requests are serialised by a lock and spaced at least 0.5 s apart.
heartbeat() loads the landing page to keep the session sliding.
Pages and state. Each reader handles one component. A GET returns the page,
and the session stores that page's hidden form fields (ICSID, ICStateNum and
the rest) per component. action() POSTs those stored fields back with an
ICAction and the reader's own fields, then replaces the stored state with the
new response's, so ICStateNum stays in step with the server. If a component
has no state yet, it is fetched first. Where they can, parsers read PeopleSoft's
element ids (for example STDNT_ENRL_SSV1_CRSE_GRADE_OFF$0) rather than layout.
Some examples:
- Grades: GET the term picker, then POST its GO action with the chosen term's index.
- Class search: one POST of
CLASS_SRCH_WRK2_SSR_PB_CLASS_SRCHwith subject, number, term and career.--seatsopens each section (MTG_CLASS_NBR$<n>) and goes back, so it costs two requests per section and stops at 40 sections. - Transcript:
report()selects the report type, presses View, follows the/view/link in the response and checks that the result starts with%PDF.
Read-only allowlist. action() POSTs only the ICActions listed in
READ_ONLY_ACTIONS (in core/session.py), and each one is tied to its component:
| Component | Allowed actions |
|---|---|
UW_SS_MENU.UW_SSR_SSENRL_GRDE.GBL (grades) |
the term picker's …PB_GO button |
UW_CEM.UW_CLASS_SRCH.GBL (class search) |
CLASS_SRCH_WRK2_SSR_PB_CLASS_SRCH, CLASS_SRCH_WRK2_SSR_PB_BACK, MTG_CLASS_NBR$<n> |
SA_LEARNER_SERVICES.SSS_TSRQST_UNOFF.GBL (transcript) |
DERIVED_SSTSRPT_TSCRPT_TYPE3, GO1 |
Any other action, or any action on another component, raises BlockedAction
before a request is sent. report() checks its whole sequence before it starts,
and get() refuses a query string that carries an ICAction. Nothing in the
package touches the shopping cart, enrollment, payments or any form that saves
data.
Personal-Information blocklist. Before any request, get and action check
the component name against
PERSONAL|ADDR|PHONE|EMAIL|EMERG|DISABILITY|ETHNIC|GENDER|DEMOGRAPH
(case-insensitive). A match raises BlockedComponent and no request is sent.
report() runs the same check before it starts.
Status
Working: the session layer (file + browser cookies, the PeopleSoft request state machine, keep-alive, a Personal-Information blocklist) and readers for status, schedule, grades, account, holds, milestones, program, enrollment dates, financial aid, course availability (with seat counts), and the transcript PDF, plus a Textual TUI. All read-only; writes (enrollment) are intentionally not implemented.
Development
uv venv .venv && uv pip install --python .venv/bin/python -e '.[dev]'
.venv/bin/pytest
.venv/bin/python scripts/demo.py account # any command on synthetic data; no network or cookies
License
MIT © 2026 Amol Venkataraman. Provided WITHOUT ANY WARRANTY — see LICENSE and DISCLAIMER.md. Not affiliated with or endorsed by the University of Waterloo or Oracle. "Quest" and "PeopleSoft" are used only to describe compatibility.
Metadata
Release files for uwquest 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| uwquest-0.1.0.tar.gz | 29.2 kB | Without provenance | Details for uwquest-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| uwquest-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for uwquest-0.1.0-py3-none-any.whl |
Total release size: 62.2 kB
Release files / uwquest-0.1.0.tar.gz
| Download URL | uwquest-0.1.0.tar.gz |
|---|---|
| Size | 29.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
36b633fb3aff1285c502ac85f3f479271bc56a08beef35a77bffeae56a6f0e41
|
|
BLAKE2b-256 checksum How to use checksums |
e297088e80b7f67cfabc35106035d7d65acc694f414619c9cab47345a985b427
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.2
|
Release files / uwquest-0.1.0-py3-none-any.whl
| Download URL | uwquest-0.1.0-py3-none-any.whl |
|---|---|
| Size | 33.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5dedafab64ade2578d2fae6b67b6d98b0a07c800c2ad403343916d2efcb1b786
|
|
BLAKE2b-256 checksum How to use checksums |
8ee7f47fd1e74f3b3c05c07bd3866c03740fb0b5fd3d34bec4aabdb0fd26d351
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.2
|
Security for uwquest 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.