Skip to main content

Codeforces API wrapper for python

Project description


Codeforces API wrapper for python


Using pip

pip install python-codeforces

From source

git clone
cd python-codeforces
pip install .

For Development

git clone
cd python-codeforces
pip install -e .

Commandline tools


Run a program against sample testcases.

usage: cf-run [-h] [-t TIMEOUT] [-g] contestId index program

positional arguments:
  contestId             Id of the contest. It is not the round number. It can
                        be seen in contest URL.
  index                 A letter or a letter followed by a digit, that
                        represent a problem index in a contest.
  program               Path to executable that needs to be tested

optional arguments:
  -h, --help            show this help message and exit
  -t TIMEOUT, --timeout TIMEOUT
                        Timeout for program in seconds, -1 for no time limit
                        (default: 10)
  -g, --gym             If true open gym contest instead of regular contest.
                        (default: false)


Documentation can be found at



Project details

Download files

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

Files for python-codeforces, version 0.2.7
Filename, size File type Python version Upload date Hashes
Filename, size python_codeforces-0.2.7-py3-none-any.whl (7.4 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size python-codeforces-0.2.7.tar.gz (5.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page