Skip to main content

CLI helper for CP contests.

Project description

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.

Support Languages

  • C++
  • Python

Supported Platforms

  • AtCoder
  • Codeforces

Featues

  • Fetch Sample Test Cases
  • Test Solution
  • Setup Snippets
  • Submit Solution
  • What else? ๐Ÿค”

Installation

Getting Started

  1. Set the environment variable $LUCY_HOME as preferred.
  2. Get help!
    lucy --help
    

Directory Structure

$LUCY_HOME
โ”œโ”€โ”€ .vscode
โ”‚   โ””โ”€โ”€ cp.code-snippets*
โ”œโ”€โ”€ AtCoder
โ”‚   โ””โ”€โ”€ {ARC177}
โ”‚       โ””โ”€โ”€{A}
โ”‚           โ”œโ”€โ”€ main
โ”‚           โ”œโ”€โ”€ tests
โ”‚           โ”‚   โ”œโ”€โ”€ in
โ”‚           โ”‚   โ”‚   โ”œโ”€โ”€ {00.txt}
โ”‚           โ”‚   โ”‚   โ”œโ”€โ”€ {01.txt}
โ”‚           โ”‚   โ””โ”€โ”€ out
โ”‚           โ”‚       โ”œโ”€โ”€ {00.txt}
โ”‚           โ”‚       โ”œโ”€โ”€ {01.txt}
โ”‚           โ””โ”€โ”€ main.cpp
โ”œโ”€โ”€ Codeforces
โ””โ”€โ”€ common*
    โ”œโ”€โ”€ base.cpp*
    โ”œโ”€โ”€ structures
    โ”‚   โ”œโ”€โ”€ grid.cpp
    โ”‚   โ”œโ”€โ”€ linked_list.cpp
    โ”‚   โ”œโ”€โ”€ point.cpp
    โ”‚   โ”œโ”€โ”€ tree.cpp
    โ”‚   โ”œโ”€โ”€ trie.cpp
    โ”‚   โ””โ”€โ”€ union_find.cpp
    โ””โ”€โ”€ text
        โ”œโ”€โ”€ is_subseq.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-0.0.0.tar.gz (7.3 kB view hashes)

Uploaded Source

Built Distribution

lucy01-0.0.0-py3-none-any.whl (8.3 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