Skip to content

Latest commit

 

History

History
64 lines (44 loc) · 1.27 KB

README.md

File metadata and controls

64 lines (44 loc) · 1.27 KB

installation

git clone https://github.com/mizlan/usub.git
cd usub
python -m venv venv
source venv/bin/activate # for fish: source venv/bin/activate.fish
pip install -r requirements.txt
pip install -e .

file submission

examples:

usub 739 -f sol.cpp # using the cpid
# or
usub 'http://www.usaco.org/index.php?page=viewproblem2&cpid=739' -f cownomics.cpp -l cpp11

submission status

examples:

usub 739 # using the cpid
# or
usub 'http://www.usaco.org/index.php?page=viewproblem2&cpid=739'

other options

From usub -h

usage: usub [-h] [--fresh] [--verbose] [-f FILE] [-l LANG] problem

USACO Submission Client

positional arguments:
  problem               USACO problem link or cpid

optional arguments:
  -h, --help            show this help message and exit
  --fresh               invalidate cookies and force fresh login
  --verbose             turn on verbose mode
  -f FILE, --file FILE  submission file
  -l LANG, --lang LANG  submission language

note: --verbose doesn't work at the moment.

contributing

please file issues, i'm open to PRs