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-20240811.1.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-20240811.1-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pylc_cli-20240811.1.tar.gz
Algorithm Hash digest
SHA256 78667f4659eddd8a3f1091e6277ecc6dc7b07c7b6c563e3e405baf034703415b
MD5 8df7ebac264250e685e95746415272fc
BLAKE2b-256 77dde91a851990cd392aef7aa081fad37906f190975f30428086cc2250d89c87

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pylc_cli-20240811.1-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.4

File hashes

Hashes for pylc_cli-20240811.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4de707250b267175109e05a1ce2d91976e6fc61286f110457785eab3063ee7bc
MD5 f51b5fde55ed65ac319e021e07356b90
BLAKE2b-256 a7a0a75302ae506744370169336c9be225488211d86d5cc641e1ad8b5e014397

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