Skip to main content

LeetCLI - Solve, practice, and fetch LeetCode challenges from your terminal

Project description

LeetCLI

LeetCLI is a command-line interface (CLI) tool to interact with LeetCode directly from your terminal.
You can search, view, download, run sample testcases, and submit solutions without opening a browser.


Features

-Login/logout using your LEETCODE_SESSION cookie.

-List problems with pagination.

-Search problems by keyword.

-View problem description in Markdown.

-Download starter code for your preferred language.

-Run official sample testcases locally.

-Submit solutions to LeetCode.

-Show daily challenge and user stats.


LeetCode CLI – Commands

Command Example Description
login lc login Login by pasting LEETCODE_SESSION cookie
logout lc logout Remove saved session
list lc list --limit 50 --skip 0 List problems with optional pagination
search lc search "two sum" Search problems by keyword and pick one to view
view lc view two-sum View full problem description by slug
download lc download two-sum --lang python3 Download starter code
run lc run two-sum --file solution.py --lang python3 Run your solution on LeetCode’s official sample testcases
submit lc submit two-sum solution.py Submit solution to LeetCode
daily lc daily Show today’s daily challenge
stats lc stats Show stats for logged-in user or given username
home lc Show welcome screen
help lc help Show this help table

Installation

Install via pip:

pip install leetcode-terminal

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

leetcode_terminal-0.1.4.tar.gz (14.7 kB view details)

Uploaded Source

Built Distribution

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

leetcode_terminal-0.1.4-py3-none-any.whl (16.9 kB view details)

Uploaded Python 3

File details

Details for the file leetcode_terminal-0.1.4.tar.gz.

File metadata

  • Download URL: leetcode_terminal-0.1.4.tar.gz
  • Upload date:
  • Size: 14.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.7

File hashes

Hashes for leetcode_terminal-0.1.4.tar.gz
Algorithm Hash digest
SHA256 5650bb9c8c196ede75753e2cf52ec95ae6ce8c187b03821011f60ea4350c386d
MD5 ef786549367ca71ef9606bcd115d5baa
BLAKE2b-256 38afe61417371b858deb5d1cd24d5b55c0a7ac67ba9fb5e2a8c71915f4fa57b7

See more details on using hashes here.

File details

Details for the file leetcode_terminal-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for leetcode_terminal-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 6a8f1c1c47a17d9ff7105eda2c8db0cd9a541e7792289925e1c9dc56f1e8bbd1
MD5 bd9a2e241d33bc82734c41083ff163a9
BLAKE2b-256 d3cdae311f20a34e2a97dbb74f721cffb65d9b2e75a34049cb665c08f107f318

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