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-20241104.tar.gz (8.2 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-20241104-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pylc_cli-20241104.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for pylc_cli-20241104.tar.gz
Algorithm Hash digest
SHA256 d925cb2207fb1cd8fca10762a0b3d41ecc1803dcbbcb2ea00b09edd6e4c919b5
MD5 92dd8b4693706c93171301df79857a46
BLAKE2b-256 3ca14b9550044a9a3925f995f200c9c3e905092c63b3c95cbdeb8893ed9c38b3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pylc_cli-20241104-py3-none-any.whl
  • Upload date:
  • Size: 10.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for pylc_cli-20241104-py3-none-any.whl
Algorithm Hash digest
SHA256 4925219d338fbe28e9b1a710a4ca00c2a24530973223935d033151d4595dcc59
MD5 aec6587451c3fdc125f2aab38c22c7b3
BLAKE2b-256 bfb1e807c7fde075dc243a9766bc6c926770701a9ee870dface2a3d192292577

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