tls-xb is a cli tool that fetches scores and GPA from Tsinglan Xiaobao.
tls-xb uses viuer to display the captcha, so a terminal supporting one of the supported graphics protocols is needed. Terminals supporting sixel be can found here.
Recommended terminals:
The release page contains precompiled binaries for:
tls-xb is written in Rust, so the Rust toolchain will be needed to compile it.
cargo install tls-xb
# Git version
cargo install --git https://github.com/hey2022/tls-xb.git
To update tls-xb simply reinstall a newer version.
git clone https://github.com/hey2022/tls-xb.git
cd tls-xb
# Build
cargo build
# Run
cargo run
# Install
cargo install --path .
tls-xb login
to save your login details on your computer.tls-xb
to run the program.No tls-xb only fetches data from https://tsinglanstudent.schoolis.cn/api to calculate your GPA, which does not expose an api to change your GPA.
GPA Delta is the change in GPA when the grade of a subject increases or drops (when not changing to or from F). For example, if English increases from A to A+, GPA Delta would be the resulting change in GPA.