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 20241104
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-20241104.tar.gz | 8.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pylc_cli-20241104-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.6 kB
Release files / pylc_cli-20241104.tar.gz
| Download URL | pylc_cli-20241104.tar.gz |
|---|---|
| Size | 8.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d925cb2207fb1cd8fca10762a0b3d41ecc1803dcbbcb2ea00b09edd6e4c919b5
|
|
BLAKE2b-256 checksum How to use checksums |
3ca14b9550044a9a3925f995f200c9c3e905092c63b3c95cbdeb8893ed9c38b3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Release files / pylc_cli-20241104-py3-none-any.whl
| Download URL | pylc_cli-20241104-py3-none-any.whl |
|---|---|
| Size | 10.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4925219d338fbe28e9b1a710a4ca00c2a24530973223935d033151d4595dcc59
|
|
BLAKE2b-256 checksum How to use checksums |
bfb1e807c7fde075dc243a9766bc6c926770701a9ee870dface2a3d192292577
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|