Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install pykss

How to install pykss

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install pykss
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
Windows (64-bit)
Mac OS X (10.5+)
Linux (32-bit)
0.4 Available View build log
Linux (64-bit)
0.4 Available View build log
Web
 
Author
License
BSD
Dependencies
Lastest release
version 0.4 on Jun 18th, 2013
https://secure.travis-ci.org/seanbrant/pykss.png?branch=master

PyKSS is a Python implementation of KSS. KSS attempts to provide a methodology for writing maintainable, documented CSS within a team.

The official docs provide a good introduction to KSS. The complete syntax can he found on the syntax page.

Installing

System Message: ERROR/3 (<string>, line 22)

Unknown directive type "code-block".

.. code-block:: shell

    pip install pykss


Usage

System Message: ERROR/3 (<string>, line 30)

Unknown directive type "code-block".

.. code-block:: python

    >>> import pykss
    >>>
    >>> styleguide = pykss.Parser('static/css')
    >>>
    >>> styleguide.section('2.1.1')
    <pykss.section.Section object at 0x10c1d1190>
    >>>
    >>> styleguide.section('2.1.1').description
    'A button suitable for giving stars to someone.'
    >>>
    >>> styleguide.section('2.1.1').modifiers[0]
    <pykss.modifier.Modifier object at 0x10c1d1290>
    >>>
    >>> styleguide.section('2.1.1').modifiers[0].name
    ':hover'
    >>>
    >>> styleguide.section('2.1.1').modifiers[0].class_name
    'pseudo-class-hover'
    >>>
    >>> styleguide.section('2.1.1').modifiers[0].description
    'Subtle hover highlight'


Django Usage

If you would like to use KSS within a Django project pykss.contrib.django provides a view and template tag to make it easier. Check out the example Django project for usage.

Subscribe to package updates

Last updated Jun 18th, 2013

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.