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
recommendation lc recommend Show the recommended questions to solve
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.6.tar.gz (15.6 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.6-py3-none-any.whl (18.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: leetcode_terminal-0.1.6.tar.gz
  • Upload date:
  • Size: 15.6 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.6.tar.gz
Algorithm Hash digest
SHA256 ef3781383dd8ee647f057f0c62364175a20f6d954cca50dae6bbde1cd4740847
MD5 a5b7ab1f73c5cf6148710337ad636c74
BLAKE2b-256 c2c4d351ee6bcd48ae39065bc4c88599b0cf866cd0fc2ad35a6cead68d41c2cc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for leetcode_terminal-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 b795df6151242c07a92e81177fefc6a9097f8045b5f59522eb81df219f329a9a
MD5 ddd3233179fa715ea121ff0a289694b4
BLAKE2b-256 4e2d50c9352e09aa65193ce828bdc240a128e20b36af710ed1522de5fa51a2db

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