Skip to content

Latest commit

 

History

History
59 lines (37 loc) · 1.58 KB

README.md

File metadata and controls

59 lines (37 loc) · 1.58 KB

bobcat

A CLI tool to interface with Kattis, the online judge.

demo.mp4

Features

  • 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.

Installation

From AUR

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

From source

git clone https://github.com/0WN463/bobcat
cd bobcat
pip install .

Configuration

Config file

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.

Login credentials

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.

Skipped questions

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)