Skip to main content

CLI companion for CP.

Project description

Lint Test Publish PyPI GitHub Release

Lucy

Lucy, a CLI companion for competitive programming on AtCoder and Codeforces, frees you from tedious tasks. It automatically fetches sample tests, sets up directories, and lets you test your code with just a few commands, streamlining your workflow and letting you focus on writing brilliant solutions.

Demo

Supported Languages

  • C++
  • Python

Supported Platforms

  • AtCoder
  • Codeforces

Featues

  • Fetch Sample Test Cases
  • Fetch Hidden Test Cases (after the contest ๐Ÿคช)
  • Test Solution
  • Setup Snippets
  • Submit Solution
  • What else? ๐Ÿค”

Installation

pip install lucy01

Environment Variables

  • LUCY_HOME

    Specify home directory for lucy.

Getting Started

  1. Set the environment variable $LUCY_HOME as preferred. By default, it uses the ~/.lucy.
  2. Get help!
    lucy --help
    
    Check out the documentation.

Directory Structure

$LUCY_HOME
โ”œโ”€โ”€ .vscode
โ”‚   โ””โ”€โ”€ cp.code-snippets*
โ”œโ”€โ”€ AtCoder
โ”‚   โ””โ”€โ”€ {ARC177}
โ”‚       โ”œโ”€โ”€{A}
โ”‚       โ”‚   โ”œโ”€โ”€ main
โ”‚       โ”‚   โ”œโ”€โ”€ tests
โ”‚       โ”‚   โ”‚   โ”œโ”€โ”€ in
โ”‚       โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ {00.txt}
โ”‚       โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ ...
โ”‚       โ”‚   โ”‚   โ””โ”€โ”€ out
โ”‚       โ”‚   โ”‚       โ”œโ”€โ”€ {00.txt}
โ”‚       โ”‚   โ”‚       โ””โ”€โ”€ ...
โ”‚       โ”‚   โ””โ”€โ”€ main.cpp
โ”‚       โ””โ”€โ”€...
โ”œโ”€โ”€ Codeforces
โ””โ”€โ”€ common*
    โ”œโ”€โ”€ base.cpp*
    โ”œโ”€โ”€ structures
    โ”‚   โ”œโ”€โ”€ grid.cpp
    โ”‚   โ””โ”€โ”€ ...
    โ””โ”€โ”€ ...
  • Lucy organizes your competitive programming workspace with a clear directory structure. Besides folders for specific contests and their solutions with tests, a key element is the common directory. This folder stores reusable code snippets (*.cpp). These snippets can be easily inserted into your solution files using filename prefixes thanks to the cp.code-snippets file in the .vscode folder. This file, automatically generated with lucy update-snippets, facilitates code completion within Visual Studio Code.

    Using Snippets

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

lucy01-1.0.0.tar.gz (12.0 kB view hashes)

Uploaded Source

Built Distribution

lucy01-1.0.0-py3-none-any.whl (13.1 kB view hashes)

Uploaded Python 3

Supported by

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