Skip to main content

No project description provided

Project description

rbx

The go-to CLI tool for programming competitions setters.

Python FastAPI JSON


Table of Contents

AI Disclaimer

This repo was written until 2026 (~1400 commits) without the use of AI. Thus, the meaty part of the tool was written by a human that (hopefully) know what they're doing. Using AI, though, was proved to be much more efficient and less error prone if a human was kept in the loop. All AI features developed in this tool pass through a PR review and are carefully reviewed by the owner. This helps the owner maintain the project with less time, and implement more useful features in an efficient way (UI features, nice-to-have features, etc).

The owner plans to NOT USE AI for the execution engine of the tool: running solutions, generating tests, etc. These are critical parts of the tool that don't need to change that much, and should be kept stable.

Overview

GitHub license PyPI pyversions PyPI version shields.io

rbx is a CLI tool that empowers setters from the competitive programming community.

A flexible setting tool, as powerful as Polygon, right on your terminal.


Features

  • 🧱 Structure: describe your problem or contest structure with the use of YAML configuration files.
  • 🤖 Generation: provides a simple way to describe your whole testset, including both manually added and generated testcases.
  • 🔨 Testing: provides commands for automatically running correct and incorrect solutions against the testcases of your problem, automatically judging whether the verdict was as expected or not.
  • ✅ Verify: checks if your testcases and solutions are strictly conformant with the use of validators and unit tests.
  • 📝 Statements: provides tooling for writing and building statements, also ensuring they're easily synchronized with your testset.
  • 📤 Package: provides a single command for packaging your problems for use in your preferred judge system.

Documentation

You can read the docs here.


Contributing

Prerequisites

  • Python 3.9+
  • uv — package manager
  • mise — task runner

Getting Started

git clone https://github.com/rsalesc/rbx.git
cd rbx
mise run sync
pre-commit install

Common Tasks

All development commands are run through mise:

Command Description
mise run sync Install/sync all dependencies
mise run lock Regenerate uv.lock
mise run lint Run linter
mise run lint-fix Run linter with auto-fix
mise run format Format code
mise run format-check Check formatting without changes
mise run check Run all checks (lint + format)
mise run test Run tests (excludes e2e/slow/docker)
mise run test-cov Run tests with coverage
mise run test-e2e Run e2e tests
mise run build Clean build the package

Run mise tasks to see all available tasks.

Code Style

  • Single quotes for strings
  • Absolute imports only — no relative imports
  • Conventional Commits — enforced by pre-commit hook

All style rules are enforced automatically by pre-commit hooks (ruff check, ruff format, commitizen).

Submitting Changes

  1. Create a branch from main
  2. Make your changes
  3. Run mise run check and mise run test
  4. Commit using Conventional Commits format
  5. Open a pull request

License

This project is protected under the Apache License 2.0 License. For more details, refer to the LICENSE file.


Return


Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rbx_cp-0.38.0.tar.gz (1.4 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rbx_cp-0.38.0-py3-none-any.whl (1.1 MB view details)

Uploaded Python 3

File details

Details for the file rbx_cp-0.38.0.tar.gz.

File metadata

  • Download URL: rbx_cp-0.38.0.tar.gz
  • Upload date:
  • Size: 1.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.14

File hashes

Hashes for rbx_cp-0.38.0.tar.gz
Algorithm Hash digest
SHA256 f4af5a4fbda3049421f18d58ef17888ac0cd4246b52f609ae43f18ba557e8102
MD5 dcd8090b524ba060b7b23ed5f63edd80
BLAKE2b-256 4eb7a2188f9d03ef41a6d8d615dc55cbefb6529dbc427ecc2149713cd201311a

See more details on using hashes here.

File details

Details for the file rbx_cp-0.38.0-py3-none-any.whl.

File metadata

  • Download URL: rbx_cp-0.38.0-py3-none-any.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.14

File hashes

Hashes for rbx_cp-0.38.0-py3-none-any.whl
Algorithm Hash digest
SHA256 10e53ff9eb4535ae9dc41d9d5eb13faa2af19131f2c09e8f6effc0e7d1976e1f
MD5 a7e791e8ceab054ff4e49234d6908e99
BLAKE2b-256 d376f20bf4c3d9e2d4b0d3fe6bbe849b412c4cf0d6e46a59baeea3d6be9c6d34

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page