CSS minification tool written in Python
Python
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
tests
README.md
cssmin.py
runtests.py

README.md

PyCssMin

This is a CSS minification tool. It is a Python port of cssmin.js, which is a JavaScript port of the Java CSS minifier distributed with YUICompressor, which is itself a port of the PHP cssmin utility.

Usage

from cssmin import cssmin

cssmin("""
body {
  color: #FFFFFF;
}
""")
> 'body{color:#fff}'