Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

opencontest-client-2.3.0.tar.gz (15.3 kB view hashes)

Uploaded Source

Built Distribution

opencontest_client-2.3.0-py3-none-any.whl (15.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page