Skip to main content

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.

Metadata

Release files for pylc-cli 20240811

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pylc-cli 20240811
File Size Uploaded
pylc_cli-20240811.tar.gz 7.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pylc-cli 20240811
File Interpreter ABI Platform
pylc_cli-20240811-py3-none-any.whl Python 3 none any Details

Total release size: 17.9 kB

Release files / pylc_cli-20240811.tar.gz

Download URL pylc_cli-20240811.tar.gz
Size 7.9 kB
Tags Source
SHA-256 checksum
How to use checksums
4133ada1e67db01e589612360241c94dcf7e069c14c8693fe7d2d637e082b719
BLAKE2b-256 checksum
How to use checksums
c0302763f2a03e8a77fc064aa4ebe7ab86d9f209ae50e0425e49097f3a93eb1d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.12.4

Release files / pylc_cli-20240811-py3-none-any.whl

Download URL pylc_cli-20240811-py3-none-any.whl
Size 10.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9dde6fffe474a9296107d21bdb329f3640c8fc5dd3c020316adef6d6eec5be93
BLAKE2b-256 checksum
How to use checksums
b49f3aab842667a5a3db31d81b983da6c74bc5769e5674aa5966be49aab33591
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.12.4

Release history Release notifications | RSS feed

This release

20240811 This release

2 release files

0.4

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3

2 release files

0.2.1

2 release files

0.2

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page