Skip to main content

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"}

If you want to modify leetcode api (for development it is recommended):

[config]
leetcode_api = "https://alfa-leetcode-api.onrender.com/" # It is the default

[provider.opencode]
command = "opencode"
args = ["acp"]

How it works

  1. You pass a LeetCode problem id (e.g., 208)
  2. Deleetify parses the name and fetches the problem from the LeetCode API
  3. It scrapes the description, examples, and starter code from the HTML response
  4. It spawns an AI agent subprocess over the Agent Communication Protocol (ACP)
  5. 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


Download files

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

Source Distribution

deleetify-0.8.0.tar.gz (20.7 kB view details)

Uploaded Source

Built Distribution

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

deleetify-0.8.0-py3-none-any.whl (15.2 kB view details)

Uploaded Python 3

File details

Details for the file deleetify-0.8.0.tar.gz.

File metadata

  • Download URL: deleetify-0.8.0.tar.gz
  • Upload date:
  • Size: 20.7 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

Hashes for deleetify-0.8.0.tar.gz
Algorithm Hash digest
SHA256 adb27500ced79e4a5c8c0be487af5a5f9ade86e61632dddda88bb934b01c0573
MD5 19696dbe8400e52d2246a242c1c41d33
BLAKE2b-256 aa2a9e21f9cd599271c2fef7128e6df8c1e724491d830e411aa274edabd3ae32

See more details on using hashes here.

File details

Details for the file deleetify-0.8.0-py3-none-any.whl.

File metadata

  • Download URL: deleetify-0.8.0-py3-none-any.whl
  • Upload date:
  • Size: 15.2 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

Hashes for deleetify-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 083f70dcc9aac3c758a268cc5db57ce60f9aa9ef69c803758f313781778ba7cc
MD5 6df441b2e13eba9fc66f56b2f693eb5d
BLAKE2b-256 c864e6f02c0e347afa6613adb335684789a9ae338438f76431d2359a92032f89

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