tls-xb is a cli tool that fetches scores and GPA from Tsinglan Xiaobao.
- Access weighted and unweighted GPA, even when hidden.
- View detailed subject scores for all subjects.
- View scores from previous semesters.
- Color coded scores depending on performance.
- Tabled output.
- Tasks (
-t
,--tasks
)- View task scores, even for unreleased tasks.
- View proportion of each individual task.
-
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:
- Windows: Windows Terminal
- macOS: iTerm 2
- Linux: Kitty or WezTerm
Note
Uses development version of tls-xb.
Click to expand
Add this to your flake.nix
{
inputs = {
tls-xb = {
url = "github:hey2022/tls-xb";
inputs.nixpkgs.follows = "nixpkgs";
};
};
}
To install tls-xb
to your NixOS/Home Manager configuration, add the following to your environment.systemPackages
or home.packages
respectively:
inputs.tls-xb.packages.${pkgs.stdenv.hostPlatform.system}.default
In the terminal, run:
powershell -ExecutionPolicy ByPass -c "irm https://github.com/hey2022/tls-xb/releases/latest/download/tls-xb-installer.ps1 | iex"
In the terminal, run:
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/hey2022/tls-xb/releases/latest/download/tls-xb-installer.sh | sh
The release page contains precompiled binaries for:
- Windows
- macOS
- Linux
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.
A development shell is provided with the nix project flake,
to enter it run nix develop
.
For help, run tls-xb -h
.
- In your terminal, run
tls-xb login
to save your login details on your computer. - Run
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.