Skip to main content

About

LessCSS is a helper which automatically compiles LESS files to CSS when LESS files are modified. It works with Brubeck, web.py and bottle web frameworks. It should work with other framework without any problems though it’s not tested.

Note: You need to install LESS before using this.

Installation

$ pip install lesscss

Usage

An example usage

from lesscss import LessCSS
LessCSS(media_dir='media', exclude_dirs=['img', 'src'], based=True, compression='x')

Parameters

  • media_dir: Directory where you put static/media files such as css/js/img.

  • exclude_dirs: Directories you don’t want to be searched. It’d be pointless to search for less files in an images directory. This parameter is expected to be a list.

  • based: If it’s set True then LessCSS will generate the style-(base60).css version as well (for example; style-dHCFD.css). This is useful if you set expire times of static files to a distant future since browsers will not retrieve those files unless the name is different or the cache has expired. This parameter is expected to be a boolean value.

  • compressed: If it’s set True then LessCSS will minimize the generated CSS files. This parameter is expected to be a boolean value.

  • compression: Specifies the type of compression to use. Default to the normal compression, ‘x’. Other option is to use the YUI Compressor. See “Command-line Usage” at http://lesscss.org/.

  • output_dir: Directory where you put compiled CSS files if different than location of .less file.

Metadata

Release files for lesscss 0.1.4

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

Source distribution (sdist)

Source distribution for lesscss 0.1.4
File Size Uploaded Provenance Actions
lesscss-0.1.4.tar.gz 4.9 kB Without provenance Details for lesscss-0.1.4.tar.gz

Release files / lesscss-0.1.4.tar.gz

Download URL lesscss-0.1.4.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
f6bbdc28bd15eb55a59184a0ee49c3264aefb28c78a0244a6f81eaf2918fe514
BLAKE2b-256 checksum
How to use checksums
8726295211f5b0eec00c735b38fdff7a6062795a5ffac41db54aaf53351e75d1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for lesscss 0.1.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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