This is a fork of
pyScssby @mrowrpurr to add Python 3.13+ support.Python 3.13+ enforces that global regex flags (like
(?i),(?s),(?m)) must be at the start of a pattern. pyScss had several patterns with inline flags mid-pattern, which now raisere.PatternError. This fork converts them to scoped flag syntax(?i:...)or usesre.compile()flag arguments.As of December 2025,
pyScsshas not received updates in 2+ years. This is published so I can use it as a dependency in my own Python 3.13+ projects.
pyScss, a Scss compiler for Python
pyScss is a compiler for the Sass language, a superset of CSS3 that adds programming capabilities and some other syntactic sugar.
Quickstart
You need Python 2.6+ or 3.3+. PyPy is also supported.
Installation:
pip install pyScss
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, or read it on RTD: http://pyscss.readthedocs.org/en/latest/
The canonical syntax reference is part of the Ruby Sass documentation: http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html
Obligatory
Copyright � 2012 German M. Bravo (Kronuz). Additional credits in the documentation.
Licensed under the MIT license, reproduced in LICENSE.
Metadata
Release files for mrowrpurr-pyscss 1.4.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mrowrpurr_pyscss-1.4.1.tar.gz | 133.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mrowrpurr_pyscss-1.4.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 288.7 kB
Release files / mrowrpurr_pyscss-1.4.1.tar.gz
| Download URL | mrowrpurr_pyscss-1.4.1.tar.gz |
|---|---|
| Size | 133.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
aee45870d9bc9b82cbda00e388854804587250600ba951b10c537c2789347795
|
|
BLAKE2b-256 checksum How to use checksums |
ee1ac3101dd23e0e24a4389cc75ffaa5f0e40684e5eab23017402bc8c701feef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.0
|
Release files / mrowrpurr_pyscss-1.4.1-py3-none-any.whl
| Download URL | mrowrpurr_pyscss-1.4.1-py3-none-any.whl |
|---|---|
| Size | 155.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e8367ec9c8f9e63c7a6868ccffdd82a7c9d8af706a8322607b42052c379847fa
|
|
BLAKE2b-256 checksum How to use checksums |
6d61e99845334a57d9638d4f61413496b65add6dee9784b46bd3666a3502a97b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.0
|