Skip to main content

A CLI tool for LeetCode daily problems and submissions

Project description

LeetBuddy CLI

A command-line tool to help you solve LeetCode problems more efficiently.

Features

  • Sign in to LeetCode and save credentials
  • Get today's Problem of the Day
  • Automatically create workspace with problem statement and solution template
  • Submit solutions (coming soon)

Installation

Install it via PyPI (after publishing):

pip install leetbuddy

Usage

Sign in to LeetCode

leetbuddy signin

This will prompt you for your LeetCode username and password and save them securely.

Get Today's Problem

leetbuddy today

This will:

  1. Fetch today's Problem of the Day
  2. Create a new directory with the problem name
  3. Create a README.md with the problem statement
  4. Create a solution.cpp file with a basic template
  5. Open VS Code in the problem directory

Submit Solution (Coming Soon)

leetbuddy submit

This will submit your solution to LeetCode and show the results.

Requirements

  • Python 3.7+
  • Chrome browser (for Selenium)
  • VS Code (for opening the workspace)
  • click
  • requests
  • urllib3

License

MIT

Note

Your LeetCode credentials are stored in ~/.leetbuddy_config.json. Make sure to keep this file secure.

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

leetbuddy-0.1.1.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

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

leetbuddy-0.1.1-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file leetbuddy-0.1.1.tar.gz.

File metadata

  • Download URL: leetbuddy-0.1.1.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for leetbuddy-0.1.1.tar.gz
Algorithm Hash digest
SHA256 e431707361aa3b5e09b57bbd300cf889dde1183fcf600e2cac71f34cc8dfd5a2
MD5 211f03e3a50e61d78cd6c94439b9db73
BLAKE2b-256 41dc5ec6e3d5d10bec8e64a69712f7c01c4c82ab18e146ec4cb103ee01be39dc

See more details on using hashes here.

File details

Details for the file leetbuddy-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: leetbuddy-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for leetbuddy-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5a95531793484f6a3229f4f2e8b60957fe23f64bd49a0c9907e227965f0e4782
MD5 b70d31d07534af57ce0ae96ad4548d1d
BLAKE2b-256 3504feb6406f7bd744ef13a39595565133ce32cd911a9ddd3a633a5b0c0bfc00

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