Makes local leetcode setup less painfull
Project description
Deleetify
Makes local LeetCode setup less painful.
A CLI tool that fetches any LeetCode problem and uses an AI agent to generate a ready-to-run boilerplate solution file — so you can jump straight into solving, not scaffolding.
Features
- Fetch any LeetCode problem by id
- AI-generated boilerplate via any ACP-compatible agent (e.g., opencode, claude-code)
- Supports Python and JavaScript starter code
- Configurable AI provider via TOML
Installation
Note: If any problem encountered, try installing with python 3.13
pip install deleetify
Or with uv:
uv tool install deleetify
Usage
# Basic usage — generates Python boilerplate
deleetify "208"
# Specify language
deleetify "1" --lang javascript
# Custom config path
deleetify "15" --config ./my-agent.toml
Configuration
Deleetify uses a deleetify.toml to configure the AI provider. By default it looks for the file in the current directory.
[provider.opencode]
command = "opencode"
args = ["acp"]
If you have multiple providers, set a default:
[default]
provider = "opencode"
[provider.opencode]
command = "opencode"
args = ["acp"]
[provider.gemini]
command = "gemini"
args = ["--acp"]
# envs = {SOME_ENV = "value"}
How it works
- You pass a LeetCode problem id (e.g.,
208) - Deleetify parses the name and fetches the problem from the LeetCode API
- It scrapes the description, examples, and starter code from the HTML response
- It spawns an AI agent subprocess over the Agent Communication Protocol (ACP)
- The agent receives a prompt with the problem details and generates boilerplate code with built-in test cases
Supported languages
| CLI flag | Language |
|---|---|
python3 |
Python 3 |
javascript |
JavaScript |
Requirements
- Python 3.13+
- An ACP-compatible agent (e.g., opencode)
License
MIT
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file deleetify-0.6.0.tar.gz.
File metadata
- Download URL: deleetify-0.6.0.tar.gz
- Upload date:
- Size: 18.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"NixOS","version":"26.05","id":"yarara","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c6db9dfd3fef394e0cf07be8db322da6d6a11a72ba67bb78a4f380d7049938b6
|
|
| MD5 |
366e33456d527cb8e7f0974e24bbf45b
|
|
| BLAKE2b-256 |
f7712b4d9ca81174b49fa24186a8012ce495f17fd5ea5e5154074c83bd759a8e
|
File details
Details for the file deleetify-0.6.0-py3-none-any.whl.
File metadata
- Download URL: deleetify-0.6.0-py3-none-any.whl
- Upload date:
- Size: 14.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"NixOS","version":"26.05","id":"yarara","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2c29a438976a2af46eb2e73bce23a85c7fee1e49e2dfa81a7c49f99284cf1514
|
|
| MD5 |
628dcaf69b55bd621e381c7b1e576056
|
|
| BLAKE2b-256 |
faf48a66072a4bc7eb768b13d32161db62068e4856a305d383b617a8238781b7
|