A very simple OpenContest command line client written in Python
Project description
OpenContest Client
A very simple OpenContest command line client written in Python. The only dependency is the requests library. Tested with Linux only. Please report bugs on our issues page.
Usage
You can get started with
pip install opencontest-client
Now register an account on an OpenContest server with
occ register -s homeserver.com -N name -E email -U username -P password
You can save your username, homeserver (the server you registered your account on), and password with
occ save -U username -H homeserver.com -P pasword
Query information about an OpenContest server with
occ about -s server.com
You can view the contests on the server with
occ contests -s server.com
Check the contest info with
occ info -s server.com -c contest
Save a problem statement with
occ problems -s server.com -c contest -p problem
Now you can submit with
occ submit -s server.com -c contest -p problem -c code_file
And check your status with
occ status -s server.com -c contest
You can query your submission history for a contest
occ submissions -s server.com -c contest
And examine a particular submission with
occ code -s server.com -c contest -n submission_number
View the number of solves of each problem with
occ solves -s server.com -c contest
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
Built Distribution
File details
Details for the file opencontest-client-2.3.0.tar.gz
.
File metadata
- Download URL: opencontest-client-2.3.0.tar.gz
- Upload date:
- Size: 15.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 605110a6bcc6bfdc1fdaf07409bc832bf3c4865d448f7aba4412da1a2230fb7b |
|
MD5 | 28ef211d1be87877f80e02e37e0b3eff |
|
BLAKE2b-256 | dac5a97ca228ced04853785c95cb594fbdbab3641a803ace1ff4b52fae7dcf54 |
File details
Details for the file opencontest_client-2.3.0-py3-none-any.whl
.
File metadata
- Download URL: opencontest_client-2.3.0-py3-none-any.whl
- Upload date:
- Size: 15.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60568dabd09df288de658790d4897d30827aee5c9f90ce490cf6a5f9cf80f58f |
|
MD5 | fb56a83c62e5ff7b479249e5e1a7ac2b |
|
BLAKE2b-256 | 80fb2417185969f381490c81d083ddfc1325a9e624bdb2631a77d9ec261ec282 |