Skip to main content

Friendly leecode interface

Project description

PyPI - Python PyPI - PyPi

This project helps you to do leetcode with your preferred IDE or editor with command-line interface (CLI).

Getting Start


Prerequisites

  • Windows 10, MacOS, Linux
  • chrome version >=90.0.4430

Installation

# Prepare your virtual environment
conda create --name [env_name] python=3.9
conda activate [env_name]

# Install this package
pip install leetcodeHelper

Usage

# This command helps to load Chrome driver for you 
leetcode --init

# This CLI supports querying problems by names
leetcode --name two-sum  
leetcode --name add-two-numbers
leetcode --name median-of-two-sorted-arrays

Then question description and starter code will be automatically generated into question-name.py file. Now, you can do leetcode whenever in your preferred IDE.

Acknowledgments


The part of Chrome driver installation is modified from @peterhudec project.
Also, this project is inspired by @allenyummy's project.


Next release version


  • Fix the format error in the result file (change line missing).
  • Crawl by the Number/Tag/Level/Category of the questions.
  • Post your code back to leetcode platform and check all testcases. Retreive results.
  • Docker version

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

leetcodeHelper-0.0.1.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

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

leetcodeHelper-0.0.1-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file leetcodeHelper-0.0.1.tar.gz.

File metadata

  • Download URL: leetcodeHelper-0.0.1.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for leetcodeHelper-0.0.1.tar.gz
Algorithm Hash digest
SHA256 00863a03c454cea9c5691e19958cfa231b40e9b298cbe6106726682fbc5a4310
MD5 1621f76661ac10c70b17c29cd185d6af
BLAKE2b-256 e65c076dfbe55f727ac0912bda462473696d10a91480dac70ef92df335083b39

See more details on using hashes here.

File details

Details for the file leetcodeHelper-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: leetcodeHelper-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for leetcodeHelper-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c342d9a5dab50ac7ad07281d4fa321109289bf6aedc4eb678a10eaf407933d14
MD5 355d6a77c8ff54992bc3ea5fb583f3ca
BLAKE2b-256 c120d9bbc52bfecb87cbd6dedfb73a1aa79ff82130cd3e8689a21287450912a7

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