Skip to main content

pyScss, a Scss compiler for Python

Project description

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

Originally it was forked from unmaintained https://github.com/Kronuz/pyScss.

Quickstart

You need Python 2.7+ or 3.3+. PyPy is also supported.

Installation:

pip install pyScss2

Usage:

python -mscss < style.scss

Python API:

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

Features

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.

The canonical syntax reference is part of the Ruby Sass documentation: http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html

Obligatory

Copyright © 2020 Ivan Kolodyazhny (e0ne). Additional credits in the documentation.

Licensed under the MIT license, reproduced in LICENSE.

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

pyScss2-2.0.0.tar.gz (121.4 kB view hashes)

Uploaded Source

Built Distribution

pyScss2-2.0.0-cp37-cp37m-macosx_10_15_x86_64.whl (135.8 kB view hashes)

Uploaded CPython 3.7m macOS 10.15+ x86-64

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