Skip to content

2ashishs/random-leetcode-py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

random-leetcode-py

Python script to randomly select a top interview prep question from leetcode and open in browser.

Tested on Linux.

Install using pip

pip install -i https://test.pypi.org/simple/ random-leetcode
# now run in shell
random_leetcode
# browser should open with a leetcode question

Install from source

# clone the repo
git clone https://github.com/2ashishs/random-leetcode-py.git
# cd into repo
cd random-leetcode-py
# install the package locally
pip install . -e
# now run in shell
random_leetcode
# browser should open with a leetcode question

ToDo

  • Add update logic
    • Store lc_done file in $HOME
  • Test on Windows / Mac
  • Add code to package and publish on PyPI

Code to publish on https://test.pypi.org/

# Create account and generate API token on https://test.pypi.org/
# Create a file .pypirc in home directory with token credentials
# cd to this git repo
cd /path/to/this/repo/
# remove the old dist/ folder (if present)
rm -rf dist/
# build the dist
python3 -m build
# publish to testpypi
python3 -m twine upload --repository testpypi dist/*

About

Python script to randomly select a top interview prep question from leetcode and open in browser.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages