Skip to main content

ojkit: Online Judge Kit

A lightweight command-line toolkit for competitive programming.

ojkit lets you browse Codeforces problems by rating, create a ready-to-use C++ workspace, fetch sample test cases, and run your solution against them.

Alpha: ojkit is currently under active development. Features and CLI behavior may change.

Features

  • Browse Codeforces problems by rating
  • Fuzzy-search problems from the terminal
  • Automatically create a C++ source file
  • Automatically fetch sample test cases
  • Compile solutions using g++
  • Run solutions against all sample tests
  • Simple ojkit run workflow
  • Cross-platform Python CLI

Installation

ojkit requires Python 3.10 or newer.

pip install --pre ojkit

A C++ compiler (g++) is currently required for running solutions.

Usage

Find a problem

ojkit

By default, ojkit searches for 800-rated Codeforces problems.

Specify another rating with:

ojkit -r 1200

Select a problem using the fuzzy finder and ojkit will create a workspace such as:

~/codeforces/4/A/
├── A.cpp
└── tests/
    ├── input1.txt
    ├── output1.txt
    ├── input2.txt
    └── output2.txt

Run a solution

Enter the generated problem directory:

cd ~/codeforces/4/A

Then run:

ojkit run

ojkit will compile the C++ solution using g++ and run it against the downloaded sample test cases.

Example:

✓ Compiled successfully
Test 1: PASS
Test 2: PASS

Development

Clone the repository:

git clone https://github.com/YOUR_USERNAME/ojkit.git
cd ojkit

Install it in editable mode:

pip install -e .

Changes to the Python source will then be reflected immediately when running:

ojkit

Status

ojkit is currently in alpha.

Current version:

0.1.0a1

The initial releases focus on Codeforces and C++ support. More online judges, languages, configuration options, and runner improvements may be added later.

License

MIT Online Judge Kit

Metadata

Release files for ojkit 0.1.0

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

Source distribution (sdist)

Source distribution for ojkit 0.1.0
File Size Uploaded Provenance Actions
ojkit-0.1.0.tar.gz 6.9 kB Without provenance Details for ojkit-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ojkit 0.1.0
File Interpreter ABI Platform Actions
ojkit-0.1.0-py3-none-any.whl Python 3 none any Details for ojkit-0.1.0-py3-none-any.whl

Total release size: 14.0 kB

Release files / ojkit-0.1.0.tar.gz

Download URL ojkit-0.1.0.tar.gz
Size 6.9 kB
Tags Source
SHA-256 checksum
How to use checksums
a934d07fd78aab528ef1bb3f7e96a189df1be69e8ea28a7a400783b01f27ca13
BLAKE2b-256 checksum
How to use checksums
3879cf6c8c8eaa72db884fd4f864383d08f2d2f0a0ab515aab48234cf3a1bd93
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / ojkit-0.1.0-py3-none-any.whl

Download URL ojkit-0.1.0-py3-none-any.whl
Size 7.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ac97366a397358fbcfc758ce5b71c6c82eb631f53c57c9c2df9762787e0c8632
BLAKE2b-256 checksum
How to use checksums
28bc2d88ec79fd8840942d6debbf2f92e08e78eeba5a13f49a52f8ffdd630654
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Security for ojkit 0.1.0

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.

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