https://github.com/lcian/catcoder-cli
🧑💻 A CLI for the Cloudflight Coding Contest
https://github.com/lcian/catcoder-cli
ccc codingcontest
Last synced: 3 months ago
JSON representation
🧑💻 A CLI for the Cloudflight Coding Contest
- Host: GitHub
- URL: https://github.com/lcian/catcoder-cli
- Owner: lcian
- Created: 2024-10-08T13:09:39.000Z (8 months ago)
- Default Branch: master
- Last Pushed: 2025-03-04T22:19:38.000Z (3 months ago)
- Last Synced: 2025-03-04T23:18:59.994Z (3 months ago)
- Topics: ccc, codingcontest
- Language: Python
- Homepage:
- Size: 20.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# catcoder-cli
This is a Python package that provides the `ccc` CLI tool to interact with the Catcoder platform for the [Cloudflight Coding Contest](https://register.codingcontest.org/).
## Installation
```
pip install catcoder-cli
```## Usage
1. Use `ccc setup` to set up your credentials for CatCoder:
```
ccc setup
```where:
- `contest_id` is the ID of the contest you are participating in (can be found in the URL when you access the contest from CatCoder),
- `session_cookie` is the value of the `SESSION` cookie in your browser (can be found using the developer tools),
- `xsrf_token` is the value of the `XSRF-TOKEN` cookie in your browser (can be found using the developer tools) – could be empty, sometimes it's not enabled.2. Use `ccc gen` to start working on a new level of the current contest.
This will detect the current level you are working on, create a new directory containing the input files and a Python solution template, and open the problem statement in your browser.
3. Implement your solution and run it to produce the `.out` files.
4. Use `ccc submit` to submit your solutions to CatCoder.
You will get immediate feedback on whether or not your submissions are accepted.
You will also be able to upload your code if you want to.