https://github.com/mukundan314/python-codeforces
Codeforces API wrapper for python
https://github.com/mukundan314/python-codeforces
codeforces codeforces-api competitive-programming python
Last synced: 26 days ago
JSON representation
Codeforces API wrapper for python
- Host: GitHub
- URL: https://github.com/mukundan314/python-codeforces
- Owner: Mukundan314
- License: mit
- Created: 2018-10-25T13:55:51.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-03-04T07:59:01.000Z (about 6 years ago)
- Last Synced: 2025-03-27T21:06:36.984Z (about 1 month ago)
- Topics: codeforces, codeforces-api, competitive-programming, python
- Language: Python
- Homepage:
- Size: 76.2 KB
- Stars: 8
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
python-codeforces
Codeforces API wrapper for python
---
### Installation
#### Using `pip`
```shell
pip install python-codeforces
```#### From source
```shell
git clone https://github.com/Mukundan314/python-codeforces.git
cd python-codeforces
pip install .
```#### For Development
```shell
git clone https://github.com/Mukundan314/python-codeforces.git
cd python-codeforces
pip install -e .
```### Commandline tools
#### `cf-run`
Run a program against sample testcases.
```shell
usage: cf-run [-h] [-t TIMEOUT] [-g] contestId index programpositional 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 testedoptional 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
Documentation can be found at https://python-codeforces.readthedocs.io/en/latest/
### License
See [LICENSE](LICENSE).