Davda-James/cses-cli

★ 0Forks 0PythonGitHub ↗Compare

README

CSES CLI

A command-line tool to submit solutions directly to the CSES Problem Set from the terminal.

It handles authentication, CSRF tokens, and submission tracking automatically.


Features

  • Login with persistent session support
  • Submit solutions using a single command
  • Automatic problem ID extraction from URL
  • CSRF token handling
  • Language detection from file extension
  • Submission status tracking
  • Session reuse to avoid repeated login

Installation

pip install cses-cli

First Time Setup

cs setup

Submitting any codefile for any problem set

Just copy the problem set url : eg. https://cses.fi/problemset/view/1133/ from cses.

cs <file_path_with_extension> <problem_set_url>

And Eureka! your code is submitted, it will print error if test cases failed with the error message and if all test cases passed it will succeed

Contributors

Davda-James

Issues