Skip to content

shiina4119/pylc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyLC

PyLC is a small CLI tool to solve leetcode problems.

Installation

Make sure you have python installed in your system.
Then run pip install pylc_cli
After installation, the pylc command will be available. Run pylc update to populate the cache database.

pylc or pylc --help will display all available subcommands.

Submitting problems to server

To submit problems to leetcode servers, the user needs to set their csrftoken and session variables in config.toml (located in $HOME/.pylc).
To get the variables follow this link.

Boilerplate generation

To make LSPs happy, pylc can add boilerplate code (for example, importing necessary libraries or adding header files). Edit the ~/.pylc/inject.toml file.

# An example
[cpp]
inject_before = ["#include <bits/stdc++.h>", "using namespace std;"]

Credits

This tool is heavily inspired from clearloop/leetcode-cli.

Releases

No releases published

Packages

No packages published

Languages