File: README.rst

package info (click to toggle)
python-csscompressor 0.9.5-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,804 kB
  • sloc: python: 1,787; makefile: 15
file content (54 lines) | stat: -rw-r--r-- 816 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
.. image:: https://travis-ci.org/sprymix/csscompressor.svg?branch=master
    :target: https://travis-ci.org/sprymix/csscompressor


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


Usage
=====

.. code:: pycon

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

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

.. code::

    $ python3 -m csscompressor --help


Compatibility
=============

Tested under Python 2.7 and 3.3+


Installation
============

Use ``pip`` or ``easy_install``:

.. code::

    $ pip install csscompressor


Development
===========

Use py.test to run unittests


License
=======

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