Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mizlan/usub


https://github.com/mizlan/usub

Last synced: 7 days ago
JSON representation

Awesome Lists containing this project

README

        

# usub

[installation](#installation) | [file submission](#file-submission) | [submission status](#submission-status) | [contributing](#contributing)

## installation

``` sh
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:

``` sh
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:

``` sh
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