pyScss, a Scss compiler for Python (Fork with Python 3.13+ support)
Project description
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.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mrowrpurr_pyscss-1.4.1.tar.gz.
File metadata
- Download URL: mrowrpurr_pyscss-1.4.1.tar.gz
- Upload date:
- Size: 133.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aee45870d9bc9b82cbda00e388854804587250600ba951b10c537c2789347795
|
|
| MD5 |
71bbd116e059d4b6d486e41455a20769
|
|
| BLAKE2b-256 |
ee1ac3101dd23e0e24a4389cc75ffaa5f0e40684e5eab23017402bc8c701feef
|
File details
Details for the file mrowrpurr_pyscss-1.4.1-py3-none-any.whl.
File metadata
- Download URL: mrowrpurr_pyscss-1.4.1-py3-none-any.whl
- Upload date:
- Size: 155.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e8367ec9c8f9e63c7a6868ccffdd82a7c9d8af706a8322607b42052c379847fa
|
|
| MD5 |
205ff92c549b56eb9b546a848f31f517
|
|
| BLAKE2b-256 |
6d61e99845334a57d9638d4f61413496b65add6dee9784b46bd3666a3502a97b
|