No description
Find a file
2025-01-31 17:05:07 +03:00
codeforces init: MVP 2025-01-31 17:05:07 +03:00
.gitignore init: MVP 2025-01-31 17:05:07 +03:00
cf init: MVP 2025-01-31 17:05:07 +03:00
LICENSE init: MVP 2025-01-31 17:05:07 +03:00
main.py init: MVP 2025-01-31 17:05:07 +03:00
pyproject.toml init: MVP 2025-01-31 17:05:07 +03:00
README.md init: MVP 2025-01-31 17:05:07 +03:00
requirements.txt init: MVP 2025-01-31 17:05:07 +03:00

Codeforces Tool. Reborn.

This is a minimally working clone of cf-tool, written in Python. Only C++ templates are supported, it's ugly, but it works.

How to run

git clone https://github.com/wzrayyy/cftool-reborn
cd cftool-reborn
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

You can now run it with python3 ./main.py, or add a helper script cf to your PATH. Run cf config to set your login details or configure a template.

TODO

  • error handling
  • pretty colors
  • custom tests
  • methods below
clone_parser = subparsers.add_parser('clone', help = "Clone a contest locally.")
open_parser = subparsers.add_parser('open', help = "Open a problem in the browser.")
pull_parser = subparsers.add_parser('pull', help = "Fetch submissions from Codeforces.")
race_parser = subparsers.add_parser('race', help = "Set up a virtual contest.")
sid_parser = subparsers.add_parser('sid', help = "Use default web browser to open the submission page.")
stand_parser = subparsers.add_parser('stand', help = "Show the contest standings.")
watch_parser = subparsers.add_parser('watch', help = "Watch the first 10 submissions of current contest")