Skip to main content

A python port of YUI CSS Compressor

Project description

https://travis-ci.org/sprymix/csscompressor.svg?branch=master

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.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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

csscompressor-0.9.5.tar.gz (237.8 kB view details)

Uploaded Source

File details

Details for the file csscompressor-0.9.5.tar.gz.

File metadata

File hashes

Hashes for csscompressor-0.9.5.tar.gz
Algorithm Hash digest
SHA256 afa22badbcf3120a4f392e4d22f9fff485c044a1feda4a950ecc5eba9dd31a05
MD5 7aa1c1542d244d772c07dd4bbbbe0d69
BLAKE2b-256 f12a8c3ac3d8bc94e6de8d7ae270bb5bc437b210bb9d6d9e46630c98f4abd20c

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page