Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
pyScss, a Scss compiler for Python
CSS Python C GAP
Failed to load latest commit information.
docs Bump version to 1.3.4.
scss Added less2scss command
.gitignore adding sass-cache and flymake files to gitignore
.travis.yml Give coveralls a shot.
DESCRIPTION Scss version bump to v1.0rc1
LICENSE Optimizations and speedups fixed to compile with older python Include speedups header files in an sdist.
README.rst Nits: fix phrasing in README, stop printing contents of scss_meta, pu… Better handle running the tests without PIL installed. Added less2scss command
tox.ini Fix tox.ini on non-Windows, per #327.


pyScss, a Scss compiler for Python

build-status coverage

pyScss is a compiler for the Sass language, a superset of CSS3 that adds programming capabilities and some other syntactic sugar.


You need Python 2.6+ or 3.2+. PyPy is also supported.


pip install pyScss


python -mscss < style.scss

Python API:

from scss import Compiler
Compiler().compile_string("a { color: red + green; }")


95% of Sass 3.2 is supported. If it's not supported, it's a bug! Please file a ticket.

Most of Compass 0.11 is also built in.

Further reading

Documentation is in Sphinx. You can build it yourself by running make html from within the docs directory, or read it on RTD:

The canonical syntax reference is part of the Ruby Sass documentation:


Copyright © 2012 German M. Bravo (Kronuz). Additional credits in the documentation.

Licensed under the MIT license, reproduced in LICENSE.

Something went wrong with that request. Please try again.