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

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.7.0.tar.gz (18.4 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.7.0-py3-none-any.whl (14.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: deleetify-0.7.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

Hashes for deleetify-0.7.0.tar.gz
Algorithm Hash digest
SHA256 a94f1a01c3fd59c5b43bf9cf3039da85507591c88d07c0b17281c4e2f069532b
MD5 cdfd234629a8a0507672c89c772578eb
BLAKE2b-256 02a53e26f27fffa73e8c3b11feb9bb2e197e71c22fec6dedffddc732921259da

See more details on using hashes here.

File details

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

File metadata

  • Download URL: deleetify-0.7.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

Hashes for deleetify-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8f53bfb6c15ae895f218b3c4720bb290ad5a76efd89589ea112caae976ed3938
MD5 c18f263d2cbd9d8afc4e4ef84584746b
BLAKE2b-256 bd2556508e46482f05f33342beb06ea9d06a2121a72f3aa70e4c539ba01890d5

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