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.
Metadata
Release files for pylc-cli 20240921
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pylc_cli-20240921.tar.gz | 7.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pylc_cli-20240921-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.0 kB
Release files / pylc_cli-20240921.tar.gz
| Download URL | pylc_cli-20240921.tar.gz |
|---|---|
| Size | 7.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9bb870393feb25f15ed5ed26fcbddb13f824682b0b88b5737820cd09d63ca242
|
|
BLAKE2b-256 checksum How to use checksums |
9f4dd1668df6ff570908342fe5b8b47202382b745679439bdfe9eb1b2b9e5bea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.12.5
|
Release files / pylc_cli-20240921-py3-none-any.whl
| Download URL | pylc_cli-20240921-py3-none-any.whl |
|---|---|
| Size | 10.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
07d176d7c35f43b6c22ab98895f5467cdadadab2dbd6c3416e04178ad4e8e619
|
|
BLAKE2b-256 checksum How to use checksums |
943eb49d674cd4e8a1acca7e1b5440aaa8c03534f7c6897a5f6d5577296406b1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.12.5
|