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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for pyScss2-2.0.0-cp37-cp37m-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c2a31f0021fb91b549ee14858bb4a3cb33456bbc887103ffc4b3d9ccb231980 |
|
MD5 | 01436e824f90014a7c80c8bae93501b9 |
|
BLAKE2b-256 | 8eee03d1008bbe4c98651f7f311283d11568d9c1555d6acbd6852409d210f952 |