Skip to main content

A comprehensive Python API for Competitive Programming sites like Codeforces

Reason this release was yanked:

going to reupload

Project description

CF Pipeline

A command-line interface tool for automating Codeforces competitive programming workflows.

Version Status

Overview

CF Pipeline is a CLI application that streamlines interaction with the Codeforces competitive programming platform. Built with a "plumbing and porcelain" architecture (inspired by Git), it provides a set of composable commands for automating common Codeforces tasks.

Features

  • Problem retrieval: Download contest problems directly to your local environment
  • Solution testing: Test your solutions against sample test cases before submission
  • Workflow automation: Combine commands to create custom workflows
  • Framework extensibility: Build your own commands on top of the core framework

Installation

from github:

  • fork and pull repository
  • navigate to project in terminal
  • from the top level of project, run
pip install -e .
pip install -r requirements.txt

or get it straight from pypi with

pip install cf-pipeline

Usage

Basic commands:

# Get a specific problem
cf-getproblem <contest-id> <problem-index>

# Test your solution against problem test cases
cf-testproblem <solution-file> <contest-id> <problem-index>

# plus many more.

for a complete list of commands, see ABOUT_THE_APPS.md

Architecture

CF Pipeline follows a modular approach:

  • Core modules: Problem representation, contest data, and configuration management
  • Commands: Single-purpose tools that can be combined into workflows
  • API utilities: Tools for interacting with the Codeforces API

Why Use CF Pipeline?

  • Save time: Automate repetitive tasks in the competitive programming workflow
  • Focus on coding: Reduce time spent on administrative tasks
  • Integration: Use from your terminal without switching to the browser
  • Customization: Build and extend with your own commands and workflows

Development Status

This project is in early alpha development (version 0.0.5 "AlmostAlpha"). Many planned features are still in progress.

Contributing

Contributions are welcome! See our contribution guidelines for details.

License

See the LICENSE file for details.

Project details


Download files

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

Source Distribution

cf_pipeline-0.0.7.tar.gz (39.7 kB view details)

Uploaded Source

Built Distribution

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

cf_pipeline-0.0.7-py3-none-any.whl (44.3 kB view details)

Uploaded Python 3

File details

Details for the file cf_pipeline-0.0.7.tar.gz.

File metadata

  • Download URL: cf_pipeline-0.0.7.tar.gz
  • Upload date:
  • Size: 39.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for cf_pipeline-0.0.7.tar.gz
Algorithm Hash digest
SHA256 ac850a1417736bb8be55d96692c7c4a16b385bbba9dd448bb52c09dc3449a8b6
MD5 e8957a6d5492e5164e49843828ce481e
BLAKE2b-256 31ea88cd1a26e98849edfac8bdb75cf9cc5564dadb1923e63dc734e636233da6

See more details on using hashes here.

File details

Details for the file cf_pipeline-0.0.7-py3-none-any.whl.

File metadata

  • Download URL: cf_pipeline-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 44.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for cf_pipeline-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 6084b893222a64721e2de33eb84edd1865ae44d8bb95088bf56f18a79d210012
MD5 be510e1a4cfa334967e8b5129c331b27
BLAKE2b-256 91890142e4b0f840c4cace882ed69bc217feb4a2b8cfea5e5adb6f92441e5e93

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