A CLI tool to interface with Kattis, the online judge.
demo.mp4
- Browse questions
- Submit solution
- Run and test solution against samples
- Multiple options to configure
All in the command line, without having to nagivate Kattis' website.
If you are using Arch Linux, this script is available on the AUR.
Use the AUR helper of your choice, eg yay
.
yay -S bobcat-git
git clone https://github.com/0WN463/bobcat
cd bobcat
pip install .
Config will be retrieved in order from $XDG_CONFIG_HOME/bobcat/config.ini
, $HOME/.bobcat.ini
and <SCRIPT_PATH>/config.ini
(default config).
An example of the config file can be referenced from the default config.
To avoid having to continually login, bobcat
will try to reference .secret.ini
under your CONFIG_DIR
(XDG_CONFIG_HOME
if it is set, otherwise HOME
).
It should have the following structure.
[credentials]
user = ...
password = ....
Note that this storage is insecure, so use at your own risk.
To keep record of questions that were previously skipped, the ID of skipped questions are stored in plain-text under $XDG_STATE_HOME/bobcat/skipped
($HOME/.local/state/bobcat/skipped
if XDG_STATE_HOME
is not defined)