跳转到主要内容

YUI CSS Compressor的Python端口

项目描述

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

几乎完全移植了YUI CSS Compressor。通过了所有原始单元测试。

用法

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

或者,如果您想从命令行使用它

$ python3 -m csscompressor --help

兼容性

在Python 2.7和3.3+下进行了测试

安装

使用pipeasy_install

$ pip install csscompressor

开发

使用py.test运行单元测试

许可证

在原始Yahoo许可证下发布YUI Compressor - BSD。

支持者

AWS AWS 云计算和安全赞助商 Datadog Datadog 监控 Fastly Fastly CDN Google Google 下载分析 Microsoft Microsoft PSF 赞助商 Pingdom Pingdom 监控 Sentry Sentry 错误日志 StatusPage StatusPage 状态页面