A very simple OpenContest command line client written in Python
Project description
OpenContest CLI
A very simple OpenContest command line client written in Python and requests.
Usage
Install this client using pip
:
pip install opencontest-cli
Register an account on an OpenContest server:
occ register -s homeserver.com -N name -E email -U username -P password
Save username, homeserver (the server you registered your account on), and password to disk:
occ save -U username -H homeserver.com -P pasword
Get information about an OpenContest server:
occ about -s server.com
Get information about a contest:
occ info -s server.com -c contest
View the number of solves of each problem:
occ solves -s server.com -c contest
View the submission history of all users in a contest:
occ history -s server.com -c contest
Download problem statement:
occ problems -s server.com -c contest -p problem
Submit code:
occ submit -s server.com -c contest -p problem -c code_file
Check user status:
occ status -s server.com -c contest
Query your contest submission history:
occ submissions -s server.com -c contest
Get code for a specific submission number:
occ code -s server.com -c contest -n submission_number
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
opencontest-cli-2.5.1.tar.gz
(15.4 kB
view hashes)
Built Distribution
Close
Hashes for opencontest_cli-2.5.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56e1847095a365fbc9b21a5a3fad6e007d688dbc8b20a825fa7b42c282e42a39 |
|
MD5 | ddf4586bced48da5b367d5d75950e9b9 |
|
BLAKE2b-256 | b35c3ec0db6ec00430f1d911dc5fac0cce624ab00e1c9cea7c684d653d60995e |