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.5.tar.gz (14.1 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.5-py3-none-any.whl (16.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: leetcode_terminal-0.1.5.tar.gz
  • Upload date:
  • Size: 14.1 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.5.tar.gz
Algorithm Hash digest
SHA256 97c63bf488957561de246a775291c66f426fea9f2362a19cc0475f570375447b
MD5 f8dd36ba4183404f54f8f79530c26d50
BLAKE2b-256 be22f32d58b842d7721533f95639ec6929fe2986d09dcaf3690814be05d956ea

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for leetcode_terminal-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 853b0966c7579b7f2e8b9b95eca832535e0f052916b7ee6befdd2aee1982109f
MD5 0cba147b47e40eeaadee316f666ad722
BLAKE2b-256 79abf3a495709e23bb7f85241d5709d28542bcefe19f3199a7dc2e72813516fb

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