Skip to main content

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

Metadata

Release files for cses-cli 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cses-cli 0.1.1
File Size Uploaded Provenance Actions
cses_cli-0.1.1.tar.gz 3.3 kB Without provenance Details for cses_cli-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cses-cli 0.1.1
File Interpreter ABI Platform Actions
cses_cli-0.1.1-py3-none-any.whl Python 3 none any Details for cses_cli-0.1.1-py3-none-any.whl

Total release size: 7.2 kB

Release files / cses_cli-0.1.1.tar.gz

Download URL cses_cli-0.1.1.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
ebf3ed1994da3c386301422cdabe02af5f81717cef5185818c9d12a8343821a4
BLAKE2b-256 checksum
How to use checksums
33e076ac2f61d7ae2537485a3e52733c19955d7169231c7fd7bcbc8ed4097992
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.1

Release files / cses_cli-0.1.1-py3-none-any.whl

Download URL cses_cli-0.1.1-py3-none-any.whl
Size 3.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0c35a3c97f6059f4e7657ee0a610c6144098fd130cdcbcf8e3bb180f83285301
BLAKE2b-256 checksum
How to use checksums
d1f113dbc6ec6d7d6531d65fcc57c49ade80c2e880fd3c3e10f62b381a78b991
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.1

Security for cses-cli 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page