*NO LONGER MAINTAINED*. A Python port of the YUI CSS compression algorithm.
Python
Latest commit 4866f9d Oct 14, 2013 @zacharyvoase Bumped to v0.2.0.
Failed to load latest commit information.
src Bumped to v0.2.0. Oct 14, 2013
.gitignore
LICENSE Initial import. Jan 3, 2010
MANIFEST.in Remove distribute_setup.py; code style improvements. Oct 14, 2013
README.md GitHubbed the README. Apr 8, 2010
setup.py Bumped to v0.2.0. Oct 14, 2013

README.md

cssmin

This is a Python port of the YUI CSS Compressor. Install it:

$ easy_install cssmin # OR
$ pip install cssmin

Use it from the command-line:

$ cssmin --help
$ cat file1.css file2.css file3.css | cssmin > output.min.css
$ cssmin --wrap 1000 < input.css > output.css

Or use it from Python:

>>> import cssmin
>>> output = cssmin.cssmin(open('input.css').read())
>>> print output