{"categories":[{"label":"Code Generators","url":"https://skillfed.io/packages/category/software-development-code-generators"},{"label":"Pre-processors","url":"https://skillfed.io/packages/category/software-development-pre-processors"}],"enrichment":{"capability":"Compiles LESS stylesheets to CSS using Python, without requiring Node.js. Supports variables, mixins, nesting, color functions, and guard expressions, but not JavaScript evaluation.","skillfed_tags":["css-preprocessing","less-compiler","build-tool"],"use_cases":["Compile LESS stylesheets in Python web frameworks (Django, Flask) without a Node.js dependency","Integrate LESS compilation into Python-based build pipelines or static site generators","Process LESS files in containerized or restricted environments where Node.js cannot be installed","Automate stylesheet preprocessing in CI/CD workflows using only Python tooling","Support LESS in legacy Python projects that cannot adopt modern JavaScript tooling"],"what_it_does":"Lesscpy is a Python implementation of a LESS-to-CSS compiler that lets you use LESS stylesheets in environments where Node.js is unavailable or undesirable. It tokenizes and parses LESS syntax using PLY (Python Lex-Yacc) and outputs valid CSS. The package supports a substantial subset of LESS features including variables, mixins with nesting and recursion, guard expressions, color manipulation functions, and string interpolation.\n\nYou can use it either as a command-line tool (with options for minification, includes, and output control) or programmatically by calling `lesscpy.compile()` on a file-like object or string. The main trade-off is speed: it runs slower than the Node.js reference implementation because it's written in Python, and it does not support JavaScript evaluation within LESS files. All colors are normalized to six-digit hex format, and CSS comments are not preserved.","worth_installing":"Yes, if you need LESS compilation in a Python-only environment and can accept slower performance than Node.js. The low install friction, active maintenance, MIT license, and lack of vulnerabilities make it a straightforward choice. No, if you already have Node.js available or require JavaScript evaluation within LESS files\u2014use the reference compiler instead."},"id":"lesscpy","links":{"html":"https://skillfed.io/packages/lesscpy","md":"https://skillfed.io/packages/lesscpy.md","pypi":"https://pypi.org/project/lesscpy/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-07-30","license_spdx":"MIT","license_treatment":"permissive","name":"lesscpy","python_support":"unspecified","summary":"Python LESS compiler"},"popularity":{"monthly_downloads":179946,"position":10158,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.15.2"}
