Skip to content

metalshark/lesscss-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A LessCSS Compiler in Python

LESS is an extension of CSS. You can write LESS code just like you would write CSS, except you need to compile it to CSS. That's what the package is for.

Installation

Download and extract the distribution and then from the command prompt type:

$ python setup.py install

Alternatively, if you have pip, you can download and install the package by typing the following command in the terminal:

$ pip install lesscss-python

Using from the command-line

Command line tool is called lessc.py, and is used like this:

$ lessc.py source [destination]

The source is the LESS file you want to compile, and the destination is the (optional) CSS file you want to compile it to:

$ lessc.py style.less style.css

If you did't specify a destination, lessc.py will output to stdout:

$ lessc.py style.less

Project status

Probably full of bugs with "potentially" all features apart from namespaces and accessors.

Currently this has all the features that I require, but lacks full compatibility with LessCSS.

Due to a request it is now hosted on Github https://github.com/metalshark/lesscss-python and may receive traction towards gaining full feature parity.

Open to anyone wanting to advance this project (it does not use a lexer/parser as such as it seemed more trouble than its worth to learn how they work in order to build this). It may be better to investigate lesscpy instead, as it currently has more development activity.

About

lessCSS Python Compiler

Resources

License

LGPL-3.0, GPL-3.0 licenses found

Licenses found

LGPL-3.0
COPYING.LESSER
GPL-3.0
COPYING

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages