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.
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
- ACL Support
- What else? 🤔
Installation
pip install lucy01
Environment Variables
-
LUCY_HOMESpecify home directory for
lucy.
Configuration
Lucy supports the following configuration options which can be accessed using the config command
group:
-
AtCoder.UserId,AtCoder.PasswordAtCoder login credentials. Required to perform tasks which require signing in such as setting up an ongoing contest.
-
NThreadsDefault threads of execution to be used when setting up a contest.
4seems to be a good choice.
Getting Started
- Set the environment variable
$LUCY_HOMEas preferred. By default, it uses the~/.lucy. - Get help!
Check out the documentation.lucy --help
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 thecommondirectory. This folder stores reusable code snippets(*.cpp). These snippets can be easily inserted into your solution files using filename prefixes thanks to thecp.code-snippetsfile in the.vscodefolder. This file, automatically generated withlucy update-snippets, facilitates code completion within Visual Studio Code.
Metadata
Release files for lucy01 2.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| lucy01-2.0.0.tar.gz | 16.7 kB | Without provenance | Details for lucy01-2.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| lucy01-2.0.0-py3-none-any.whl | Python 3 | none | any | Details for lucy01-2.0.0-py3-none-any.whl |
Total release size: 37.4 kB
Release files / lucy01-2.0.0.tar.gz
| Download URL | lucy01-2.0.0.tar.gz |
|---|---|
| Size | 16.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b62ab8ee63f9a00623d030cca8e6765311eac54de9ef6e44eb23ff77bdc7912d
|
|
BLAKE2b-256 checksum How to use checksums |
a418749dca0f636aed77190c2e099e40ca21855376f264d7ec09c1720e0aa138
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|
Release files / lucy01-2.0.0-py3-none-any.whl
| Download URL | lucy01-2.0.0-py3-none-any.whl |
|---|---|
| Size | 20.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7d021688489ce521087da85b0e09d4b9133946c36fc7ad344fe0bfda3d3a59b6
|
|
BLAKE2b-256 checksum How to use checksums |
7bcc89df6d401fd1b1d7841c9e98dc71ac38b8e1fbc33195cc555d11385ee5e0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|
Security for lucy01 2.0.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.