Skip to main content

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). 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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pylc_cli-20240921.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pylc_cli-20240921-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

Details for the file pylc_cli-20240921.tar.gz.

File metadata

  • Download URL: pylc_cli-20240921.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.5

File hashes

Hashes for pylc_cli-20240921.tar.gz
Algorithm Hash digest
SHA256 9bb870393feb25f15ed5ed26fcbddb13f824682b0b88b5737820cd09d63ca242
MD5 4ab30aea62154de20c74e2d47bd7eea2
BLAKE2b-256 9f4dd1668df6ff570908342fe5b8b47202382b745679439bdfe9eb1b2b9e5bea

See more details on using hashes here.

File details

Details for the file pylc_cli-20240921-py3-none-any.whl.

File metadata

  • Download URL: pylc_cli-20240921-py3-none-any.whl
  • Upload date:
  • Size: 10.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.5

File hashes

Hashes for pylc_cli-20240921-py3-none-any.whl
Algorithm Hash digest
SHA256 07d176d7c35f43b6c22ab98895f5467cdadadab2dbd6c3416e04178ad4e8e619
MD5 5c5d8a3b0d91afbaf1f3f2f6a4dad503
BLAKE2b-256 943eb49d674cd4e8a1acca7e1b5440aaa8c03534f7c6897a5f6d5577296406b1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page