A small CLI tool to solve leetcode problems from your favorite text editor!
Project description
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).
# An example
[cpp]
inject_before = ["#include <bits/stdc++.h>", "using namespace std;"]
Credits
This tool is heavily inspired from clearloop/leetcode-cli.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pylc_cli-20240811.tar.gz.
File metadata
- Download URL: pylc_cli-20240811.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4133ada1e67db01e589612360241c94dcf7e069c14c8693fe7d2d637e082b719
|
|
| MD5 |
6e91c4d08de2010239e99f28c0eec2c1
|
|
| BLAKE2b-256 |
c0302763f2a03e8a77fc064aa4ebe7ab86d9f209ae50e0425e49097f3a93eb1d
|
File details
Details for the file pylc_cli-20240811-py3-none-any.whl.
File metadata
- Download URL: pylc_cli-20240811-py3-none-any.whl
- Upload date:
- Size: 10.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9dde6fffe474a9296107d21bdb329f3640c8fc5dd3c020316adef6d6eec5be93
|
|
| MD5 |
da9e1ed92f564ee7287fce47f1d8902c
|
|
| BLAKE2b-256 |
b49f3aab842667a5a3db31d81b983da6c74bc5769e5674aa5966be49aab33591
|