Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mizlan/usub
https://github.com/mizlan/usub
Last synced: 7 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/mizlan/usub
- Owner: mizlan
- Created: 2020-12-09T17:28:40.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-06-20T21:56:13.000Z (over 3 years ago)
- Last Synced: 2024-11-01T15:04:39.482Z (about 2 months ago)
- Language: Python
- Size: 34.2 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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] problemUSACO Submission Client
positional arguments:
problem USACO problem link or cpidoptional 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