RETIRED, further work has moved to Debian project infrastructure
Go to file
wtayyeb 6700cd6ba4 Merge pull request #1 from sprymix/master
merge from upstream
2015-10-22 03:02:48 +03:30
csscompressor add tests for preserve_exclamation_comments, -/+ signs before float numbers 2015-08-18 09:39:49 +04:30
.gitignore Ignore setup.py-related directories 2013-10-09 12:25:35 -04:00
.travis.yml Drop python nightly from .travis 2015-08-18 00:27:18 -04:00
LICENSE Add LICENSE file 2013-10-08 13:25:11 -04:00
MANIFEST.in add MANIFEST.in to keep LICENSE in the distribution 2013-10-08 16:28:43 -04:00
README.rst readme: Add travis ci badge 2015-08-18 00:28:41 -04:00
setup.py bump version to 0.9.4 2015-08-18 08:28:57 +04:30

README.rst

image

Almost exact port of YUI CSS Compressor. Passes all original unittests.

Usage

>>> from csscompressor import compress
>>> compress('''
...    your css {
...        content: "!";
...    }
... ''')
'your css{content:"!"}'

Or, if you want to use it from command line:

$ python3 -m csscompressor --help

Compatibility

Tested under Python 2.6, 2.7 and 3.3

Installation

Use pip or easy_install:

$ pip install csscompressor

Development

Use py.test to run unittests

License

Published under the original Yahoo License for YUI Compressor -- BSD.